GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
TGo4ShapedCond Class Reference

#include <TGo4ShapedCond.h>

+ Inheritance diagram for TGo4ShapedCond:

Public Member Functions

 TGo4ShapedCond ()
 
 TGo4ShapedCond (const char *name, const char *title="Go4 ellipse condition")
 
virtual ~TGo4ShapedCond ()
 
void SetEllipse (Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, Int_t npoints=0)
 
void SetCircle (Double_t cx, Double_t cy, Double_t r, Int_t npoints=0)
 
void SetBox (Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0)
 
void SetCircle ()
 
Bool_t IsCircle () const
 
void SetEllipse ()
 
Bool_t IsEllipse () const
 
void SetBox ()
 
Bool_t IsBox () const
 
void SetFreeShape ()
 
Bool_t IsFreeShape () const
 
const char * GetShapeName () const
 
void GetCenter (Double_t &x, Double_t &y) const
 
void SetCenter (Double_t x, Double_t y)
 
void GetRadius (Double_t &a1, Double_t &a2) const
 
void SetRadius (Double_t a1, Double_t a2)
 
Double_t GetTheta () const
 
void SetTheta (Double_t angle)
 
void PrintCondition (Bool_t points=kTRUE) override
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts) override
 
Bool_t UpdateFromUrl (const char *rest_url_opt) override
 
Bool_t IsShapedType () const
 
void SetResolution (Int_t npoints)
 
Int_t GetResolution () const
 
- Public Member Functions inherited from TGo4PolyCond
 TGo4PolyCond ()
 
 TGo4PolyCond (const char *name, const char *title="Go4 polygon condition")
 
virtual ~TGo4PolyCond ()
 
void SetWorkHistogram (TH1 *histo) override
 
TGo4ConditionPainterCreatePainter () override
 
void SetPainter (TGo4ConditionPainter *painter) override
 
void SetValues (Double_t *x, Double_t *y, Int_t len) override
 
void SetValues (TCutG *newcut) override
 
void SetValuesDirect (TCutG *newcut)
 
Bool_t Test (Double_t x, Double_t y) override
 
Double_t GetXLow () const override
 
Double_t GetXUp () const override
 
Double_t GetYLow () const override
 
Double_t GetYUp () const override
 
TCutG * GetCut (Bool_t changeowner) override
 
Double_t GetIntegral (TH1 *histo, Option_t *opt="") override
 
Double_t GetMean (TH1 *histo, Int_t axis=1) override
 
Double_t GetRMS (TH1 *histo, Int_t axis=1) override
 
Double_t GetSkewness (TH1 *histo, Int_t axis=1) override
 
Double_t GetCurtosis (TH1 *histo, Int_t axis=1) override
 
Double_t GetXMax (TH1 *histo) override
 
Double_t GetYMax (TH1 *histo) override
 
Double_t GetCMax (TH1 *histo) override
 
Bool_t IsPolygonType () const override
 
Int_t GetMemorySize () const override
 
void SavePrimitive (std::ostream &fs, Option_t *opt="") override
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
void Paint (Option_t *opt="") override
 
void Draw (Option_t *opt="") override
 
virtual void UnDraw (Option_t *opt="")
 
void Pop () override
 
virtual Int_t Counts ()
 
virtual Int_t TrueCounts ()
 
virtual void ResetCounts ()
 
virtual void SetCounts (Int_t truecounts, Int_t counts)
 
virtual void Disable (Bool_t result)
 
virtual void Enable ()
 
Bool_t IsEnabled () const
 
virtual Bool_t Test ()
 
virtual Bool_t Test (Double_t x)
 
virtual void SetValues ()
 
virtual void SetValues (Double_t low1, Double_t up1)
 
virtual void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2)
 
virtual void AddCondition (TGo4Condition *next)
 
void IncCounts ()
 
void IncTrueCounts ()
 
Bool_t IsTrue () const
 
Bool_t IsFalse () const
 
Bool_t FixedResult () const
 
virtual void Invert (Bool_t on)
 
virtual void PrintBar ()
 
void Print (Option_t *opt="") const override
 
void SetLast (Bool_t value)
 
Bool_t GetLast () const
 
virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
virtual const TGo4ConditionGetActiveCondition () const
 
virtual void MarkReset (Bool_t on)
 
void Clear (Option_t *opt="") override
 
virtual void SetFlags (Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue)
 
virtual void GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue)
 
virtual void SetVisible (Bool_t on)
 
virtual Bool_t IsVisible () const
 
void SetHistogramLink (Bool_t on)
 
Bool_t IsHistogramLink () const
 
void SetHistogram (const char *name)
 
const char * GetLinkedHistogram () const
 
TH1 * GetWorkHistogram () const
 
