14 #ifndef TGO4CONDITION_H
15 #define TGO4CONDITION_H
20 #include "Riostream.h"
41 #ifndef BUILDING_GO4BASE_DLL
48 TGo4Condition :
public TNamed,
public TAttLine,
public TAttFill {
55 TGo4Condition(
const char* name,
const char* title =
"Go4 Condition");
60 virtual void Paint(Option_t* opt=
"");
63 virtual void Draw(Option_t* opt=
"");
66 virtual void UnDraw(Option_t* opt=
"");
84 virtual void SetCounts(Int_t truecounts, Int_t counts);
88 virtual void Disable(Bool_t result);
99 virtual Bool_t
Test();
100 virtual Bool_t
Test(Double_t x, Double_t y) {
return true; }
101 virtual Bool_t
Test(Double_t x) {
return true; }
102 virtual Bool_t
Test(Bool_t result) {
return true; }
107 virtual void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2) {}
109 virtual void SetValues(Double_t * x, Double_t * y, Int_t len) {}
145 virtual void Invert(Bool_t on);
154 virtual void Print(Option_t* opt=
"")
const;
169 virtual void GetValues(Int_t & dim, Double_t & x1, Double_t & y1, Double_t & x2, Double_t & y2);
171 virtual Double_t
GetXUp();
173 virtual Double_t
GetYUp();
174 virtual TCutG*
GetCut(Bool_t owner);
178 virtual Double_t
GetIntegral(TH1* histo, Option_t* opt=
"");
181 virtual Double_t
GetMean(TH1* histo, Int_t axis=1);
184 virtual Double_t
GetRMS(TH1* histo, Int_t axis=1);
187 virtual Double_t
GetSkewness(TH1* histo, Int_t axis=1);
190 virtual Double_t
GetCurtosis(TH1* histo, Int_t axis=1);
193 virtual Double_t
GetXMax(TH1* histo);
196 virtual Double_t
GetYMax(TH1* histo);
199 virtual Double_t
GetCMax(TH1* histo);
207 virtual void Clear(Option_t* opt=
"");
211 virtual void SetFlags(Bool_t enabled, Bool_t lastresult, Bool_t markreset,
212 Bool_t result, Bool_t truevalue, Bool_t falsevalue);
216 virtual void GetFlags(Bool_t* enabled, Bool_t* lastresult, Bool_t* markreset,
217 Bool_t* result, Bool_t* truevalue, Bool_t* falsevalue);
433 const char*
MakeScript(std::ostream& out,
const char* varname, Option_t* opt =
"",
const char* arrextraargs = 0);
536 #endif //TGO4CONDITION_H
Double_t GetUpdateEpsilon()
virtual Double_t GetRMS(TH1 *histo, Int_t axis=1)
static Bool_t fgbXRMSDRAW
virtual void SetChanged(Bool_t on)
static TString fgxURL_CMAX
virtual Int_t TrueCounts()
virtual void MarkReset(Bool_t on)
virtual void SetIntDraw(Bool_t on)
virtual Bool_t IsVisible()
virtual Bool_t IsXMaxDraw()
static Bool_t fgbYMAXDRAW
Bool_t UrlOptionHasKey(const char *key)
static TString fgxURL_XRMS
static Bool_t fgbLIMITSDRAW
void SetUpdateEpsilon(Double_t val)
static TString fgxURL_RESET
virtual Bool_t IsXRMSDraw()
virtual void SetLimitsDraw(Bool_t on)
void PrintCondition(Bool_t points)
virtual void UnDraw(Option_t *opt="")
virtual Bool_t IsXMeanDraw()
virtual Int_t IsChanged()
virtual void GetFlags(Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue)
virtual void SetValues(TCutG *newcut)
virtual void SetYRMSDraw(Bool_t on)
virtual void SetLabelNumFormat(const char *fmt)
TString GetUrlOptionAsString(const char *key, TString def_value)
virtual void SetXMaxDraw(Bool_t on)
virtual Double_t GetYMax(TH1 *histo)
virtual Bool_t IsLimitsDraw()
static Bool_t fgbCMAXDRAW
virtual void SetPainter(TGo4ConditionPainter *painter)
static TString fgxURL_YMEAN
virtual Double_t GetXMax(TH1 *histo)
static Bool_t fgbLABELDRAW
void BuildUrlOptionArray(const char *rest_url_opt)
static TString fgxNUMFORMAT
static TString fgxURL_RESULT
virtual Double_t GetIntegral(TH1 *histo, Option_t *opt="")
static Bool_t fgbXMEANDRAW
void SetOwnedByEditor(Bool_t on)
virtual Bool_t UpdateFrom(TGo4Condition *cond, Bool_t counts)
virtual void SetVisible(Bool_t on)
static TString fgxURL_INTEGRAL
virtual Bool_t IsIntDraw()
Bool_t FixedResult() const
virtual Bool_t Test(Double_t x, Double_t y)
void SetPainted(Bool_t on)
virtual Double_t GetXLow()
virtual void SetCounts(Int_t truecounts, Int_t counts)
virtual void SetValues(Double_t low1, Double_t up1)
virtual Bool_t IsArrayType()
virtual void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
virtual void SetYMeanDraw(Bool_t on)
virtual TGo4Condition * GetActiveCondition()
virtual Double_t GetMean(TH1 *histo, Int_t axis=1)
virtual Bool_t Test(Bool_t result)
virtual Double_t GetCurtosis(TH1 *histo, Int_t axis=1)
virtual Int_t GetNumberOfConditions()
virtual Bool_t UpdateFromUrl(const char *rest_url_opt)
virtual void Invert(Bool_t on)
virtual void Disable(Bool_t result)
virtual Bool_t IsMultiEdit()
virtual void Clear(Option_t *opt="")
void SetHistogramLink(Bool_t on)
virtual Bool_t IsYMaxDraw()
virtual Double_t GetYLow()
virtual void SetValues(Double_t *x, Double_t *y, Int_t len)
virtual void Print(Option_t *opt="") const
static Bool_t fgbYMEANDRAW
virtual void SetFlags(Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue)
void SetHistogram(const char *name)
virtual Bool_t IsCMaxDraw()
static TString fgxURL_VISIBLE
static TString fgxURL_INVERT
virtual void SetCMaxDraw(Bool_t on)
virtual void SetYMaxDraw(Bool_t on)
virtual Bool_t Test(Double_t x)
virtual const char * GetLabelNumFormat()
void ResetLabel(Option_t *opt="reset")
virtual Bool_t IsYRMSDraw()
const char * MakeScript(std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=0)
void SetMultiEdit(Bool_t on)
static TString fgxURL_YMAX
static Bool_t fgbXMAXDRAW
virtual Double_t GetSkewness(TH1 *histo, Int_t axis=1)
virtual Bool_t IsLabelDraw()
virtual void Draw(Option_t *opt="")
virtual void SetXMeanDraw(Bool_t on)
virtual TGo4ConditionPainter * CreatePainter()
virtual void SetXRMSDraw(Bool_t on)
virtual void Paint(Option_t *opt="")
TGo4ConditionPainter * fxPainter
static TString fgxURL_LIMITS
void SetLast(Bool_t value)
static Bool_t fgbYRMSDRAW
void SetWorkHistogram(TH1 *histo)
TObjArray * fxUrlOptionArray
virtual void GetValues(Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
GO4 ConditionPainter prototype Test
virtual Bool_t IsPolygonType()
Int_t GetUrlOptionAsInt(const char *key, Int_t def_value)
virtual void SetCurrentIndex(Int_t ix)
const char * GetLinkedHistogram()
virtual Bool_t IsYMeanDraw()
static TString fgxURL_XMEAN
virtual Double_t GetXUp()
static TString fgxURL_YRMS
virtual void SetLabelDraw(Bool_t on)
virtual Double_t GetCMax(TH1 *histo)
virtual void AddCondition(TGo4Condition *next)
static TString fgxURL_LABEL
virtual TCutG * GetCut(Bool_t owner)
static const Double_t fgdUPDATEEPSILON
virtual void ResetCounts()
Double_t GetUrlOptionAsDouble(const char *key, Double_t def_value)
virtual Int_t GetMemorySize()
static TString fgxURL_XMAX
virtual Double_t GetYUp()
void SetDimension(Int_t d)
Bool_t fbStreamedCondition
virtual Int_t GetCurrentIndex()