14 #ifndef TGO4SHAPEDCOND_H
15 #define TGO4SHAPEDCOND_H
23 #define GO4ELLIPSECOND_DEFAULTRESOLUTION 180
44 TGo4ShapedCond(
const char* name,
const char* title =
"Go4 ellipse condition");
54 void SetEllipse(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, Int_t npoints=0);
60 void SetCircle(Double_t cx, Double_t cy, Double_t r, Int_t npoints=0);
69 void SetBox(Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0);
115 return "Free style polygon";
118 return "Circle shaped polygon";
121 return "Ellipse shaped polygon";
124 return "Rectangular box shaped polygon";
127 return "Shape not defined!";
152 void SetRadius(Double_t a1, Double_t a2);
212 void DefineBox(Double_t *x, Double_t *y, Int_t n);
229 #define TGo4EllipseCond TGo4ShapedCond
233 #endif //TGO4SHAPEDCOND_H
void SetTheta(Double_t angle)
void GetRadius(Double_t &a1, Double_t &a2)
void DefineEllipse(Double_t *x, Double_t *y, Int_t n)
static TString fgxURL_SHAPE
const char * GetShapeName()
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts)
void SetResolution(Int_t npoints)
void DefineBox(Double_t *x, Double_t *y, Int_t n)
void SetRadius(Double_t a1, Double_t a2)
void SetCenter(Double_t x, Double_t y)
virtual Bool_t UpdateFromUrl(const char *rest_url_opt)
virtual void PrintCondition(Bool_t points=kTRUE)
void GetCenter(Double_t &x, Double_t &y)
static TString fgxURL_RESOLUTION
Go4CondShape_t fiShapeType
virtual ~TGo4ShapedCond()