14#ifndef TGO4CONDARRAY_H
15#define TGO4CONDARRAY_H
43 void Draw(Option_t *opt =
"")
override;
84 Bool_t
Test(Double_t x, Double_t y)
override;
91 Bool_t
Test(Double_t x)
override;
107 void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
override;
167 void GetFlags(Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset,
168 Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue)
override;
208 Double_t
GetMean(TH1 *histo, Int_t axis = 1)
override;
211 Double_t
GetRMS(TH1 *histo, Int_t axis = 1)
override;
Bool_t Test(Double_t x) override
Test currently selected condition(single edit mode).
Bool_t IsXMaxDraw() const override
Int_t GetNumberOfConditions() const override
for condition aggregates: return total number of conditions, i.e.size of condition array
Double_t GetIntegral(TH1 *histo, Option_t *opt="") override
Calculate value for histogram inside condition limits.
Bool_t IsYRMSDraw() const override
Double_t GetYLow() const override
TGo4CondArray(const char *name, Int_t elements, const char *type)
Constructor.
Double_t GetMean(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
TGo4ConditionPainter * CreatePainter() override
Factory method to generate the subclass implementation for painter.
Int_t GetNumber() const
Returns number of conditions in array.
void SetXMaxDraw(Bool_t on) override
void SetValues(Double_t low1, Double_t up1) override
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
Int_t GetMemorySize() const override
void SavePrimitive(std::ostream &fs, Option_t *opt="") override
Standard way to store parameter in form of macro.
void SetXMeanDraw(Bool_t on) override
Double_t GetCurtosis(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
void SetYMeanDraw(Bool_t on) override
Double_t GetRMS(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2) override
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
void GetFlags(Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue) override
Sets values of internal boolean flags to external variables.
Double_t GetYUp() const override
Int_t fiNumCond
Number of conditions in array.
Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts) override
Copy values from cond to this.
void Enable() override
Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode).
Bool_t IsYMeanDraw() const override
TGo4WinCond * Win(Int_t i) const
Returns window condition object i from object array.
void PrintCondition(Bool_t points) override
Noop.
Bool_t IsIntDraw() const override
void Invert(Bool_t on) override
Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode).
Bool_t IsXRMSDraw() const override
void SetPainter(TGo4ConditionPainter *painter) override
Replace default painter of this condition by external one.
Bool_t IsPolygonType() const override
Bool_t Test(Double_t x, Double_t y) override
Test currently selected condition(single edit mode).
Double_t GetXMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
const TGo4Condition * GetActiveCondition() const override
Access to the currently selected condition.
Bool_t IsXMeanDraw() const override
void SetLabelDraw(Bool_t on) override
TGo4Condition * operator[](Int_t i) const
Returns condition object i from object array.
void SetVisible(Bool_t on) override
we overwrite single condition visibility setter
TGo4PolyCond * Poly(Int_t i) const
Returns polygon condition object i from object array.
Int_t fiType
Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON).
Double_t GetYMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
void SetCMaxDraw(Bool_t on) override
Int_t GetCurrentIndex() const override
get index for array type subclasses
Bool_t IsVisible() const override
we overwrite single condition visibility getter
Int_t TrueCounts() override
Return number of true results of the Test method call.
void GetType(Int_t &type) const
Returns condition type ID (kGO4CONDWINDOW=1 or kGO4CONDPOLYGON=2).
Bool_t IsArrayType() const override
Double_t GetXUp() const override
void MarkReset(Bool_t on) override
defines if condition counters shall be reset in UpdateFrom method
void Draw(Option_t *opt="") override
Reimplement Draw to set painted flag for all array conditions.
Bool_t IsCMaxDraw() const override
Int_t IsChanged() const override
we overwrite single condition changed property
Int_t Counts() override
Return number of calls of the Test method.
void SetChanged(Bool_t on=kTRUE) override
we overwrite single condition changed property
Bool_t IsLabelDraw() const override
void PrintBar() override
Prints counters and bar.
void SetValues(TCutG *newcut) override
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
void SetYMaxDraw(Bool_t on) override
Bool_t IsYMaxDraw() const override
TGo4CondArray(const char *name, Int_t elements, Int_t contype)
Constructor.
Bool_t IsLimitsDraw() const override
Double_t GetXLow() const override
TGo4Condition * At(Int_t i) const
Returns condition object i from object array.
void Disable(Bool_t result) override
Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode).
TObjArray * condarr
The object array of conditions.
void SetXRMSDraw(Bool_t on) override
Double_t GetCMax(TH1 *histo) override
Calculate value for histogram inside condition limits.
Int_t fiSelectedCond
Index of selected condition.
void SetYRMSDraw(Bool_t on) override
void SetCurrentIndex(Int_t ix) override
set index for array type subclasses
Double_t GetSkewness(TH1 *histo, Int_t axis=1) override
Calculate value for histogram inside condition limits.
void ResetCounts() override
Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode).
const char * GetType() const
Returns class name of conditions.
void SetIntDraw(Bool_t on) override
void SetLimitsDraw(Bool_t on) override
virtual void SetValues()
Set values needed, i.e.
virtual Bool_t Test()
Test if condition is true.