GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#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 () |
void | SetEllipse () |
Bool_t | IsEllipse () |
void | SetBox () |
Bool_t | IsBox () |
void | SetFreeShape () |
Bool_t | IsFreeShape () |
const char * | GetShapeName () |
void | GetCenter (Double_t &x, Double_t &y) |
void | SetCenter (Double_t x, Double_t y) |
void | GetRadius (Double_t &a1, Double_t &a2) |
void | SetRadius (Double_t a1, Double_t a2) |
Double_t | GetTheta () |
void | SetTheta (Double_t angle) |
virtual void | PrintCondition (Bool_t points=kTRUE) |
Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) |
virtual Bool_t | UpdateFromUrl (const char *rest_url_opt) |
Bool_t | IsShapedType () |
void | SetResolution (Int_t npoints) |
Int_t | GetResolution () |
Public Member Functions inherited from TGo4PolyCond | |
TGo4PolyCond () | |
TGo4PolyCond (const char *name, const char *title="Go4 polygon condition") | |
virtual | ~TGo4PolyCond () |
virtual TGo4ConditionPainter * | CreatePainter () |
virtual void | SetPainter (TGo4ConditionPainter *painter) |
virtual void | SetValues (Double_t *x, Double_t *y, Int_t len) |
virtual void | SetValues (TCutG *newcut) |
void | SetValuesDirect (TCutG *newcut) |
virtual Bool_t | Test (Double_t x, Double_t y) |
virtual Double_t | GetXLow () |
virtual Double_t | GetXUp () |
virtual Double_t | GetYLow () |
virtual Double_t | GetYUp () |
TCutG * | GetCut (Bool_t changeowner) |
virtual Double_t | GetIntegral (TH1 *histo, Option_t *opt="") |
virtual Double_t | GetMean (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetRMS (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetSkewness (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetCurtosis (TH1 *histo, Int_t axis=1) |
virtual Double_t | GetXMax (TH1 *histo) |
virtual Double_t | GetYMax (TH1 *histo) |
virtual Double_t | GetCMax (TH1 *histo) |
virtual Bool_t | IsPolygonType () |
virtual Int_t | GetMemorySize () |
virtual void | SavePrimitive (std::ostream &fs, Option_t *="") |
Public Member Functions inherited from TGo4Condition | |
TGo4Condition () | |
TGo4Condition (const char *name, const char *title="Go4 Condition") | |
virtual | ~TGo4Condition () |
virtual void | Paint (Option_t *opt="") |
virtual void | Draw (Option_t *opt="") |
virtual void | UnDraw (Option_t *opt="") |
virtual void | Pop () |
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 Bool_t | Test (Bool_t result) |
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 () |
virtual void | Print (Option_t *opt="") const |
void | SetLast (Bool_t value) |
Bool_t | GetLast () |
virtual void | GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) |
virtual TGo4Condition * | GetActiveCondition () |
virtual void | MarkReset (Bool_t on) |
virtual void | Clear (Option_t *opt="") |
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 () |
void | SetHistogramLink (Bool_t on) |
Bool_t | IsHistogramLink () |
void | SetHistogram (const char *name) |
const char * | GetLinkedHistogram () |
void | SetWorkHistogram (TH1 *histo) |
TH1 * | GetWorkHistogram () |
void | SetUpdateEpsilon (Double_t val) |
Double_t | GetUpdateEpsilon () |
void | SaveLabelStyle () |
void | InitLabelStyle () |
void | ResetLabel (Option_t *opt="reset") |
virtual void | SetLabelDraw (Bool_t on) |
virtual Bool_t | IsLabelDraw () |
virtual void | SetLimitsDraw (Bool_t on) |
virtual Bool_t | IsLimitsDraw () |
virtual void | SetIntDraw (Bool_t on) |
virtual Bool_t | IsIntDraw () |
virtual void | SetXMeanDraw (Bool_t on) |
virtual Bool_t | IsXMeanDraw () |
virtual void | SetXRMSDraw (Bool_t on) |
virtual Bool_t | IsXRMSDraw () |
virtual void | SetYMeanDraw (Bool_t on) |
virtual Bool_t | IsYMeanDraw () |
virtual void | SetYRMSDraw (Bool_t on) |
virtual Bool_t | IsYRMSDraw () |
virtual void | SetXMaxDraw (Bool_t on) |
virtual Bool_t | IsXMaxDraw () |
virtual void | SetYMaxDraw (Bool_t on) |
virtual Bool_t | IsYMaxDraw () |
virtual void | SetCMaxDraw (Bool_t on) |
virtual Bool_t | IsCMaxDraw () |
virtual const char * | GetLabelNumFormat () |
virtual void | SetLabelNumFormat (const char *fmt) |
virtual void | SetChanged (Bool_t on) |
virtual Int_t | IsChanged () |
void | SetMultiEdit (Bool_t on) |
virtual Bool_t | IsMultiEdit () |
void | SetDimension (Int_t d) |
Int_t | GetDimension () |
void | SetOwnedByEditor (Bool_t on) |
Bool_t | IsOwnedByEditor () |
virtual void | SetCurrentIndex (Int_t ix) |
virtual Int_t | GetCurrentIndex () |
virtual Int_t | GetNumberOfConditions () |
virtual Bool_t | IsArrayType () |
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=0) |
Private Attributes | |
Int_t | fiResolution |
Double_t | fdCenterX |
Double_t | fdCenterY |
Double_t | fdRadius1 |
Double_t | fdRadius2 |
Double_t | fdTheta |
Go4CondShape_t | fiShapeType |
Additional Inherited Members | |
Static Public Member Functions inherited from TGo4PolyCond | |
static void | CleanupSpecials () |
static TString | NextAvailableName () |
Protected Attributes inherited from TGo4Condition | |
TGo4ConditionPainter * | fxPainter |
TH1 * | fxCutHis |
TObjArray * | fxUrlOptionArray |
Definition at line 40 of file TGo4ShapedCond.h.
TGo4ShapedCond::TGo4ShapedCond | ( | ) |
Definition at line 39 of file TGo4ShapedCond.cxx.
TGo4ShapedCond::TGo4ShapedCond | ( | const char * | name, |
const char * | title = "Go4 ellipse condition" |
||
) |
Definition at line 44 of file TGo4ShapedCond.cxx.
|
virtual |
Definition at line 49 of file TGo4ShapedCond.cxx.
|
protected |
Definition at line 262 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.
Referenced by ResetPolygon().
|
protected |
Definition at line 230 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, and fdTheta.
Referenced by ResetPolygon().
|
inline |
Definition at line 135 of file TGo4ShapedCond.h.
References fdCenterX, and fdCenterY.
Referenced by UpdateFromUrl().
|
inline |
Definition at line 145 of file TGo4ShapedCond.h.
References fdRadius1, and fdRadius2.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 183 of file TGo4ShapedCond.h.
References fiResolution.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 110 of file TGo4ShapedCond.h.
References fiShapeType, Go4Cond_Shape_Box, Go4Cond_Shape_Circle, Go4Cond_Shape_Ellipse, and Go4Cond_Shape_Free.
Referenced by PrintCondition().
|
inline |
Definition at line 155 of file TGo4ShapedCond.h.
References fdTheta.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and UpdateFromUrl().
|
inline |
Definition at line 95 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Box.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 78 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Circle.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 86 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Ellipse.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), TGo4ConditionEditor::RefreshWidget(), and ResetPolygon().
|
inline |
Definition at line 104 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Free.
Referenced by TGo4ConditionEditor::FillEllipseWidget(), and TGo4ConditionEditor::UpdateEllipse().
|
inline |
Definition at line 173 of file TGo4ShapedCond.h.
|
virtual |
Printout values. If points is true, printout polygon points.
Reimplemented from TGo4PolyCond.
Definition at line 58 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, GetShapeName(), and TGo4PolyCond::PrintCondition().
|
protected |
Definition at line 205 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 173 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 91 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 185 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, and ResetPolygon().
Referenced by TGo4ConditionEditor::EllipseCx_valueChanged(), and TGo4ConditionEditor::EllipseCy_valueChanged().
void TGo4ShapedCond::SetCircle | ( | Double_t | cx, |
Double_t | cy, | ||
Double_t | r, | ||
Int_t | npoints = 0 |
||
) |
Definition at line 161 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 74 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 148 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 82 of file TGo4ShapedCond.h.
References fiShapeType, and Go4Cond_Shape_Ellipse.
Referenced by SetEllipse(), and UpdateFromUrl().
|
inline |
Definition at line 100 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 192 of file TGo4ShapedCond.cxx.
References fdRadius1, fdRadius2, and ResetPolygon().
|
inline |
Definition at line 178 of file TGo4ShapedCond.h.
References fiResolution.
void TGo4ShapedCond::SetTheta | ( | Double_t | angle | ) |
Definition at line 199 of file TGo4ShapedCond.cxx.
References fdTheta, and ResetPolygon().
Referenced by TGo4ConditionEditor::EllipseTheta_valueChanged().
|
virtual |
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 71 of file TGo4ShapedCond.cxx.
References fdCenterX, fdCenterY, fdRadius1, fdRadius2, fdTheta, fiResolution, fiShapeType, and TGo4PolyCond::UpdateFrom().
|
virtual |
Method used by HTTP server to update some fields, specified in URL syntax
Reimplemented from TGo4PolyCond.
Definition at line 98 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().
|
private |
Definition at line 217 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetCenter(), PrintCondition(), SetBox(), SetCenter(), SetCircle(), SetEllipse(), and UpdateFrom().
|
private |
Definition at line 218 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetCenter(), PrintCondition(), SetBox(), SetCenter(), SetCircle(), SetEllipse(), and UpdateFrom().
|
private |
Definition at line 220 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetRadius(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetRadius(), and UpdateFrom().
|
private |
Definition at line 221 of file TGo4ShapedCond.h.
Referenced by DefineBox(), DefineEllipse(), GetRadius(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetRadius(), and UpdateFrom().
|
private |
Definition at line 223 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 194 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 196 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 190 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 192 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 188 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 200 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 198 of file TGo4ShapedCond.h.
Referenced by UpdateFromUrl().
|
private |
Definition at line 216 of file TGo4ShapedCond.h.
Referenced by GetResolution(), PrintCondition(), ResetPolygon(), SetBox(), SetCircle(), SetEllipse(), SetResolution(), and UpdateFrom().
|
private |
Definition at line 224 of file TGo4ShapedCond.h.
Referenced by GetShapeName(), IsBox(), IsCircle(), IsEllipse(), IsFreeShape(), PrintCondition(), SetBox(), SetCircle(), SetEllipse(), SetFreeShape(), UpdateFrom(), and UpdateFromUrl().