GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Go4 condition class. More...
#include <TGo4Condition.h>
Public Member Functions | |
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 | PrintCondition (Bool_t full=kTRUE) |
Prints counters and boolean members. | |
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 | SetValues () |
Set values needed, i.e. | |
virtual void | SetValues (Double_t *x, Double_t *y, Int_t len) |
virtual void | SetValues (Double_t low1, Double_t up1) |
virtual void | SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2) |
virtual void | SetValues (TCutG *newcut) |
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 Bool_t | Test () |
Test if condition is true. | |
virtual Bool_t | Test (Double_t x) |
virtual Bool_t | Test (Double_t x, Double_t y) |
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 | UpdateFrom (TGo4Condition *cond, Bool_t counts) |
Copy values from cond to this. | |
virtual Bool_t | UpdateFromUrl (const char *rest_url_opt) |
Method used by HTTP server to update some fields, specified in URL syntax. | |
Static Public Member Functions | |
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 Public Attributes | |
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. | |
Protected Member Functions | |
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. | |
Protected Attributes | |
TGo4ConditionPainter * | fxPainter {nullptr} |
Painter instance to display the condition in root pad. | |
TObjArray * | fxUrlOptionArray {nullptr} |
array with TObjStrings evaluated by UpdateFromUrl | |
Private Attributes | |
Bool_t | fbCMaxDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbEnabled {kFALSE} |
Flag to enable/disable this condition. | |
Bool_t | fbFalse {kFALSE} |
These are inverted by Invert(true), and restored by Invert(false). | |
Bool_t | fbHistogramLink {kFALSE} |
is true if this condition has link to a histogram name | |
Bool_t | fbIntDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbIsPainted {kFALSE} |
Flag to prevent Paint() method to redraw condition views after UnDraw. | |
Bool_t | fbLabelDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbLastResult {kFALSE} |
This can be used to store the last result by SetLast(bool). | |
Bool_t | fbLimitsDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbMarkReset {kFALSE} |
Bool_t | fbMultiEdit {kFALSE} |
Flag to indicate that properties of all conditions in array are edited/used. | |
Bool_t | fbOwnedByEditor {kFALSE} |
Flag to suppress interactive deletion of condition. | |
Bool_t | fbResult {kFALSE} |
If fbEnabled is false, return this as result. | |
Bool_t | fbStreamedCondition {kFALSE} |
This allows to treat conditions streamed into pad. | |
Bool_t | fbTrue {kTRUE} |
These are inverted by Invert(true), and restored by Invert(false) | |
Bool_t | fbVisible {kFALSE} |
Property to store visibility of condition on display. | |
Bool_t | fbXMaxDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbXMeanDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbXRMSDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbYMaxDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbYMeanDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Bool_t | fbYRMSDraw {kFALSE} |
If true, draw corresponding value as label on working pad. | |
Double_t | fdUpdateEpsilon {0} |
Precision for the check if graphical representation change requires update. | |
Int_t | fiCounts {0} |
Counts the number of calls of the Test method. | |
Int_t | fiDim {0} |
Dimension (1 or 2). | |
Int_t | fiIsChanged {0} |
Counter indicate how many times condition was changed from graphical view. | |
Int_t | fiTrueCounts {0} |
Counts the number of calls of the Test method with true result. | |
TH1 * | fxHisto {nullptr} |
Reference to currently used histogram (for statistics boxes). | |
TString | fxHistoName |
contains associated histogram name | |
TString | fxNumFormat |
format string for all label numbers. | |
Friends | |
class | TGo4CondArray |
Go4 condition class.
Definition at line 37 of file TGo4Condition.h.
TGo4Condition::TGo4Condition | ( | ) |
Definition at line 59 of file TGo4Condition.cxx.
References fbEnabled, fbFalse, fbHistogramLink, fbIsPainted, fbMarkReset, fbMultiEdit, fbOwnedByEditor, fbResult, fbStreamedCondition, fbTrue, fbVisible, fdUpdateEpsilon, fgdUPDATEEPSILON, fiCounts, fiDim, fiIsChanged, fiTrueCounts, GO4TRACE, and InitLabelStyle().
Referenced by TGo4CondArray::TGo4CondArray(), TGo4CondArray::TGo4CondArray(), TGo4CondArray::TGo4CondArray(), TGo4CounterCond::TGo4CounterCond(), TGo4CounterCond::TGo4CounterCond(), TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4PolyCond::TGo4PolyCond(), TGo4PolyCond::TGo4PolyCond(), TGo4WinCond::TGo4WinCond(), TGo4WinCond::TGo4WinCond(), AddCondition(), TGo4CondArray::At(), TGo4CondArray::Counts(), TGo4CondArray::Disable(), TGo4CondArray::Draw(), TGo4CondArray::Enable(), TGo4CondArray::GetActiveCondition(), GetActiveCondition(), TGo4CondArray::GetCMax(), TGo4CondArray::GetCurtosis(), TGo4CondArray::GetFlags(), TGo4CondArray::GetIntegral(), TGo4CondArray::GetMean(), TGo4CondArray::GetMemorySize(), TGo4CondArray::GetRMS(), TGo4CondArray::GetSkewness(), TGo4CondArray::GetType(), TGo4CondArray::GetXLow(), TGo4CondArray::GetXMax(), TGo4CondArray::GetXUp(), TGo4CondArray::GetYLow(), TGo4CondArray::GetYMax(), TGo4CondArray::GetYUp(), TGo4CondArray::Invert(), TGo4CondArray::IsChanged(), TGo4CondArray::IsCMaxDraw(), TGo4CondArray::IsIntDraw(), TGo4CondArray::IsLabelDraw(), TGo4CondArray::IsLimitsDraw(), TGo4CondArray::IsPolygonType(), TGo4CondArray::IsVisible(), TGo4CondArray::IsXMaxDraw(), TGo4CondArray::IsXMeanDraw(), TGo4CondArray::IsXRMSDraw(), TGo4CondArray::IsYMaxDraw(), TGo4CondArray::IsYMeanDraw(), TGo4CondArray::IsYRMSDraw(), TGo4CondArray::MarkReset(), TGo4CondArray::operator[](), Print(), TGo4CondArray::PrintBar(), TGo4CondArray::PrintCondition(), TGo4CondArray::ResetCounts(), TGo4CondArray::SetChanged(), TGo4CondArray::SetCMaxDraw(), TGo4CondArray::SetIntDraw(), TGo4CondArray::SetLabelDraw(), TGo4CondArray::SetLimitsDraw(), TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), TGo4CondArray::SetVisible(), TGo4CondArray::SetXMaxDraw(), TGo4CondArray::SetXMeanDraw(), TGo4CondArray::SetXRMSDraw(), TGo4CondArray::SetYMaxDraw(), TGo4CondArray::SetYMeanDraw(), TGo4CondArray::SetYRMSDraw(), TGo4CondArray::Test(), TGo4CondArray::Test(), TGo4CondArray::TrueCounts(), TGo4CondArray::UpdateFrom(), UpdateFrom(), TGo4CounterCond::UpdateFrom(), TGo4ListCond::UpdateFrom(), TGo4PolyCond::UpdateFrom(), TGo4ShapedCond::UpdateFrom(), and TGo4WinCond::UpdateFrom().
TGo4Condition::TGo4Condition | ( | const char * | name, |
const char * | title = "Go4 Condition" ) |
Definition at line 85 of file TGo4Condition.cxx.
|
virtual |
Definition at line 111 of file TGo4Condition.cxx.
References fxPainter, fxUrlOptionArray, and GO4TRACE.
|
virtual |
Add another condition to this one.
The newly added condition is added as next condition and may be tested together with the current condition. User may specify the logical connection between the chained conditions (e.g. a logical "and", "or", "xor" relationships are all possible). Depends on the implementation of Test() method. The chained conditions are not owned by the top level condition and are not deleted by dtor, thus one condition instance may be chained to several others.
Definition at line 135 of file TGo4Condition.cxx.
References TGo4Condition(), and GO4TRACE.
|
protected |
re-build the list of url options from string
Definition at line 329 of file TGo4Condition.cxx.
References fxUrlOptionArray.
Referenced by UpdateFromUrl().
|
override |
Definition at line 520 of file TGo4Condition.cxx.
References ResetCounts().
|
virtual |
Return number of calls of the Test method.
Reimplemented in TGo4CondArray.
Definition at line 152 of file TGo4Condition.cxx.
References fiCounts, and GO4TRACE.
Referenced by TGo4CondArray::Counts(), MakeScript(), Print(), TGo4ConditionInfo::RefreshWidget(), and TGo4CondArray::TrueCounts().
|
virtual |
Factory method to generate the subclass implementation for painter.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 633 of file TGo4Condition.cxx.
void TGo4Condition::DeletePainter | ( | ) |
Definition at line 711 of file TGo4Condition.cxx.
References fxPainter.
Referenced by TGo4ViewPanel::MakePictureForPad().
|
virtual |
Freeze condition, on Test() return result.
This overwrites inverted result, but does not change it
Reimplemented in TGo4CondArray.
Definition at line 547 of file TGo4Condition.cxx.
References fbEnabled, and fbResult.
Referenced by TGo4CondArray::Disable(), TGo4ConditionEditor::SetResultMode(), and UpdateFromUrl().
|
override |
Draw this condition on current pad.
Definition at line 601 of file TGo4Condition.cxx.
References IsVisible(), SetPainted(), and UnDraw().
Referenced by TGo4CondArray::Draw(), TGo4RootBrowserProxy::DrawCondition(), and TGo4ViewPanel::PadClickedSlot().
|
virtual |
Enable (unfreeze) Test execution.
Reimplemented in TGo4CondArray.
Definition at line 553 of file TGo4Condition.cxx.
References fbEnabled.
Referenced by TGo4CondArray::Enable(), TGo4CreateNewCondition::MakeCondition(), TGo4Analysis::MakePolyCond(), TGo4ConditionEditor::SetResultMode(), and UpdateFromUrl().
|
inline |
Returns the value set by Disable(value).
Definition at line 130 of file TGo4Condition.h.
References fbResult.
Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4ListCond::Test(), TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
|
inlinevirtual |
To be overwritten for condition array.
By default, it returns this.
Reimplemented in TGo4CondArray.
Definition at line 191 of file TGo4Condition.h.
References TGo4Condition().
Referenced by Print().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 188 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetCMax(), and Print().
|
inlinevirtual |
get index for array type subclasses
Reimplemented in TGo4CondArray.
Definition at line 312 of file TGo4Condition.h.
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 179 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetCurtosis().
|
inlinevirtual |
Reimplemented in TGo4PolyCond.
Definition at line 163 of file TGo4Condition.h.
|
inline |
Definition at line 303 of file TGo4Condition.h.
References fiDim.
Referenced by GetValues(), TGo4WinCond::GetValues(), TGo4ViewPanel::PadClickedSlot(), TGo4WinCondPainter::PaintCondition(), Print(), TGo4WinCond::PrintCondition(), TGo4ConditionEditor::RefreshWidget(), TGo4ConditionInfo::RefreshWidget(), UpdateFrom(), TGo4WinCond::UpdateFromUrl(), and TGo4ConditionEditor::UpdateLimits().
|
virtual |
Sets values of internal boolean flags to external variables.
Overwritten in TGo4CondArray.
Reimplemented in TGo4CondArray.
Definition at line 525 of file TGo4Condition.cxx.
References fbEnabled, fbFalse, fbLastResult, fbMarkReset, fbResult, and fbTrue.
Referenced by TGo4CondArray::GetFlags(), and MakeScript().
|
static |
Definition at line 685 of file TGo4Condition.cxx.
References fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, and fgxNUMFORMAT.
Referenced by TGo4MarkerSettings::TGo4MarkerSettings(), and TGo4QSettings::setBasicSettings().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Option may specify "width" to scale channel sum with axes
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 167 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetIntegral(), and Print().
|
inlinevirtual |
Definition at line 288 of file TGo4Condition.h.
References fxNumFormat.
|
inline |
Returns result of last Test.
Definition at line 150 of file TGo4Condition.h.
References fbLastResult.
const char * TGo4Condition::GetLinkedHistogram | ( | ) | const |
Access name of the associated histogram.
Definition at line 569 of file TGo4Condition.cxx.
References fxHistoName.
Referenced by TGo4RootBrowserProxy::DrawCondition(), and TGo4ConditionEditor::RefreshWidget().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 170 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetMean(), and Print().
|
virtual |
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 507 of file TGo4Condition.cxx.
Referenced by TGo4CondArray::GetMemorySize(), and TGo4ConditionInfo::RefreshWidget().
|
inlinevirtual |
for condition aggregates: return total number of conditions, i.e.size of condition array
Reimplemented in TGo4CondArray.
Definition at line 316 of file TGo4Condition.h.
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 173 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetRMS(), and Print().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 176 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetSkewness().
|
inline |
Definition at line 242 of file TGo4Condition.h.
References fdUpdateEpsilon.
|
protected |
Scan list of url options for key.
If found, return Double value. If not found, return default value def_value
Definition at line 386 of file TGo4Condition.cxx.
References GetUrlOptionAsString().
Referenced by TGo4PolyCond::UpdateFromUrl(), TGo4ShapedCond::UpdateFromUrl(), and TGo4WinCond::UpdateFromUrl().
|
protected |
Scan list of url options for key.
If found, return Integer value. If not found, return default value def_value
Definition at line 377 of file TGo4Condition.cxx.
References GetUrlOptionAsString().
Referenced by UpdateFromUrl(), TGo4PolyCond::UpdateFromUrl(), and TGo4ShapedCond::UpdateFromUrl().
|
protected |
Scan list of url options for key.
If found, return TString value. If not found, return default value def_value
Definition at line 356 of file TGo4Condition.cxx.
References fxUrlOptionArray.
Referenced by GetUrlOptionAsDouble(), and GetUrlOptionAsInt().
|
virtual |
Reimplemented in TGo4WinCond.
Definition at line 497 of file TGo4Condition.cxx.
References GetDimension(), GetXLow(), GetXUp(), GetYLow(), and GetYUp().
|
inline |
access work histogram reference
Definition at line 231 of file TGo4Condition.h.
References fxHisto.
Referenced by TGo4ViewPanel::CheckObjectsAssigments(), TGo4CondArrayPainter::PaintCondition(), and Print().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 159 of file TGo4Condition.h.
Referenced by GetValues(), TGo4CondArray::GetXLow(), and Print().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 182 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetXMax(), and Print().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 160 of file TGo4Condition.h.
Referenced by GetValues(), TGo4CondArray::GetXUp(), and Print().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 161 of file TGo4Condition.h.
Referenced by GetValues(), TGo4CondArray::GetYLow(), and Print().
|
inlinevirtual |
Calculate value for histogram inside condition limits.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 185 of file TGo4Condition.h.
Referenced by TGo4CondArray::GetYMax(), and Print().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 162 of file TGo4Condition.h.
Referenced by GetValues(), TGo4CondArray::GetYUp(), and Print().
void TGo4Condition::IncCounts | ( | ) |
Increment the test counter.
User has to take care that this method is called within his/her Test method.
Definition at line 146 of file TGo4Condition.cxx.
References fiCounts, and GO4TRACE.
Referenced by TGo4CondArray::Test(), TGo4CondArray::Test(), TGo4CounterCond::Test(), TGo4ListCond::Test(), TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
void TGo4Condition::IncTrueCounts | ( | ) |
Increment the "test was true" counter.
User has to take care that this method is called within his/her Test method on success.
Definition at line 140 of file TGo4Condition.cxx.
References fiTrueCounts, and GO4TRACE.
Referenced by TGo4CondArray::Test(), TGo4CondArray::Test(), TGo4CounterCond::Test(), TGo4ListCond::Test(), TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
void TGo4Condition::InitLabelStyle | ( | ) |
Initialize label setup from static default variables.
Definition at line 653 of file TGo4Condition.cxx.
References fbCMaxDraw, fbIntDraw, fbLabelDraw, fbLimitsDraw, fbXMaxDraw, fbXMeanDraw, fbXRMSDraw, fbYMaxDraw, fbYMeanDraw, fbYRMSDraw, fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, fgxNUMFORMAT, and fxNumFormat.
Referenced by TGo4Condition(), and TGo4CondArray::Test().
|
virtual |
Inverts return values, when on is true, i.e.
isTrue() will return false, and isFalse() will return true. Whn on is false, inversion is reset.
Reimplemented in TGo4CondArray.
Definition at line 180 of file TGo4Condition.cxx.
References fbFalse, fbTrue, and GO4TRACE.
Referenced by TGo4CondArray::Invert(), TGo4AnalysisObjectManager::MakePolyCond(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4ConditionEditor::SetInvertMode(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 321 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 297 of file TGo4Condition.h.
References fiIsChanged.
Referenced by TGo4CondArray::IsChanged(), and TGo4ViewPanel::RefreshButtons().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 285 of file TGo4Condition.h.
References fbCMaxDraw.
Referenced by TGo4CondArray::IsCMaxDraw().
|
inline |
Returns true if condition is enabled.
Definition at line 83 of file TGo4Condition.h.
References fbEnabled.
Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4ListCond::Test(), TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
|
inline |
Use this as return, if test was false.
Takes into account inversion, i.e. when condition is inverted, IsFalse returns true.
Definition at line 127 of file TGo4Condition.h.
References fbFalse.
Referenced by TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
|
inline |
True if the histogram of given name is linked to this.
Definition at line 218 of file TGo4Condition.h.
References fbHistogramLink.
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 264 of file TGo4Condition.h.
References fbIntDraw.
Referenced by TGo4CondArray::IsIntDraw().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 258 of file TGo4Condition.h.
References fbLabelDraw.
Referenced by TGo4CondArray::IsLabelDraw().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 261 of file TGo4Condition.h.
References fbLimitsDraw.
Referenced by TGo4CondArray::IsLimitsDraw().
|
inlinevirtual |
Definition at line 300 of file TGo4Condition.h.
References fbMultiEdit.
Referenced by TGo4CondArray::Counts(), TGo4CondArray::Disable(), TGo4CondArray::Enable(), TGo4CondArray::GetActiveCondition(), TGo4CondArray::GetCMax(), TGo4CondArray::GetCurtosis(), TGo4CondArray::GetFlags(), TGo4CondArray::GetIntegral(), TGo4CondArray::GetMean(), TGo4CondArray::GetRMS(), TGo4CondArray::GetSkewness(), TGo4CondArray::GetXLow(), TGo4CondArray::GetXMax(), TGo4CondArray::GetXUp(), TGo4CondArray::GetYLow(), TGo4CondArray::GetYMax(), TGo4CondArray::GetYUp(), TGo4CondArray::Invert(), TGo4CondArray::IsCMaxDraw(), TGo4CondArray::IsIntDraw(), TGo4CondArray::IsLabelDraw(), TGo4CondArray::IsLimitsDraw(), TGo4CondArray::IsPolygonType(), TGo4CondArray::IsVisible(), TGo4CondArray::IsXMaxDraw(), TGo4CondArray::IsXMeanDraw(), TGo4CondArray::IsXRMSDraw(), TGo4CondArray::IsYMaxDraw(), TGo4CondArray::IsYMeanDraw(), TGo4CondArray::IsYRMSDraw(), TGo4CondArray::MarkReset(), TGo4CondArrayPainter::PaintCondition(), TGo4CondArray::ResetCounts(), TGo4CondArray::SetCMaxDraw(), TGo4CondArray::SetIntDraw(), TGo4CondArray::SetLabelDraw(), TGo4CondArray::SetLimitsDraw(), TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), TGo4CondArray::SetVisible(), TGo4CondArray::SetXMaxDraw(), TGo4CondArray::SetXMeanDraw(), TGo4CondArray::SetXRMSDraw(), TGo4CondArray::SetYMaxDraw(), TGo4CondArray::SetYMeanDraw(), TGo4CondArray::SetYRMSDraw(), TGo4CondArray::Test(), TGo4CondArray::Test(), and TGo4CondArray::TrueCounts().
|
inline |
Definition at line 306 of file TGo4Condition.h.
References fbOwnedByEditor.
|
inlineprotected |
Definition at line 423 of file TGo4Condition.h.
References fbIsPainted.
Referenced by TGo4CondArray::Draw(), and Paint().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 320 of file TGo4Condition.h.
Referenced by TGo4CondArray::IsPolygonType(), and Print().
|
inline |
Use this as return, if test was true.
Takes into account inversion, i.e. when condition is inverted, IsTrue returns false.
Definition at line 123 of file TGo4Condition.h.
References fbTrue.
Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4PolyCond::Test(), TGo4WinCond::Test(), and TGo4WinCond::Test().
|
inlinevirtual |
Visibility property for gui display in editor.
Reimplemented in TGo4CondArray.
Definition at line 212 of file TGo4Condition.h.
References fbVisible.
Referenced by Draw(), TGo4CondArray::IsVisible(), TGo4PolyCondPainter::PaintCondition(), TGo4WinCondPainter::PaintCondition(), and Print().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 279 of file TGo4Condition.h.
References fbXMaxDraw.
Referenced by TGo4CondArray::IsXMaxDraw(), and TGo4ViewPanel::PadClickedSlot().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 267 of file TGo4Condition.h.
References fbXMeanDraw.
Referenced by TGo4CondArray::IsXMeanDraw(), and TGo4ViewPanel::PadClickedSlot().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 270 of file TGo4Condition.h.
References fbXRMSDraw.
Referenced by TGo4CondArray::IsXRMSDraw(), and TGo4ViewPanel::PadClickedSlot().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 282 of file TGo4Condition.h.
References fbYMaxDraw.
Referenced by TGo4CondArray::IsYMaxDraw().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 273 of file TGo4Condition.h.
References fbYMeanDraw.
Referenced by TGo4CondArray::IsYMeanDraw().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 276 of file TGo4Condition.h.
References fbYRMSDraw.
Referenced by TGo4CondArray::IsYRMSDraw().
|
protected |
Definition at line 719 of file TGo4Condition.cxx.
References Counts(), GetFlags(), and TrueCounts().
Referenced by TGo4CondArray::SavePrimitive(), TGo4PolyCond::SavePrimitive(), and TGo4WinCond::SavePrimitive().
|
virtual |
defines if condition counters shall be reset in UpdateFrom method
Reimplemented in TGo4CondArray.
Definition at line 515 of file TGo4Condition.cxx.
References fbMarkReset.
Referenced by TGo4CondArray::MarkReset().
|
override |
Display condition with plain root canvas and in go4 viewpanel.
Definition at line 581 of file TGo4Condition.cxx.
References CreatePainter(), fbStreamedCondition, fxPainter, IsPainted(), and SetPainted().
Referenced by TGo4CondArrayPainter::PaintCondition().
|
override |
Re-implement TObject method to pop all our views to front.
Definition at line 628 of file TGo4Condition.cxx.
References fxPainter.
|
override |
Default printout for root object lists.
Definition at line 225 of file TGo4Condition.cxx.
References TGo4Condition(), Counts(), fbEnabled, fbResult, fbTrue, GetActiveCondition(), GetCMax(), GetDimension(), GetIntegral(), GetMean(), GetRMS(), GetWorkHistogram(), GetXLow(), GetXMax(), GetXUp(), GetYLow(), GetYMax(), GetYUp(), IsPolygonType(), IsVisible(), TGo4Log::Message(), PrintBar(), and TrueCounts().
|
virtual |
Prints counters and bar.
Reimplemented in TGo4CondArray.
Definition at line 209 of file TGo4Condition.cxx.
References fiCounts, and fiTrueCounts.
Referenced by Print(), and TGo4CondArray::PrintBar().
|
virtual |
Prints counters and boolean members.
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, TGo4ShapedCond, and TGo4WinCond.
Definition at line 188 of file TGo4Condition.cxx.
References fbEnabled, fbHistogramLink, fbResult, fbTrue, fiCounts, fiTrueCounts, and fxHistoName.
Referenced by TGo4CondArray::PrintCondition(), TGo4CounterCond::PrintCondition(), TGo4ListCond::PrintCondition(), TGo4PolyCond::PrintCondition(), and TGo4WinCond::PrintCondition().
|
virtual |
Clear counters.
Reimplemented in TGo4CondArray.
Definition at line 164 of file TGo4Condition.cxx.
References fiCounts, fiTrueCounts, and GO4TRACE.
Referenced by Clear(), TGo4Analysis::MakeEllipseCond(), TGo4Analysis::MakeListCond(), TGo4Analysis::MakePolyCond(), TGo4Analysis::MakeWinCond(), TGo4Analysis::MakeWinCond(), TGo4CondArray::ResetCounts(), UpdateFrom(), and UpdateFromUrl().
void TGo4Condition::ResetLabel | ( | Option_t * | opt = "reset" | ) |
Will reset label position to defaults with other option than reset, just pop label to front.
Definition at line 703 of file TGo4Condition.cxx.
References fxPainter.
void TGo4Condition::SaveLabelStyle | ( | ) |
This will save draw flags into static default setup.
Definition at line 638 of file TGo4Condition.cxx.
References fbCMaxDraw, fbIntDraw, fbLabelDraw, fbLimitsDraw, fbXMaxDraw, fbXMeanDraw, fbXRMSDraw, fbYMaxDraw, fbYMeanDraw, fbYRMSDraw, fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, fgxNUMFORMAT, and fxNumFormat.
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 290 of file TGo4Condition.h.
References fiIsChanged.
Referenced by TGo4ConditionEditor::linkedObjectUpdated(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArray::SetChanged(), TGo4ViewPanel::SetConditionBtn_clicked(), and TGo4BrowserProxy::UpdateObjectContent().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 284 of file TGo4Condition.h.
References fbCMaxDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetCMaxDraw(), and UpdateFromUrl().
|
virtual |
Set counters.
Definition at line 171 of file TGo4Condition.cxx.
References fiCounts, fiTrueCounts, and GO4TRACE.
|
inlinevirtual |
set index for array type subclasses
Reimplemented in TGo4CondArray.
Definition at line 309 of file TGo4Condition.h.
|
inline |
Definition at line 302 of file TGo4Condition.h.
References fiDim.
Referenced by TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4ListCond::TGo4ListCond(), TGo4PolyCond::TGo4PolyCond(), TGo4PolyCond::TGo4PolyCond(), TGo4WinCond::SetValues(), TGo4WinCond::SetValues(), and TGo4WinCond::UpdateFrom().
|
virtual |
Sets values of external boolean flags to internal variables.
Overwritten in TGo4CondArray.
Definition at line 536 of file TGo4Condition.cxx.
References fbEnabled, fbFalse, fbLastResult, fbMarkReset, fbResult, and fbTrue.
|
static |
Definition at line 668 of file TGo4Condition.cxx.
References fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, and fgxNUMFORMAT.
Referenced by TGo4QSettings::getBasicSettings(), and TGo4MarkerSettings::setFlags().
void TGo4Condition::SetHistogram | ( | const char * | name | ) |
Define the name of the associated histogram.
Definition at line 558 of file TGo4Condition.cxx.
References fbHistogramLink, and fxHistoName.
Referenced by TGo4Analysis::MakePolyCond(), TGo4AnalysisObjectManager::MakePolyCond(), TGo4AnalysisObjectManager::MakeWindowCond(), and TGo4AnalysisObjectManager::MakeWindowCond().
|
inline |
Define if this condition has association with an analysis histogram.
Definition at line 215 of file TGo4Condition.h.
References fbHistogramLink.
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 263 of file TGo4Condition.h.
References fbIntDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetIntDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 257 of file TGo4Condition.h.
References fbLabelDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetLabelDraw(), and UpdateFromUrl().
|
inlinevirtual |
Definition at line 287 of file TGo4Condition.h.
References fxNumFormat.
|
inline |
Can be used in Test to store the result.
Is retrieved by GetLast() without further test.
Definition at line 147 of file TGo4Condition.h.
References fbLastResult.
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 260 of file TGo4Condition.h.
References fbLimitsDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetLimitsDraw(), and UpdateFromUrl().
|
inline |
Definition at line 299 of file TGo4Condition.h.
References fbMultiEdit.
Referenced by TGo4ConditionEditor::SelectedCondition().
|
inline |
Definition at line 305 of file TGo4Condition.h.
References fbOwnedByEditor.
Referenced by TGo4CondArrayPainter::PaintCondition().
|
inlineprotected |
Definition at line 422 of file TGo4Condition.h.
References fbIsPainted.
Referenced by TGo4CondArray::Draw(), Draw(), Paint(), and UnDraw().
|
virtual |
Replace default painter of this condition by external one.
if different views of this condition shall exist for different TPads, the painter (i.e. view) can be exchanged before pad is updated.
Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.
Definition at line 574 of file TGo4Condition.cxx.
|
inline |
Configure graphical update tolerance for this condition individually.
by default, update tolerance is set to static value fgdUPDATEEPSILON
Definition at line 240 of file TGo4Condition.h.
References fdUpdateEpsilon.
|
inlinevirtual |
Set values needed, i.e.
limits for windows or cuts for polygons
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 94 of file TGo4Condition.h.
Referenced by TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), TGo4CondArray::SetValues(), and TGo4ConditionEditor::UpdateLimits().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 98 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 95 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 96 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 97 of file TGo4Condition.h.
|
inlinevirtual |
Set/Unset visibility.
Overloaded for subclasses!
Reimplemented in TGo4CondArray.
Definition at line 209 of file TGo4Condition.h.
References fbVisible.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetVisible(), and UpdateFromUrl().
|
inlinevirtual |
Set reference to work histogram for statistics functions.
Note that this method does not change the histogram link definitions!
Reimplemented in TGo4PolyCond.
Definition at line 228 of file TGo4Condition.h.
References fxHisto.
Referenced by TGo4ViewPanel::CheckObjectsAssigments(), TGo4RootBrowserProxy::DrawCondition(), TGo4RootBrowserProxy::DrawPicture(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArrayPainter::PaintCondition(), TGo4ViewPanel::ProcessCanvasAdopt(), and TGo4PolyCond::SetWorkHistogram().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 278 of file TGo4Condition.h.
References fbXMaxDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetXMaxDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 266 of file TGo4Condition.h.
References fbXMeanDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetXMeanDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 269 of file TGo4Condition.h.
References fbXRMSDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4CondArray::SetXRMSDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 281 of file TGo4Condition.h.
References fbYMaxDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArray::SetYMaxDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 272 of file TGo4Condition.h.
References fbYMeanDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArray::SetYMeanDraw(), and UpdateFromUrl().
|
inlinevirtual |
Reimplemented in TGo4CondArray.
Definition at line 275 of file TGo4Condition.h.
References fbYRMSDraw.
Referenced by TGo4ConditionEditor::ChangeConditionProperty(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArray::SetYRMSDraw(), and UpdateFromUrl().
|
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 in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 128 of file TGo4Condition.cxx.
References fiCounts.
Referenced by TGo4CondArray::Test(), and TGo4CondArray::Test().
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 90 of file TGo4Condition.h.
|
inlinevirtual |
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, and TGo4WinCond.
Definition at line 89 of file TGo4Condition.h.
|
virtual |
Return number of true results of the Test method call.
Reimplemented in TGo4CondArray.
Definition at line 158 of file TGo4Condition.cxx.
References fiTrueCounts, and GO4TRACE.
Referenced by MakeScript(), Print(), and TGo4ConditionInfo::RefreshWidget().
|
virtual |
Erase view of this condition from the pad.
Definition at line 615 of file TGo4Condition.cxx.
References CreatePainter(), fxPainter, and SetPainted().
Referenced by Draw(), and TGo4CondArrayPainter::UnPaintCondition().
|
virtual |
Copy values from cond to this.
When counts is true, copy also counters.
Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4ListCond, TGo4PolyCond, TGo4ShapedCond, and TGo4WinCond.
Definition at line 293 of file TGo4Condition.cxx.
References TGo4Condition(), fbCMaxDraw, fbEnabled, fbFalse, fbHistogramLink, fbIntDraw, fbLabelDraw, fbLimitsDraw, fbMarkReset, fbMultiEdit, fbResult, fbTrue, fbVisible, fbXMaxDraw, fbXMeanDraw, fbXRMSDraw, fbYMaxDraw, fbYMeanDraw, fbYRMSDraw, fdUpdateEpsilon, fiCounts, fiDim, fiTrueCounts, fxHistoName, GetDimension(), and ResetCounts().
Referenced by TGo4AnalysisObjectManager::SetAnalysisCondition(), TGo4CondArray::UpdateFrom(), TGo4CounterCond::UpdateFrom(), TGo4ListCond::UpdateFrom(), TGo4PolyCond::UpdateFrom(), TGo4WinCond::UpdateFrom(), and TGo4BrowserProxy::UpdateObjectContent().
|
virtual |
Method used by HTTP server to update some fields, specified in URL syntax.
Reimplemented in TGo4PolyCond, TGo4ShapedCond, and TGo4WinCond.
Definition at line 396 of file TGo4Condition.cxx.
References BuildUrlOptionArray(), Disable(), Enable(), fgxURL_CMAX, fgxURL_INTEGRAL, fgxURL_INVERT, fgxURL_LABEL, fgxURL_LIMITS, fgxURL_RESET, fgxURL_RESULT, fgxURL_VISIBLE, fgxURL_XMAX, fgxURL_XMEAN, fgxURL_XRMS, fgxURL_YMAX, fgxURL_YMEAN, fgxURL_YRMS, GetUrlOptionAsInt(), Invert(), TGo4Log::Message(), ResetCounts(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), and SetYRMSDraw().
Referenced by TGo4PolyCond::UpdateFromUrl(), TGo4ShapedCond::UpdateFromUrl(), and TGo4WinCond::UpdateFromUrl().
|
protected |
returns true if key is present in list of url options.
Otherwise false
Definition at line 340 of file TGo4Condition.cxx.
References fxUrlOptionArray.
Referenced by TGo4PolyCond::UpdateFromUrl(), and TGo4WinCond::UpdateFromUrl().
|
friend |
Definition at line 39 of file TGo4Condition.h.
References TGo4CondArray.
Referenced by TGo4CondArray.
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 503 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsCMaxDraw(), SaveLabelStyle(), SetCMaxDraw(), and UpdateFrom().
|
private |
Flag to enable/disable this condition.
Disabled condition will always return fbResult. Counters are incremented even if disabled. After instantiation, fbEnabled will be false and fbResult true.
Definition at line 454 of file TGo4Condition.h.
Referenced by TGo4Condition(), Disable(), Enable(), GetFlags(), IsEnabled(), Print(), PrintCondition(), SetFlags(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
These are inverted by Invert(true), and restored by Invert(false).
Definition at line 442 of file TGo4Condition.h.
Referenced by TGo4Condition(), GetFlags(), Invert(), IsFalse(), SetFlags(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
is true if this condition has link to a histogram name
Definition at line 467 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsHistogramLink(), PrintCondition(), SetHistogram(), SetHistogramLink(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 482 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsIntDraw(), SaveLabelStyle(), SetIntDraw(), and UpdateFrom().
|
private |
Flag to prevent Paint() method to redraw condition views after UnDraw.
Problem with Paint() called from ROOT event loop.
Definition at line 517 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsPainted(), SetPainted(), and TGo4CondArray::Test().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 476 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsLabelDraw(), SaveLabelStyle(), SetLabelDraw(), and UpdateFrom().
|
private |
This can be used to store the last result by SetLast(bool).
It can then be retrieved by GetLast() without new testing.
Definition at line 436 of file TGo4Condition.h.
Referenced by GetFlags(), GetLast(), SetFlags(), and SetLast().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 479 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsLimitsDraw(), SaveLabelStyle(), SetLimitsDraw(), and UpdateFrom().
|
private |
Definition at line 432 of file TGo4Condition.h.
Referenced by TGo4Condition(), GetFlags(), MarkReset(), SetFlags(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
Flag to indicate that properties of all conditions in array are edited/used.
for use in TGo4CondArray or other multi-condition implementations
Definition at line 461 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsMultiEdit(), SetMultiEdit(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
Flag to suppress interactive deletion of condition.
Definition at line 520 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsOwnedByEditor(), SetOwnedByEditor(), and TGo4CondArray::Test().
|
private |
If fbEnabled is false, return this as result.
Definition at line 457 of file TGo4Condition.h.
Referenced by TGo4Condition(), Disable(), FixedResult(), GetFlags(), Print(), PrintCondition(), SetFlags(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
This allows to treat conditions streamed into pad.
Definition at line 523 of file TGo4Condition.h.
Referenced by TGo4Condition(), Paint(), and TGo4CondArray::Test().
|
private |
These are inverted by Invert(true), and restored by Invert(false)
Definition at line 439 of file TGo4Condition.h.
Referenced by TGo4Condition(), GetFlags(), Invert(), IsTrue(), Print(), PrintCondition(), SetFlags(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
Property to store visibility of condition on display.
Definition at line 464 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsVisible(), SetVisible(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 497 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsXMaxDraw(), SaveLabelStyle(), SetXMaxDraw(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 485 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsXMeanDraw(), SaveLabelStyle(), SetXMeanDraw(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 488 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsXRMSDraw(), SaveLabelStyle(), SetXRMSDraw(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 500 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsYMaxDraw(), SaveLabelStyle(), SetYMaxDraw(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 491 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsYMeanDraw(), SaveLabelStyle(), SetYMeanDraw(), and UpdateFrom().
|
private |
If true, draw corresponding value as label on working pad.
Definition at line 494 of file TGo4Condition.h.
Referenced by InitLabelStyle(), IsYRMSDraw(), SaveLabelStyle(), SetYRMSDraw(), and UpdateFrom().
|
private |
Precision for the check if graphical representation change requires update.
Definition at line 473 of file TGo4Condition.h.
Referenced by TGo4Condition(), GetUpdateEpsilon(), SetUpdateEpsilon(), TGo4CondArray::Test(), and UpdateFrom().
|
static |
default setting for all conditions for label draw cmax flag.
Definition at line 353 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw integral flag.
Definition at line 332 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw on/off flag.
Definition at line 326 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw limits flag.
Definition at line 329 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw xmax flag.
Definition at line 347 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw xmean flag.
Definition at line 335 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw xrms flag.
Definition at line 338 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw ymax flag.
Definition at line 350 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw ymean flag.
Definition at line 341 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default setting for all conditions for label draw yrms flag.
Definition at line 344 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
default value for graphical update tolerance.
Definition at line 245 of file TGo4Condition.h.
Referenced by TGo4Condition(), and TGo4CondArray::Test().
|
static |
default setting for all conditions with format string for numbers.
Definition at line 356 of file TGo4Condition.h.
Referenced by GetGlobalStyle(), InitLabelStyle(), SaveLabelStyle(), and SetGlobalStyle().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 384 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 370 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 362 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 366 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 368 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Following keywords should be used by condition editor in web browser:
Definition at line 358 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 360 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 364 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 380 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 372 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 374 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 382 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 376 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
static |
web condition editor keyword used in UpdateFromUrl.
Definition at line 378 of file TGo4Condition.h.
Referenced by UpdateFromUrl().
|
private |
Counts the number of calls of the Test method.
Definition at line 448 of file TGo4Condition.h.
Referenced by TGo4Condition(), Counts(), IncCounts(), PrintBar(), PrintCondition(), ResetCounts(), SetCounts(), TGo4CondArray::Test(), Test(), and UpdateFrom().
|
private |
Dimension (1 or 2).
Definition at line 430 of file TGo4Condition.h.
Referenced by TGo4Condition(), GetDimension(), SetDimension(), TGo4CondArray::Test(), and UpdateFrom().
|
private |
Counter indicate how many times condition was changed from graphical view.
Definition at line 513 of file TGo4Condition.h.
Referenced by TGo4Condition(), IsChanged(), SetChanged(), and TGo4CondArray::Test().
|
private |
Counts the number of calls of the Test method with true result.
Definition at line 445 of file TGo4Condition.h.
Referenced by TGo4Condition(), IncTrueCounts(), PrintBar(), PrintCondition(), ResetCounts(), SetCounts(), TGo4CondArray::Test(), TrueCounts(), and UpdateFrom().
|
private |
Reference to currently used histogram (for statistics boxes).
This is not necessarily the same histogram as specified in the linked histogram!
Definition at line 510 of file TGo4Condition.h.
Referenced by GetWorkHistogram(), and SetWorkHistogram().
|
private |
contains associated histogram name
Definition at line 470 of file TGo4Condition.h.
Referenced by GetLinkedHistogram(), PrintCondition(), SetHistogram(), and UpdateFrom().
|
private |
format string for all label numbers.
Definition at line 506 of file TGo4Condition.h.
Referenced by GetLabelNumFormat(), InitLabelStyle(), SaveLabelStyle(), and SetLabelNumFormat().
|
protected |
Painter instance to display the condition in root pad.
To be used in Paint() which is called on TPad::Update automatically for all TObjects appended to the pad.
Definition at line 399 of file TGo4Condition.h.
Referenced by TGo4CondArray::~TGo4CondArray(), ~TGo4Condition(), DeletePainter(), Paint(), Pop(), ResetLabel(), TGo4CondArray::SetPainter(), TGo4PolyCond::SetPainter(), TGo4WinCond::SetPainter(), and UnDraw().
|
protected |
array with TObjStrings evaluated by UpdateFromUrl
Definition at line 402 of file TGo4Condition.h.
Referenced by ~TGo4Condition(), BuildUrlOptionArray(), GetUrlOptionAsString(), and UrlOptionHasKey().