GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4ShapedCond.h>
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 |
![]() | |
TGo4PolyCond () | |
TGo4PolyCond (const char *name, const char *title="Go4 polygon condition") | |
virtual | ~TGo4PolyCond () |
void | SetWorkHistogram (TH1 *histo) override |
TGo4ConditionPainter * | CreatePainter () 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 |
![]() | |
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 TGo4Condition * | GetActiveCondition () 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 TString | fgxURL_NPOINTS ="npolygon" |
static TString | fgxURL_XPRE ="x" |
static TString | fgxURL_YPRE ="y" |
![]() | |
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) |
![]() | |
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 void | CleanupSpecials () |
static TString | NextAvailableName () |
![]() | |
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) |
![]() | |
TGo4ConditionPainter * | fxPainter {nullptr} |
TObjArray * | fxUrlOptionArray {nullptr} |
Definition at line 40 of file TGo4ShapedCond.h.
TGo4ShapedCond::TGo4ShapedCond | ( | ) |
Definition at line 30 of file TGo4ShapedCond.cxx.
TGo4ShapedCond::TGo4ShapedCond | ( | const char * | name, |
const char * | title = "Go4 ellipse condition" |
||
) |
Definition at line 35 of file TGo4ShapedCond.cxx.
|
virtual |
Definition at line 40 of file TGo4ShapedCond.cxx.
|
protected |
Definition at line 217 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.
Referenced by ResetPolygon().
|
protected |
Definition at line 201 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.
Referenced by ResetPolygon().
|
inline |
Definition at line 94 of file TGo4ShapedCond.h.
References fdCenterX, fdCenterY, and SetCenter().
Referenced by UpdateFromUrl().
|
inline |
Definition at line 104 of file TGo4ShapedCond.h.
References fdRadius1, fdRadius2, and SetRadius().
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 133 of file TGo4ShapedCond.h.
References fiResolution.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 81 of file TGo4ShapedCond.h.
References fiShapeType, Go4Cond_Shape_Box, Go4Cond_Shape_Circle, Go4Cond_Shape_Ellipse, Go4Cond_Shape_Free, and Go4Cond_Shape_None.
Referenced by PrintCondition().
|
inline |
Definition at line 114 of file TGo4ShapedCond.h.
References fdTheta, PrintCondition(), SetTheta(), UpdateFrom(), and UpdateFromUrl().
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 76 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Box.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 70 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Circle.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 73 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Ellipse.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 79 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Free.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and TGo4ConditionEditor::UpdateEllipse().
|
inline |
Definition at line 129 of file TGo4ShapedCond.h.
|
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().
|
protected |
Definition at line 178 of file TGo4ShapedCond.cxx.
References DefineBox(), DefineEllipse(), fiResolution, GO4ELLIPSECOND_DEFAULTRESOLUTION, IsBox(), IsCircle(), IsEllipse(), and TGo4Condition::SetValues().
Referenced by SetBox(), SetCenter(), SetCircle(), SetEllipse(), SetRadius(), and SetTheta().
void TGo4ShapedCond::SetBox | ( | Double_t | cx, |
Double_t | cy, | ||
Double_t | a1, | ||
Double_t | a2, | ||
Double_t | theta = 0 |
||
) |
Definition at line 146 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, ResetPolygon(), and SetBox().
Referenced by TGo4Analysis::MakeBoxCond(), and TGo4ConditionEditor::UpdateEllipse().
|
inline |
Definition at line 75 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Box.
Referenced by SetBox(), and UpdateFromUrl().
void TGo4ShapedCond::SetCenter | ( | Double_t | x, |
Double_t | y | ||
) |
Definition at line 158 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, and ResetPolygon().
Referenced by TGo4ConditionEditor::EllipseCx_valueChanged(), TGo4ConditionEditor::EllipseCy_valueChanged(), and GetCenter().
void TGo4ShapedCond::SetCircle | ( | Double_t | cx, |
Double_t | cy, | ||
Double_t | r, | ||
Int_t | npoints = 0 |
||
) |
Definition at line 134 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, ResetPolygon(), and SetCircle().
Referenced by TGo4Analysis::MakeCircleCond(), and TGo4ConditionEditor::UpdateEllipse().
|
inline |
Definition at line 69 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Circle.
Referenced by SetCircle(), and UpdateFromUrl().
void TGo4ShapedCond::SetEllipse | ( | Double_t | cx, |
Double_t | cy, | ||
Double_t | a1, | ||
Double_t | a2, | ||
Double_t | theta = 0 , |
||
Int_t | npoints = 0 |
||
) |
Definition at line 122 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, ResetPolygon(), and SetEllipse().
Referenced by TGo4CreateNewCondition::MakeCondition(), TGo4Analysis::MakeEllipseCond(), and TGo4ConditionEditor::UpdateEllipse().
|
inline |
Definition at line 72 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Ellipse.
Referenced by SetEllipse(), and UpdateFromUrl().
|
inline |
Definition at line 78 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Free.
Referenced by TGo4Analysis::MakeFreeShapeCond(), TGo4ConditionEditor::UpdateEllipse(), and UpdateFromUrl().
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().
|
inline |
Definition at line 131 of file TGo4ShapedCond.h.
References fiResolution.
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().
|
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().
|
overridevirtual |
Method used by HTTP server to update some fields, specified in URL syntax
Reimplemented from TGo4PolyCond.
Definition at line 81 of file TGo4ShapedCond.cxx.
References go4init::a, fgxURL_A1, fgxURL_A2, fgxURL_CX, fgxURL_CY, fgxURL_RESOLUTION, fgxURL_SHAPE, fgxURL_TH, fiShapeType, GetCenter(), GetRadius(), GetResolution(), GetTheta(), TGo4Condition::GetUrlOptionAsDouble(), TGo4Condition::GetUrlOptionAsInt(), Go4Cond_Shape_Box, Go4Cond_Shape_Circle, Go4Cond_Shape_Ellipse, Go4Cond_Shape_Free, TGo4Log::Message(), SetBox(), SetCircle(), SetEllipse(), SetFreeShape(), TGo4PolyCond::UpdateFromUrl(), and TGo4Condition::UpdateFromUrl().
Referenced by GetTheta().
|
private |
Definition at line 164 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetCenter(), PrintCondition(), SetBox(), SetCenter(), SetCircle(), SetEllipse(), and UpdateFrom().
|
private |
Definition at line 165 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetCenter(), PrintCondition(), SetBox(), SetCenter(), SetCircle(), SetEllipse(), and UpdateFrom().
|
private |
Definition at line 167 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetRadius(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetRadius(), and UpdateFrom().
|
private |
Definition at line 168 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetRadius(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetRadius(), and UpdateFrom().
|
private |
Definition at line 170 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetTheta(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetTheta(), and UpdateFrom().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 142 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 144 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 138 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 140 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 136 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 148 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 146 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
private |
Definition at line 163 of file TGo4ShapedCond.h.
Referenced by GetResolution(), PrintCondition(), ResetPolygon(), SetBox(), SetCircle(), SetEllipse(), SetResolution(), and UpdateFrom().
|
private |
Definition at line 171 of file TGo4ShapedCond.h.
Referenced by GetShapeName(), IsBox(), IsCircle(), IsEllipse(), IsFreeShape(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetFreeShape(), UpdateFrom(), and UpdateFromUrl().