void SetUpdateEpsilon (Double_t val)
 
Double_t GetUpdateEpsilon () const
 
void SaveLabelStyle ()
 
void InitLabelStyle ()
 
void ResetLabel (Option_t *opt="reset")
 
virtual void SetLabelDraw (Bool_t on)
 
virtual Bool_t IsLabelDraw () const
 
virtual void SetLimitsDraw (Bool_t on)
 
virtual Bool_t IsLimitsDraw () const
 
virtual void SetIntDraw (Bool_t on)
 
virtual Bool_t IsIntDraw () const
 
virtual void SetXMeanDraw (Bool_t on)
 
virtual Bool_t IsXMeanDraw () const
 
virtual void SetXRMSDraw (Bool_t on)
 
virtual Bool_t IsXRMSDraw () const
 
virtual void SetYMeanDraw (Bool_t on)
 
virtual Bool_t IsYMeanDraw () const
 
virtual void SetYRMSDraw (Bool_t on)
 
virtual Bool_t IsYRMSDraw () const
 
virtual void SetXMaxDraw (Bool_t on)
 
virtual Bool_t IsXMaxDraw () const
 
virtual void SetYMaxDraw (Bool_t on)
 
virtual Bool_t IsYMaxDraw () const
 
virtual void SetCMaxDraw (Bool_t on)
 
virtual Bool_t IsCMaxDraw () const
 
virtual void SetLabelNumFormat (const char *fmt)
 
virtual const char * GetLabelNumFormat () const
 
virtual void SetChanged (Bool_t on=kTRUE)
 
virtual Int_t IsChanged () const
 
void SetMultiEdit (Bool_t on)
 
virtual Bool_t IsMultiEdit () const
 
void SetDimension (Int_t d)
 
Int_t GetDimension () const
 
void SetOwnedByEditor (Bool_t on)
 
Bool_t IsOwnedByEditor () const
 
virtual void SetCurrentIndex (Int_t)
 
virtual Int_t GetCurrentIndex () const
 
virtual Int_t GetNumberOfConditions () const
 
virtual Bool_t IsArrayType () const
 
void DeletePainter ()
 

Static Public Attributes

static TString fgxURL_RESOLUTION ="ellinpts"
 
static TString fgxURL_CX ="ellicx"
 
static TString fgxURL_CY ="ellicy"
 
static TString fgxURL_A1 ="ellia1"
 
static TString fgxURL_A2 ="ellia2"
 
static TString fgxURL_TH ="ellith"
 
static TString fgxURL_SHAPE ="ellishape"
 
- Static Public Attributes inherited from TGo4PolyCond
static TString fgxURL_NPOINTS ="npolygon"
 
static TString fgxURL_XPRE ="x"
 
static TString fgxURL_YPRE ="y"
 
- Static Public Attributes inherited from TGo4Condition
static const Double_t fgdUPDATEEPSILON = 0.01
 
static Bool_t fgbLABELDRAW =kTRUE
 
static Bool_t fgbLIMITSDRAW =kTRUE
 
static Bool_t fgbINTDRAW =kTRUE
 
static Bool_t fgbXMEANDRAW =kTRUE
 
static Bool_t fgbXRMSDRAW =kTRUE
 
static Bool_t fgbYMEANDRAW =kFALSE
 
static Bool_t fgbYRMSDRAW =kFALSE
 
static Bool_t fgbXMAXDRAW =kTRUE
 
static Bool_t fgbYMAXDRAW =kFALSE
 
static Bool_t fgbCMAXDRAW =kTRUE
 
static TString fgxNUMFORMAT ="%.4E"
 
static TString fgxURL_RESET ="resetcounters"
 
static TString fgxURL_RESULT ="resultmode"
 
static TString fgxURL_INVERT ="invertmode"
 
static TString fgxURL_VISIBLE ="visible"
 
static TString fgxURL_LABEL ="labeldraw"
 
static TString fgxURL_LIMITS ="limitsdraw"
 
static TString fgxURL_INTEGRAL ="intdraw"
 
static TString fgxURL_XMEAN ="xmeandraw"
 
static TString fgxURL_XRMS ="xrmsdraw"
 
static TString fgxURL_YMEAN ="ymeandraw"
 
static TString fgxURL_YRMS ="yrmsdraw"
 
static TString fgxURL_XMAX ="xmaxdraw"
 
static TString fgxURL_YMAX ="ymaxdraw"
 
static TString fgxURL_CMAX ="cmaxdraw"
 

Protected Member Functions

void ResetPolygon ()
 
void DefineEllipse (Double_t *x, Double_t *y, Int_t n)
 
void DefineBox (Double_t *x, Double_t *y, Int_t n)
 
