GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TGo4CounterCond.h>
Public Member Functions | |
TGo4CounterCond () | |
TGo4CounterCond (const char *name, const char *title="TGo4CounterCond") | |
virtual | ~TGo4CounterCond () |
ClassDefOverride (TGo4CounterCond, 1) | |
void | PrintCondition (Bool_t full) override |
Prints counters and boolean members. | |
void | SetValues () override |
Set values needed, i.e. | |
virtual void | SetValues (Double_t *x, Double_t *y, Int_t len) |
Noop. | |
virtual void | SetValues (Double_t low1, Double_t up1) |
Noop. | |
virtual void | SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2) |
Noop. | |
virtual void | SetValues (TCutG *newcut) |
Noop. | |
virtual Bool_t | Test () |
Test if condition is true. | |
virtual Bool_t | Test (Bool_t result) |
virtual Bool_t | Test (Double_t x) |
virtual Bool_t | Test (Double_t x, Double_t y) |
Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) override |
Copy values from cond to this. | |
![]() | |
TGo4Condition () | |
TGo4Condition (const char *name, const char *title="Go4 Condition") | |
virtual | ~TGo4Condition () |
virtual void | AddCondition (TGo4Condition *next) |
Add another condition to this one. | |
void | Clear (Option_t *opt="") override |
virtual Int_t | Counts () |
Return number of calls of the Test method. | |
virtual TGo4ConditionPainter * | CreatePainter () |
Factory method to generate the subclass implementation for painter. | |
void | DeletePainter () |
virtual void | Disable (Bool_t result) |
Freeze condition, on Test() return result. | |
void | Draw (Option_t *opt="") override |
Draw this condition on current pad. | |
virtual void | Enable () |
Enable (unfreeze) Test execution. | |
Bool_t | FixedResult () const |
Returns the value set by Disable(value). | |
virtual const TGo4Condition * | GetActiveCondition () const |
To be overwritten for condition array. | |
virtual Double_t | GetCMax (TH1 *) |
Calculate value for histogram inside condition limits. | |
virtual Int_t | GetCurrentIndex () const |
get index for array type subclasses | |
virtual Double_t | GetCurtosis (TH1 *, Int_t=1) |
Calculate value for histogram inside condition limits. | |
virtual TCutG * | GetCut (Bool_t owner) |
Int_t | GetDimension () const |
virtual void | GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue) |
Sets values of internal boolean flags to external variables. | |
virtual Double_t | GetIntegral (TH1 *, Option_t *="") |
Calculate value for histogram inside condition limits. | |
virtual const char * | GetLabelNumFormat () const |
Bool_t | GetLast () const |
Returns result of last Test. | |
const char * | GetLinkedHistogram () const |
Access name of the associated histogram. | |
virtual Double_t | GetMean (TH1 *, Int_t=1) |
Calculate value for histogram inside condition limits. | |
virtual Int_t | GetMemorySize () const |
virtual Int_t | GetNumberOfConditions () const |
for condition aggregates: return total number of conditions, i.e.size of condition array | |
virtual Double_t | GetRMS (TH1 *, Int_t=1) |
Calculate value for histogram inside condition limits. | |
virtual Double_t | GetSkewness (TH1 *, Int_t=1) |
Calculate value for histogram inside condition limits. | |
Double_t | GetUpdateEpsilon () const |
virtual void | GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) |
TH1 * | GetWorkHistogram () const |
access work histogram reference | |
virtual Double_t | GetXLow () const |
virtual Double_t | GetXMax (TH1 *) |
Calculate value for histogram inside condition limits. | |
virtual Double_t | GetXUp () const |
virtual Double_t | GetYLow () const |
virtual Double_t | GetYMax (TH1 *) |
Calculate value for histogram inside condition limits. | |
virtual Double_t | GetYUp () const |
void | IncCounts () |
Increment the test counter. | |
void | IncTrueCounts () |
Increment the "test was true" counter. | |
void | InitLabelStyle () |
Initialize label setup from static default variables. | |
virtual void | Invert (Bool_t on) |
Inverts return values, when on is true, i.e. | |
virtual Bool_t | IsArrayType () const |
virtual Int_t | IsChanged () const |
virtual Bool_t | IsCMaxDraw () const |
Bool_t | IsEnabled () const |
Returns true if condition is enabled. | |
Bool_t | IsFalse () const |
Use this as return, if test was false. | |
Bool_t | IsHistogramLink () const |
True if the histogram of given name is linked to this. | |
virtual Bool_t | IsIntDraw () const |
virtual Bool_t | IsLabelDraw () const |
virtual Bool_t | IsLimitsDraw () const |
virtual Bool_t | IsMultiEdit () const |
Bool_t | IsOwnedByEditor () const |
virtual Bool_t | IsPolygonType () const |
Bool_t | IsTrue () const |
Use this as return, if test was true. | |
virtual Bool_t | IsVisible () const |
Visibility property for gui display in editor. | |
virtual Bool_t | IsXMaxDraw () const |
virtual Bool_t | IsXMeanDraw () const |
virtual Bool_t | IsXRMSDraw () const |
virtual Bool_t | IsYMaxDraw () const |
virtual Bool_t | IsYMeanDraw () const |
virtual Bool_t | IsYRMSDraw () const |
virtual void | MarkReset (Bool_t on) |
defines if condition counters shall be reset in UpdateFrom method | |
void | Paint (Option_t *opt="") override |
Display condition with plain root canvas and in go4 viewpanel. | |
void | Pop () override |
Re-implement TObject method to pop all our views to front. | |
void | Print (Option_t *opt="") const override |
Default printout for root object lists. | |
virtual void | PrintBar () |
Prints counters and bar. | |
virtual void | ResetCounts () |
Clear counters. | |
void | ResetLabel (Option_t *opt="reset") |
Will reset label position to defaults with other option than reset, just pop label to front. | |
void | SaveLabelStyle () |
This will save draw flags into static default setup. | |
virtual void | SetChanged (Bool_t on=kTRUE) |
virtual void | SetCMaxDraw (Bool_t on) |
virtual void | SetCounts (Int_t truecounts, Int_t counts) |
Set counters. | |
virtual void | SetCurrentIndex (Int_t) |
set index for array type subclasses | |
void | SetDimension (Int_t d) |
virtual void | SetFlags (Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue) |
Sets values of external boolean flags to internal variables. | |
void | SetHistogram (const char *name) |
Define the name of the associated histogram. | |
void | SetHistogramLink (Bool_t on) |
Define if this condition has association with an analysis histogram. | |
virtual void | SetIntDraw (Bool_t on) |
virtual void | SetLabelDraw (Bool_t on) |
virtual void | SetLabelNumFormat (const char *fmt) |
void | SetLast (Bool_t value) |
Can be used in Test to store the result. | |
virtual void | SetLimitsDraw (Bool_t on) |
void | SetMultiEdit (Bool_t on) |
void | SetOwnedByEditor (Bool_t on) |
virtual void | SetPainter (TGo4ConditionPainter *painter) |
Replace default painter of this condition by external one. | |
void | SetUpdateEpsilon (Double_t val) |
Configure graphical update tolerance for this condition individually. | |
virtual void | SetVisible (Bool_t on) |
Set/Unset visibility. | |
virtual void | SetWorkHistogram (TH1 *histo) |
Set reference to work histogram for statistics functions. | |
virtual void | SetXMaxDraw (Bool_t on) |
virtual void | SetXMeanDraw (Bool_t on) |
virtual void | SetXRMSDraw (Bool_t on) |
virtual void | SetYMaxDraw (Bool_t on) |
virtual void | SetYMeanDraw (Bool_t on) |
virtual void | SetYRMSDraw (Bool_t on) |
virtual Int_t | TrueCounts () |
Return number of true results of the Test method call. | |
virtual void | UnDraw (Option_t *opt="") |
Erase view of this condition from the pad. | |
virtual Bool_t | UpdateFromUrl (const char *rest_url_opt) |
Method used by HTTP server to update some fields, specified in URL syntax. | |
Additional Inherited Members | |
![]() | |
static void | GetGlobalStyle (Bool_t &LABELDRAW, Bool_t &LIMITSDRAW, Bool_t &INTDRAW, Bool_t &XMEANDRAW, Bool_t &YMEANDRAW, Bool_t &XRMSDRAW, Bool_t &YRMSDRAW, Bool_t &XMAXDRAW, Bool_t &YMAXDRAW, Bool_t &CMAXDRAW, TString &NUMFORMAT) |
static void | SetGlobalStyle (Bool_t LABELDRAW, Bool_t LIMITSDRAW, Bool_t INTDRAW, Bool_t XMEANDRAW, Bool_t YMEANDRAW, Bool_t XRMSDRAW, Bool_t YRMSDRAW, Bool_t XMAXDRAW, Bool_t YMAXDRAW, Bool_t CMAXDRAW, const char *NUMFORMAT) |
![]() | |
static Bool_t | fgbCMAXDRAW =kTRUE |
default setting for all conditions for label draw cmax flag. | |
static Bool_t | fgbINTDRAW =kTRUE |
default setting for all conditions for label draw integral flag. | |
static Bool_t | fgbLABELDRAW =kTRUE |
default setting for all conditions for label draw on/off flag. | |
static Bool_t | fgbLIMITSDRAW =kTRUE |
default setting for all conditions for label draw limits flag. | |
static Bool_t | fgbXMAXDRAW =kTRUE |
default setting for all conditions for label draw xmax flag. | |
static Bool_t | fgbXMEANDRAW =kTRUE |
default setting for all conditions for label draw xmean flag. | |
static Bool_t | fgbXRMSDRAW =kTRUE |
default setting for all conditions for label draw xrms flag. | |
static Bool_t | fgbYMAXDRAW =kFALSE |
default setting for all conditions for label draw ymax flag. | |
static Bool_t | fgbYMEANDRAW =kFALSE |
default setting for all conditions for label draw ymean flag. | |
static Bool_t | fgbYRMSDRAW =kFALSE |
default setting for all conditions for label draw yrms flag. | |
static const Double_t | fgdUPDATEEPSILON = 0.01 |
default value for graphical update tolerance. | |
static TString | fgxNUMFORMAT ="%.4E" |
default setting for all conditions with format string for numbers. | |
static TString | fgxURL_CMAX ="cmaxdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_INTEGRAL ="intdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_INVERT ="invertmode" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_LABEL ="labeldraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_LIMITS ="limitsdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_RESET ="resetcounters" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_RESULT ="resultmode" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_VISIBLE ="visible" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_XMAX ="xmaxdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_XMEAN ="xmeandraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_XRMS ="xrmsdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_YMAX ="ymaxdraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_YMEAN ="ymeandraw" |
web condition editor keyword used in UpdateFromUrl. | |
static TString | fgxURL_YRMS ="yrmsdraw" |
web condition editor keyword used in UpdateFromUrl. | |
![]() | |
void | BuildUrlOptionArray (const char *rest_url_opt) |
re-build the list of url options from string | |
Double_t | GetUrlOptionAsDouble (const char *key, Double_t def_value) |
Scan list of url options for key. | |
Int_t | GetUrlOptionAsInt (const char *key, Int_t def_value) |
Scan list of url options for key. | |
TString | GetUrlOptionAsString (const char *key, TString def_value) |
Scan list of url options for key. | |
Bool_t | IsPainted () const |
const char * | MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=nullptr) |
void | SetPainted (Bool_t on) |
Bool_t | UrlOptionHasKey (const char *key) |
returns true if key is present in list of url options. | |
![]() | |
TGo4ConditionPainter * | fxPainter {nullptr} |
Painter instance to display the condition in root pad. | |
TObjArray * | fxUrlOptionArray {nullptr} |
array with TObjStrings evaluated by UpdateFromUrl | |
Definition at line 19 of file TGo4CounterCond.h.
TGo4CounterCond::TGo4CounterCond | ( | ) |
Definition at line 16 of file TGo4CounterCond.cxx.
References TGo4Condition::TGo4Condition().
Referenced by ClassDefOverride().
TGo4CounterCond::TGo4CounterCond | ( | const char * | name, |
const char * | title = "TGo4CounterCond" ) |
Definition at line 21 of file TGo4CounterCond.cxx.
References TGo4Condition::TGo4Condition().
|
virtual |
Definition at line 26 of file TGo4CounterCond.cxx.
TGo4CounterCond::ClassDefOverride | ( | TGo4CounterCond | , |
1 | ) |
References TGo4CounterCond().
|
overridevirtual |
Prints counters and boolean members.
Reimplemented from TGo4Condition.
Definition at line 37 of file TGo4CounterCond.cxx.
References TGo4Condition::PrintCondition().
|
inlineoverridevirtual |
Set values needed, i.e.
limits for windows or cuts for polygons
Reimplemented from TGo4Condition.
Definition at line 27 of file TGo4CounterCond.h.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Test if condition is true.
Result is returned, the internal counters are set appropriately. Should return fbResult if condition is not enabled. the default is increment test counter and return true.
Reimplemented from TGo4Condition.
Definition at line 88 of file TGo4Condition.cxx.
|
virtual |
Definition at line 30 of file TGo4CounterCond.cxx.
References TGo4Condition::IncCounts(), and TGo4Condition::IncTrueCounts().
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 90 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented from TGo4Condition.
Definition at line 89 of file TGo4Condition.h.
|
overridevirtual |
Copy values from cond to this.
When counts is true, copy also counters.
Reimplemented from TGo4Condition.
Definition at line 42 of file TGo4CounterCond.cxx.
References TGo4Condition::TGo4Condition(), and TGo4Condition::UpdateFrom().