GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Array of conditions. More...
#include <TGo4CondArray.h>
Public Member Functions | |
TGo4CondArray () | |
TGo4CondArray (const char *name, Int_t elements, const char *type) | |
Constructor. | |
TGo4CondArray (const char *name, Int_t elements, Int_t contype) | |
Constructor. | |
virtual | ~TGo4CondArray () |
TGo4Condition * | At (Int_t i) const |
Returns condition object i from object array. | |
Int_t | Counts () override |
Return number of calls of the Test method. | |
TGo4ConditionPainter * | CreatePainter () override |
Factory method to generate the subclass implementation for painter. | |
void | Disable (Bool_t result) override |
Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode) | |
void | Draw (Option_t *opt="") override |
Reimplement Draw to set painted flag for all array conditions. | |
void | Enable () override |
Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode) | |
const TGo4Condition * | GetActiveCondition () const override |
Access to the currently selected condition. | |
Double_t | GetCMax (TH1 *histo) override |
Calculate value for histogram inside condition limits. | |
Int_t | GetCurrentIndex () const override |
get index for array type subclasses | |
Double_t | GetCurtosis (TH1 *histo, Int_t axis=1) override |
Calculate value for histogram inside condition limits. | |
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 | GetIntegral (TH1 *histo, Option_t *opt="") override |
Calculate value for histogram inside condition limits. | |
Double_t | GetMean (TH1 *histo, Int_t axis=1) override |
Calculate value for histogram inside condition limits. | |
Int_t | GetMemorySize () const override |
Int_t | GetNumber () const |
Returns number of conditions in array. | |
Int_t | GetNumberOfConditions () const override |
for condition aggregates: return total number of conditions, i.e.size of condition array | |
Double_t | GetRMS (TH1 *histo, Int_t axis=1) override |
Calculate value for histogram inside condition limits. | |
Double_t | GetSkewness (TH1 *histo, Int_t axis=1) override |
Calculate value for histogram inside condition limits. | |
const char * | GetType () const |
Returns class name of conditions. | |
void | GetType (Int_t &type) const |
Returns condition type ID (kGO4CONDWINDOW=1 or kGO4CONDPOLYGON=2). | |
Double_t | GetXLow () const override |
Double_t | GetXMax (TH1 *histo) override |
Calculate value for histogram inside condition limits. | |
Double_t | GetXUp () const override |
Double_t | GetYLow () const override |
Double_t | GetYMax (TH1 *histo) override |
Calculate value for histogram inside condition limits. | |
Double_t | GetYUp () 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 | IsArrayType () const override |
Int_t | IsChanged () const override |
we overwrite single condition changed property | |
Bool_t | IsCMaxDraw () const override |
Bool_t | IsIntDraw () const override |
Bool_t | IsLabelDraw () const override |
Bool_t | IsLimitsDraw () const override |
Bool_t | IsPolygonType () const override |
Bool_t | IsVisible () const override |
we overwrite single condition visibility getter | |
Bool_t | IsXMaxDraw () const override |
Bool_t | IsXMeanDraw () const override |
Bool_t | IsXRMSDraw () const override |
Bool_t | IsYMaxDraw () const override |
Bool_t | IsYMeanDraw () const override |
Bool_t | IsYRMSDraw () const override |
void | MarkReset (Bool_t on) override |
defines if condition counters shall be reset in UpdateFrom method | |
TGo4Condition * | operator[] (Int_t i) const |
Returns condition object i from object array. | |
TGo4PolyCond * | Poly (Int_t i) const |
Returns polygon condition object i from object array. | |
void | PrintBar () override |
Prints counters and bar. | |
void | PrintCondition (Bool_t points) override |
Noop. | |
void | ResetCounts () override |
Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode) | |
void | SavePrimitive (std::ostream &fs, Option_t *opt="") override |
Standard way to store parameter in form of macro. | |
void | SetChanged (Bool_t on=kTRUE) override |
we overwrite single condition changed property | |
void | SetCMaxDraw (Bool_t on) override |
void | SetCurrentIndex (Int_t ix) override |
set index for array type subclasses | |
void | SetIntDraw (Bool_t on) override |
void | SetLabelDraw (Bool_t on) override |
void | SetLimitsDraw (Bool_t on) override |
void | SetPainter (TGo4ConditionPainter *painter) override |
Replace default painter of this condition by external one. | |
virtual void | SetValues () |
Noop. | |
virtual void | SetValues (Double_t *x, Double_t *y, Int_t len) |
Noop. | |
void | SetValues (Double_t low1, Double_t up1) override |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). | |
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 | SetValues (TCutG *newcut) override |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). | |
void | SetVisible (Bool_t on) override |
we overwrite single condition visibility setter | |
void | SetXMaxDraw (Bool_t on) override |
void | SetXMeanDraw (Bool_t on) override |
void | SetXRMSDraw (Bool_t on) override |
void | SetYMaxDraw (Bool_t on) override |
void | SetYMeanDraw (Bool_t on) override |
void | SetYRMSDraw (Bool_t on) override |
virtual Bool_t | Test () |
Test if condition is true. | |
Bool_t | Test (Double_t x) override |
Test currently selected condition(single edit mode). | |
Bool_t | Test (Double_t x, Double_t y) override |
Test currently selected condition(single edit mode). | |
Int_t | TrueCounts () override |
Return number of true results of the Test method call. | |
Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) override |
Copy values from cond to this. | |
TGo4WinCond * | Win (Int_t i) const |
Returns window condition object i from object array. | |
![]() | |
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 |
void | DeletePainter () |
void | Draw (Option_t *opt="") override |
Draw this condition on current pad. | |
Bool_t | FixedResult () const |
Returns the value set by Disable(value). | |
virtual TCutG * | GetCut (Bool_t owner) |
Int_t | GetDimension () const |
virtual const char * | GetLabelNumFormat () const |
Bool_t | GetLast () const |
Returns result of last Test. | |
const char * | GetLinkedHistogram () const |
Access name of the associated histogram. | |
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 | |
void | IncCounts () |
Increment the test counter. | |
void | IncTrueCounts () |
Increment the "test was true" counter. | |
void | InitLabelStyle () |
Initialize label setup from static default variables. | |
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 | IsMultiEdit () const |
Bool_t | IsOwnedByEditor () const |
Bool_t | IsTrue () const |
Use this as return, if test was true. | |
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. | |
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 | SetCounts (Int_t truecounts, Int_t counts) |
Set counters. | |
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 | SetLabelNumFormat (const char *fmt) |
void | SetLast (Bool_t value) |
Can be used in Test to store the result. | |
void | SetMultiEdit (Bool_t on) |
void | SetOwnedByEditor (Bool_t on) |
void | SetUpdateEpsilon (Double_t val) |
Configure graphical update tolerance for this condition individually. | |
virtual void | SetWorkHistogram (TH1 *histo) |
Set reference to work histogram for statistics functions. | |
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. | |
Private Attributes | |
TObjArray * | condarr {nullptr} |
The object array of conditions. | |
Int_t | fiNumCond {0} |
Number of conditions in array. | |
Int_t | fiSelectedCond {0} |
Index of selected condition. | |
Int_t | fiType {0} |
Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON) | |
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 | |
Array of conditions.
Definition at line 27 of file TGo4CondArray.h.
TGo4CondArray::TGo4CondArray | ( | ) |
Definition at line 48 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), condarr, fiNumCond, fiSelectedCond, and fiType.
Referenced by UpdateFrom().
TGo4CondArray::TGo4CondArray | ( | const char * | name, |
Int_t | elements, | ||
const char * | type ) |
Constructor.
type can be "TGo4WinCond" or "TGo4PolyCond"
Definition at line 84 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, fiSelectedCond, fiType, kGO4CONDPOLYGON, and kGO4CONDWINDOW.
TGo4CondArray::TGo4CondArray | ( | const char * | name, |
Int_t | elements, | ||
Int_t | contype ) |
Constructor.
contype can be kGO4CONDWINDOW or kGO4CONDPOLYGON
Definition at line 57 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, fiSelectedCond, fiType, kGO4CONDPOLYGON, and kGO4CONDWINDOW.
|
virtual |
Definition at line 107 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::fxPainter.
TGo4Condition * TGo4CondArray::At | ( | Int_t | i | ) | const |
Returns condition object i from object array.
See also Poly and Win.
Definition at line 42 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), and condarr.
Referenced by Counts(), Disable(), Draw(), Enable(), GetActiveCondition(), GetCMax(), GetCurtosis(), GetFlags(), GetIntegral(), GetMean(), GetMemorySize(), GetRMS(), TGo4ViewPanel::GetSelectedSlot(), GetSkewness(), GetXLow(), GetXMax(), GetXUp(), GetYLow(), GetYMax(), GetYUp(), Invert(), IsCMaxDraw(), IsIntDraw(), IsLabelDraw(), IsLimitsDraw(), IsPolygonType(), IsVisible(), IsXMaxDraw(), IsXMeanDraw(), IsXRMSDraw(), IsYMaxDraw(), IsYMeanDraw(), IsYRMSDraw(), TGo4CreateNewCondition::MakeCondition(), MarkReset(), TGo4CondArrayPainter::PaintCondition(), Poly(), ResetCounts(), SavePrimitive(), TGo4ConditionEditor::SelectedCondition(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), SetValues(), SetValues(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), Test(), TrueCounts(), TGo4CondArrayPainter::UnPaintCondition(), and Win().
|
overridevirtual |
Return number of calls of the Test method.
For complete array (multi edit mode) or for currently selected condition (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 316 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), TGo4Condition::Counts(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Factory method to generate the subclass implementation for painter.
Reimplemented from TGo4Condition.
Definition at line 1036 of file TGo4CondArray.cxx.
|
overridevirtual |
Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 235 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, TGo4Condition::Disable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
override |
Reimplement Draw to set painted flag for all array conditions.
Definition at line 1006 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), TGo4Condition::Draw(), GetNumber(), TGo4Condition::IsPainted(), and TGo4Condition::SetPainted().
|
overridevirtual |
Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 219 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, TGo4Condition::Enable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Access to the currently selected condition.
Reimplemented from TGo4Condition.
Definition at line 948 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 927 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, TGo4Condition::GetCMax(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
get index for array type subclasses
Reimplemented from TGo4Condition.
Definition at line 1000 of file TGo4CondArray.cxx.
References fiSelectedCond.
Referenced by Counts(), Disable(), Enable(), GetActiveCondition(), GetCMax(), GetCurtosis(), GetFlags(), GetIntegral(), GetMean(), GetRMS(), GetSkewness(), GetXLow(), GetXMax(), GetXUp(), GetYLow(), GetYMax(), GetYUp(), Invert(), IsCMaxDraw(), IsIntDraw(), IsLabelDraw(), IsLimitsDraw(), IsPolygonType(), IsVisible(), IsXMaxDraw(), IsXMeanDraw(), IsXRMSDraw(), IsYMaxDraw(), IsYMeanDraw(), IsYRMSDraw(), MarkReset(), TGo4CondArrayPainter::PaintCondition(), ResetCounts(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), SetValues(), SetValues(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), Test(), and TrueCounts().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 885 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetCurtosis(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Sets values of internal boolean flags to external variables.
Reimplemented from TGo4Condition.
Definition at line 283 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::GetFlags(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Option may specify "width" to scale channel sum with axes
Reimplemented from TGo4Condition.
Definition at line 817 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::GetIntegral(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 836 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::GetMean(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 1044 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, TGo4Condition::GetMemorySize(), and GetNumberOfConditions().
Int_t TGo4CondArray::GetNumber | ( | ) | const |
Returns number of conditions in array.
Same as GetNumberOfConditions, but kept for backward compatibility
Definition at line 201 of file TGo4CondArray.cxx.
References condarr.
Referenced by Draw(), GetNumberOfConditions(), TGo4CondArrayPainter::PaintCondition(), TGo4ViewPanel::RefreshButtons(), TGo4ConditionEditor::RefreshWidget(), SavePrimitive(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), and TGo4CondArrayPainter::UnPaintCondition().
|
overridevirtual |
for condition aggregates: return total number of conditions, i.e.size of condition array
Reimplemented from TGo4Condition.
Definition at line 195 of file TGo4CondArray.cxx.
References GetNumber().
Referenced by GetMemorySize().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 857 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetRMS(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 871 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetSkewness(), and TGo4Condition::IsMultiEdit().
const char * TGo4CondArray::GetType | ( | ) | const |
Returns class name of conditions.
Definition at line 207 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), and condarr.
Referenced by SavePrimitive().
void TGo4CondArray::GetType | ( | Int_t & | type | ) | const |
Returns condition type ID (kGO4CONDWINDOW=1 or kGO4CONDPOLYGON=2).
Definition at line 214 of file TGo4CondArray.cxx.
References fiType.
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 342 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetXLow(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 899 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetXMax(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 355 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetXUp(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 368 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetYLow(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 913 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetYMax(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 381 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::GetYUp(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 251 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::Invert(), and TGo4Condition::IsMultiEdit().
|
inlineoverridevirtual |
Reimplemented from TGo4Condition.
Definition at line 229 of file TGo4CondArray.h.
|
overridevirtual |
we overwrite single condition changed property
Reimplemented from TGo4Condition.
Definition at line 966 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::IsChanged().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 803 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsCMaxDraw(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 586 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsIntDraw(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 524 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsLabelDraw(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 555 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsLimitsDraw(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 977 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), TGo4Condition::IsPolygonType(), and kGO4CONDPOLYGON.
|
overridevirtual |
we overwrite single condition visibility getter
Reimplemented from TGo4Condition.
Definition at line 493 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsVisible().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 741 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMaxDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 617 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMeanDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 648 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXRMSDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 772 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMaxDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 679 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMeanDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 710 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYRMSDraw().
|
overridevirtual |
defines if condition counters shall be reset in UpdateFrom method
Reimplemented from TGo4Condition.
Definition at line 267 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::MarkReset().
TGo4Condition * TGo4CondArray::operator[] | ( | Int_t | i | ) | const |
Returns condition object i from object array.
Same as At(). Must cast for window or polygon condition methods!
Definition at line 37 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), and condarr.
TGo4PolyCond * TGo4CondArray::Poly | ( | Int_t | i | ) | const |
Returns polygon condition object i from object array.
Checks if object is polygon condition, if not return 0.
Definition at line 31 of file TGo4CondArray.cxx.
References At(), fiType, and kGO4CONDPOLYGON.
|
overridevirtual |
Prints counters and bar.
Reimplemented from TGo4Condition.
Definition at line 180 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::PrintBar().
|
overridevirtual |
Noop.
Calls Print for all conditions in the array. Checks for condition type. If points is true, print Cut or Limits, respectively.
Reimplemented from TGo4Condition.
Definition at line 167 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::PrintCondition().
|
overridevirtual |
Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 300 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::ResetCounts().
|
override |
Standard way to store parameter in form of macro.
Definition at line 1065 of file TGo4CondArray.cxx.
References At(), GetNumber(), GetType(), and TGo4Condition::MakeScript().
|
overridevirtual |
we overwrite single condition changed property
Reimplemented from TGo4Condition.
Definition at line 957 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::SetChanged().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 786 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetCMaxDraw().
|
overridevirtual |
set index for array type subclasses
Reimplemented from TGo4Condition.
Definition at line 994 of file TGo4CondArray.cxx.
References fiSelectedCond.
Referenced by TGo4ConditionEditor::SelectedCondition().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 569 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetIntDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 507 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetLabelDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 538 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetLimitsDraw().
|
overridevirtual |
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 from TGo4Condition.
Definition at line 1022 of file TGo4CondArray.cxx.
References TGo4Condition::fxPainter, and TGo4Log::Warn().
|
inlinevirtual |
|
inlinevirtual |
|
overridevirtual |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
Window conditions only.
Reimplemented from TGo4Condition.
Definition at line 395 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().
|
overridevirtual |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
Window conditions only.
Reimplemented from TGo4Condition.
Definition at line 412 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().
|
overridevirtual |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
Polygon conditions only.
Reimplemented from TGo4Condition.
Definition at line 430 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDPOLYGON, and TGo4Condition::SetValues().
|
overridevirtual |
we overwrite single condition visibility setter
Reimplemented from TGo4Condition.
Definition at line 476 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetVisible().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 724 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXMaxDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 600 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXMeanDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 631 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXRMSDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 755 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYMaxDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 662 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYMeanDraw().
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 693 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYRMSDraw().
|
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.
References TGo4Condition::fbEnabled, TGo4Condition::fbFalse, TGo4Condition::fbHistogramLink, TGo4Condition::fbIsPainted, TGo4Condition::fbMarkReset, TGo4Condition::fbMultiEdit, TGo4Condition::fbOwnedByEditor, TGo4Condition::fbResult, TGo4Condition::fbStreamedCondition, TGo4Condition::fbTrue, TGo4Condition::fbVisible, TGo4Condition::fdUpdateEpsilon, TGo4Condition::fgdUPDATEEPSILON, TGo4Condition::fiCounts, TGo4Condition::fiDim, TGo4Condition::fiIsChanged, TGo4Condition::fiTrueCounts, GO4TRACE, and TGo4Condition::InitLabelStyle().
|
overridevirtual |
Test currently selected condition(single edit mode).
In multi edit mode, all conditions are tested with values and counters are incremented according result. Here return value is logically anded from all results.
Reimplemented from TGo4Condition.
Definition at line 145 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().
|
overridevirtual |
Test currently selected condition(single edit mode).
In multi edit mode, all conditions are tested with values and counters are incremented according result. Here return value is logically anded from all results.
Reimplemented from TGo4Condition.
Definition at line 123 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().
|
overridevirtual |
Return number of true results of the Test method call.
For complete array (multi edit mode) or for currently selected condition (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 329 of file TGo4CondArray.cxx.
References TGo4Condition::TGo4Condition(), At(), TGo4Condition::Counts(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
|
overridevirtual |
Copy values from cond to this.
When counts is true, copy also counters.
Reimplemented from TGo4Condition.
Definition at line 448 of file TGo4CondArray.cxx.
References TGo4CondArray(), TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::UpdateFrom().
TGo4WinCond * TGo4CondArray::Win | ( | Int_t | i | ) | const |
Returns window condition object i from object array.
If the conditions is no window, returns 0. Must cast for window or polygon condition methods!
Definition at line 25 of file TGo4CondArray.cxx.
References At(), fiType, and kGO4CONDWINDOW.
|
private |
The object array of conditions.
Definition at line 243 of file TGo4CondArray.h.
Referenced by TGo4CondArray(), TGo4CondArray(), TGo4CondArray(), ~TGo4CondArray(), At(), Disable(), Enable(), GetCMax(), GetFlags(), GetIntegral(), GetMean(), GetMemorySize(), GetNumber(), GetType(), Invert(), IsChanged(), MarkReset(), operator[](), PrintBar(), PrintCondition(), ResetCounts(), SetChanged(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), SetValues(), SetValues(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), Test(), and UpdateFrom().
|
private |
Number of conditions in array.
Definition at line 246 of file TGo4CondArray.h.
Referenced by TGo4CondArray(), TGo4CondArray(), and TGo4CondArray().
|
private |
Index of selected condition.
Definition at line 252 of file TGo4CondArray.h.
Referenced by TGo4CondArray(), TGo4CondArray(), TGo4CondArray(), GetCurrentIndex(), and SetCurrentIndex().
|
private |
Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON)
Definition at line 249 of file TGo4CondArray.h.
Referenced by TGo4CondArray(), TGo4CondArray(), TGo4CondArray(), GetType(), IsPolygonType(), Poly(), SetValues(), SetValues(), SetValues(), and Win().