31 TGo4PolyCond(
const char *name,
const char *title =
"Go4 polygon condition");
49 void SetValues(Double_t *x, Double_t *y, Int_t len)
override;
60 Bool_t
Test(Double_t x, Double_t y)
override;
63 Double_t
GetXLow()
const override;
66 Double_t
GetXUp()
const override;
69 Double_t
GetYLow()
const override;
72 Double_t
GetYUp()
const override;
80 TCutG *
GetCut(Bool_t changeowner)
override;
93 Double_t
GetIntegral(TH1 *histo, Option_t *opt =
"")
override;
96 Double_t
GetMean(TH1 *histo, Int_t axis = 1)
override;
99 Double_t
GetRMS(TH1 *histo, Int_t axis = 1)
override;
102 Double_t
GetSkewness(TH1 *histo, Int_t axis = 1)
override;
105 Double_t
GetCurtosis(TH1 *histo, Int_t axis = 1)
override;
108 Double_t
GetXMax(TH1 *histo)
override;
111 Double_t
GetYMax(TH1 *histo)
override;
114 Double_t
GetCMax(TH1 *histo)
override;
121 void SavePrimitive(std::ostream &fs, Option_t *opt =
"")
override;
virtual void SetValues()
Set values needed, i.e.
virtual Bool_t Test()
Test if condition is true.
TCutG * fxCut
Cut pointer.
Double_t GetCMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
TGo4ConditionPainter * CreatePainter() override
Factory method to generate the subclass implementation for painter.
Double_t GetRMS(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
Bool_t IsCutHis(TH1 *source)
Returns true if fxCutHis can be used, create if possible.
void PrintCondition(Bool_t points=kTRUE) override
Printout values.
Double_t GetSkewness(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
Double_t GetCurtosis(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
Double_t GetXUp() const override
maximum extension of polygon in x axis
static TString fgxURL_YPRE
web condition editor keyword used in UpdateFromUrl.
void SetPainter(TGo4ConditionPainter *painter) override
Replace default painter of this condition by external one.
void ClearCutHis()
Set new cut histogram.
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts) override
Copy values from cond to this.
Bool_t UpdateFromUrl(const char *rest_url_opt) override
Method used by HTTP server to update some fields, specified in URL syntax.
TH2 * fxCutHis
temporary histogram used to calculate statistics on polygon cuts.
virtual void SetValues()
Set values needed, i.e.
Double_t GetYUp() const override
maximum extension of polygon in y axis
void SavePrimitive(std::ostream &fs, Option_t *opt="") override
Standard way to store parameter in form of macro.
Double_t GetYLow() const override
minimum extension of polygon in y axis
static TString fgxURL_XPRE
web condition editor keyword used in UpdateFromUrl.
virtual Bool_t Test()
Test if condition is true.
static TString NextAvailableName()
Double_t GetMean(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
void SetValuesDirect(TCutG *newcut)
Delete old cut and get ownership over newcut.
Double_t GetXMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
Double_t GetIntegral(TH1 *histo, Option_t *opt="") override
Calculate value for histogram inside condition limits.
static void CleanupSpecials()
Remove all references to any TCutGs from ROOT list of specials.
static TString fgxURL_NPOINTS
web condition editor keyword used in UpdateFromUrl.
Int_t GetMemorySize() const override
void SetWorkHistogram(TH1 *histo) override
Set reference to work histogram for statistics functions.
Bool_t IsPolygonType() const override
Double_t GetYMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
TCutG * GetCut(Bool_t changeowner) override
Used to return the cut pointer of a TGo4PolyCond.
Double_t GetXLow() const override
minimum extension of polygon in x axis
TCutG * CloneCut(TGo4PolyCond *source)
Returns pointer to a cloned cut from source.