- Protected Member Functions inherited from TGo4Condition
void BuildUrlOptionArray (const char *rest_url_opt)
 
Bool_t UrlOptionHasKey (const char *key)
 
TString GetUrlOptionAsString (const char *key, TString def_value)
 
Int_t GetUrlOptionAsInt (const char *key, Int_t def_value)
 
Double_t GetUrlOptionAsDouble (const char *key, Double_t def_value)
 
void SetPainted (Bool_t on)
 
Bool_t IsPainted () const
 
const char * MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=nullptr)
 

Private Attributes

Int_t fiResolution {0}
 
Double_t fdCenterX {0.}
 
Double_t fdCenterY {0.}
 
Double_t fdRadius1 {0.}
 
Double_t fdRadius2 {0.}
 
Double_t fdTheta {0.}
 
Go4CondShape_t fiShapeType {Go4Cond_Shape_None}
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4PolyCond
static void CleanupSpecials ()
 
static TString NextAvailableName ()
 
- Static Public Member Functions inherited from TGo4Condition
static void SetGlobalStyle (Bool_t LABELDRAW, Bool_t LIMITSDRAW, Bool_t INTDRAW, Bool_t XMEANDRAW, Bool_t YMEANDRAW, Bool_t XRMSDRAW, Bool_t YRMSDRAW, Bool_t XMAXDRAW, Bool_t YMAXDRAW, Bool_t CMAXDRAW, const char *NUMFORMAT)
 
static void GetGlobalStyle (Bool_t &LABELDRAW, Bool_t &LIMITSDRAW, Bool_t &INTDRAW, Bool_t &XMEANDRAW, Bool_t &YMEANDRAW, Bool_t &XRMSDRAW, Bool_t &YRMSDRAW, Bool_t &XMAXDRAW, Bool_t &YMAXDRAW, Bool_t &CMAXDRAW, TString &NUMFORMAT)
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter {nullptr}
 
TObjArray * fxUrlOptionArray {nullptr}
 

Detailed Description

Definition at line 40 of file TGo4ShapedCond.h.

Constructor & Destructor Documentation

◆ TGo4ShapedCond() [1/2]

TGo4ShapedCond::TGo4ShapedCond ( )

Definition at line 30 of file TGo4ShapedCond.cxx.

◆ TGo4ShapedCond() [2/2]

TGo4ShapedCond::TGo4ShapedCond ( const char *  name,
const char *  title = "Go4 ellipse condition" 
)

Definition at line 35 of file TGo4ShapedCond.cxx.

◆ ~TGo4ShapedCond()

TGo4ShapedCond::~TGo4ShapedCond ( )
virtual

Definition at line 40 of file TGo4ShapedCond.cxx.

Member Function Documentation

◆ DefineBox()

void TGo4ShapedCond::DefineBox ( Double_t *  x,
Double_t *  y,
Int_t  n 
)
protected

Definition at line 217 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.

Referenced by ResetPolygon().

◆ DefineEllipse()

void TGo4ShapedCond::DefineEllipse ( Double_t *  x,
Double_t *  y,
Int_t  n 
)
protected

Definition at line 201 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.

Referenced by ResetPolygon().

◆ GetCenter()

void TGo4ShapedCond::GetCenter ( Double_t &  x,
Double_t &  y 
) const
inline

Definition at line 94 of file TGo4ShapedCond.h.

References fdCenterX, fdCenterY, and SetCenter().

Referenced by UpdateFromUrl().

◆ GetRadius()

void TGo4ShapedCond::GetRadius ( Double_t &  a1,
Double_t &  a2 
) const
inline

Definition at line 104 of file TGo4ShapedCond.h.

References fdRadius1, fdRadius2, and SetRadius().

Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().

◆ GetResolution()

Int_t TGo4ShapedCond::GetResolution ( ) const
inline

Definition at line 133 of file TGo4ShapedCond.h.

References fiResolution.

Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().

◆ GetShapeName()

const char* TGo4ShapedCond::GetShapeName ( ) const
inline

◆ GetTheta()

Double_t TGo4ShapedCond::GetTheta ( ) const
inline

◆ IsBox()

Bool_t TGo4ShapedCond::IsBox ( ) const
inline

◆ IsCircle()

Bool_t TGo4ShapedCond::IsCircle ( ) const
inline

◆ IsEllipse()

Bool_t TGo4ShapedCond::IsEllipse ( ) const
inline

◆ IsFreeShape()

Bool_t TGo4ShapedCond::IsFreeShape ( ) const
inline

◆ IsShapedType()

Bool_t TGo4ShapedCond::IsShapedType ( ) const
inline

Definition at line 129 of file TGo4ShapedCond.h.

◆ PrintCondition()

void TGo4ShapedCond::PrintCondition ( Bool_t  points = kTRUE)
overridevirtual

Printout values. If points is true, printout polygon points.

Reimplemented from TGo4PolyCond.

Definition at line 45 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, GetShapeName(), and TGo4PolyCond::PrintCondition().

Referenced by GetTheta().

◆ ResetPolygon()

void TGo4ShapedCond::ResetPolygon ( )
protected

◆ SetBox() [1/2]

void TGo4ShapedCond::SetBox ( Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta = 0 
)

◆ SetBox() [2/2]

void TGo4ShapedCond::SetBox ( )
inline

Definition at line 75 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Box.

Referenced by SetBox(), and UpdateFromUrl().

◆ SetCenter()

void TGo4ShapedCond::SetCenter ( Double_t  x,
Double_t  y 
)

◆ SetCircle() [1/2]

void TGo4ShapedCond::SetCircle ( Double_t  cx,
Double_t  cy,
Double_t  r,
Int_t  npoints = 0 
)

◆ SetCircle() [2/2]

void TGo4ShapedCond::SetCircle ( )
inline

Definition at line 69 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Circle.

Referenced by SetCircle(), and UpdateFromUrl().

◆ SetEllipse() [1/2]

void TGo4ShapedCond::SetEllipse ( Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta = 0,
Int_t  npoints = 0 
)

◆ SetEllipse() [2/2]

void TGo4ShapedCond::SetEllipse ( )
inline

Definition at line 72 of file TGo4ShapedCond.h.

References fiShapeType, and Go4Cond_Shape_Ellipse.

Referenced by SetEllipse(), and UpdateFromUrl().

◆ SetFreeShape()

void TGo4ShapedCond::SetFreeShape ( )
inline

◆ SetRadius()

void TGo4ShapedCond::SetRadius ( Double_t  a1,
Double_t  a2 
)

Definition at line 165 of file TGo4ShapedCond.cxx.

References fdRadius1, fdRadius2, and ResetPolygon().

Referenced by GetRadius().

◆ SetResolution()

void TGo4ShapedCond::SetResolution ( Int_t  npoints)
inline

Definition at line 131 of file TGo4ShapedCond.h.

References fiResolution.

◆ SetTheta()

void TGo4ShapedCond::SetTheta ( Double_t  angle)

Definition at line 172 of file TGo4ShapedCond.cxx.

References fdTheta, and ResetPolygon().

Referenced by TGo4ConditionEditor::EllipseTheta_valueChanged(), and GetTheta().

◆ UpdateFrom()

Bool_t TGo4ShapedCond::UpdateFrom ( TGo4Condition cond,
Bool_t  counts 
)
overridevirtual

Copy values from cond to this. Get a clone cut from cond by CloneCut as new cut. If counts is true, copy counters too.

Reimplemented from TGo4PolyCond.

Definition at line 57 of file TGo4ShapedCond.cxx.

References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, and TGo4PolyCond::UpdateFrom().

Referenced by GetTheta().

◆ UpdateFromUrl()

Bool_t TGo4ShapedCond::UpdateFromUrl ( const char *  rest_url_opt)
overridevirtual

Member Data Documentation

◆ fdCenterX

Double_t TGo4ShapedCond::fdCenterX {0.}
private

◆ fdCenterY

Double_t TGo4ShapedCond::fdCenterY {0.}
private

◆ fdRadius1

Double_t TGo4ShapedCond::fdRadius1 {0.}
private

◆ fdRadius2

Double_t TGo4ShapedCond::fdRadius2 {0.}
private

◆ fdTheta

Double_t TGo4ShapedCond::fdTheta {0.}
private

◆ fgxURL_A1

TString TGo4ShapedCond::fgxURL_A1 ="ellia1"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 142 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_A2

TString TGo4ShapedCond::fgxURL_A2 ="ellia2"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 144 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_CX

TString TGo4ShapedCond::fgxURL_CX ="ellicx"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 138 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_CY

TString TGo4ShapedCond::fgxURL_CY ="ellicy"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 140 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_RESOLUTION

TString TGo4ShapedCond::fgxURL_RESOLUTION ="ellinpts"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 136 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_SHAPE

TString TGo4ShapedCond::fgxURL_SHAPE ="ellishape"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 148 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_TH

TString TGo4ShapedCond::fgxURL_TH ="ellith"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 146 of file TGo4ShapedCond.h.

Referenced by UpdateFromUrl().

◆ fiResolution

Int_t TGo4ShapedCond::fiResolution {0}
private

◆ fiShapeType

Go4CondShape_t TGo4ShapedCond::fiShapeType {Go4Cond_Shape_None}
private

The documentation for this class was generated from the following files: