GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4CondArray Class Reference

Array of conditions. More...

#include <TGo4CondArray.h>

+ Inheritance diagram for TGo4CondArray:

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 ()
 
TGo4ConditionAt (Int_t i) const
 Returns condition object i from object array.
 
Int_t Counts () override
 Return number of calls of the Test method.
 
TGo4ConditionPainterCreatePainter () 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 TGo4ConditionGetActiveCondition () 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
 
TGo4Conditionoperator[] (Int_t i) const
 Returns condition object i from object array.
 
TGo4PolyCondPoly (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.
 
TGo4WinCondWin (Int_t i) const
 Returns window condition object i from object array.
 
- Public Member Functions inherited from TGo4Condition
 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 Public Member Functions inherited from TGo4Condition
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 inherited from TGo4Condition
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 inherited from TGo4Condition
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 inherited from TGo4Condition
TGo4ConditionPainterfxPainter {nullptr}
 Painter instance to display the condition in root pad.
 
TObjArray * fxUrlOptionArray {nullptr}
 array with TObjStrings evaluated by UpdateFromUrl
 

Detailed Description

Array of conditions.

Definition at line 27 of file TGo4CondArray.h.

Constructor & Destructor Documentation

◆ TGo4CondArray() [1/3]

TGo4CondArray::TGo4CondArray ( )

Definition at line 48 of file TGo4CondArray.cxx.

References TGo4Condition::TGo4Condition(), condarr, fiNumCond, fiSelectedCond, and fiType.

Referenced by UpdateFrom().

◆ TGo4CondArray() [2/3]

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() [3/3]

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.

◆ ~TGo4CondArray()

TGo4CondArray::~TGo4CondArray ( )
virtual

Definition at line 107 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::fxPainter.

Member Function Documentation

◆ At()

◆ Counts()

Int_t TGo4CondArray::Counts ( )
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().

◆ CreatePainter()

TGo4ConditionPainter * TGo4CondArray::CreatePainter ( )
overridevirtual

Factory method to generate the subclass implementation for painter.

Reimplemented from TGo4Condition.

Definition at line 1036 of file TGo4CondArray.cxx.

◆ Disable()

void TGo4CondArray::Disable ( Bool_t result)
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().

◆ Draw()

void TGo4CondArray::Draw ( Option_t * opt = "")
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().

◆ Enable()

void TGo4CondArray::Enable ( )
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().

◆ GetActiveCondition()

const TGo4Condition * TGo4CondArray::GetActiveCondition ( ) const
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().

◆ GetCMax()

Double_t TGo4CondArray::GetCMax ( TH1 * histo)
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().

◆ GetCurrentIndex()

◆ GetCurtosis()

Double_t TGo4CondArray::GetCurtosis ( TH1 * histo,
Int_t axis = 1 )
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().

◆ GetFlags()

void TGo4CondArray::GetFlags ( Bool_t * enabled,
Bool_t * lastresult,
Bool_t * markreset,
Bool_t * result,
Bool_t * truevalue,
Bool_t * falsevalue )
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().

◆ GetIntegral()

Double_t TGo4CondArray::GetIntegral ( TH1 * histo,
Option_t * opt = "" )
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().

◆ GetMean()

Double_t TGo4CondArray::GetMean ( TH1 * histo,
Int_t axis = 1 )
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().

◆ GetMemorySize()

Int_t TGo4CondArray::GetMemorySize ( ) const
overridevirtual

◆ GetNumber()

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().

◆ GetNumberOfConditions()

Int_t TGo4CondArray::GetNumberOfConditions ( ) const
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().

◆ GetRMS()

Double_t TGo4CondArray::GetRMS ( TH1 * histo,
Int_t axis = 1 )
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().

◆ GetSkewness()

Double_t TGo4CondArray::GetSkewness ( TH1 * histo,
Int_t axis = 1 )
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().

◆ GetType() [1/2]

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().

◆ GetType() [2/2]

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.

◆ GetXLow()

Double_t TGo4CondArray::GetXLow ( ) const
overridevirtual

◆ GetXMax()

Double_t TGo4CondArray::GetXMax ( TH1 * histo)
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().

◆ GetXUp()

Double_t TGo4CondArray::GetXUp ( ) const
overridevirtual

◆ GetYLow()

Double_t TGo4CondArray::GetYLow ( ) const
overridevirtual

◆ GetYMax()

Double_t TGo4CondArray::GetYMax ( TH1 * histo)
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().

◆ GetYUp()

Double_t TGo4CondArray::GetYUp ( ) const
overridevirtual

◆ Invert()

void TGo4CondArray::Invert ( Bool_t on)
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().

◆ IsArrayType()

Bool_t TGo4CondArray::IsArrayType ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 229 of file TGo4CondArray.h.

◆ IsChanged()

Int_t TGo4CondArray::IsChanged ( ) const
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().

◆ IsCMaxDraw()

Bool_t TGo4CondArray::IsCMaxDraw ( ) const
overridevirtual

◆ IsIntDraw()

Bool_t TGo4CondArray::IsIntDraw ( ) const
overridevirtual

◆ IsLabelDraw()

Bool_t TGo4CondArray::IsLabelDraw ( ) const
overridevirtual

◆ IsLimitsDraw()

Bool_t TGo4CondArray::IsLimitsDraw ( ) const
overridevirtual

◆ IsPolygonType()

Bool_t TGo4CondArray::IsPolygonType ( ) const
overridevirtual

◆ IsVisible()

Bool_t TGo4CondArray::IsVisible ( ) const
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().

◆ IsXMaxDraw()

Bool_t TGo4CondArray::IsXMaxDraw ( ) const
overridevirtual

◆ IsXMeanDraw()

Bool_t TGo4CondArray::IsXMeanDraw ( ) const
overridevirtual

◆ IsXRMSDraw()

Bool_t TGo4CondArray::IsXRMSDraw ( ) const
overridevirtual

◆ IsYMaxDraw()

Bool_t TGo4CondArray::IsYMaxDraw ( ) const
overridevirtual

◆ IsYMeanDraw()

Bool_t TGo4CondArray::IsYMeanDraw ( ) const
overridevirtual

◆ IsYRMSDraw()

Bool_t TGo4CondArray::IsYRMSDraw ( ) const
overridevirtual

◆ MarkReset()

void TGo4CondArray::MarkReset ( Bool_t on)
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().

◆ operator[]()

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.

◆ Poly()

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.

◆ PrintBar()

void TGo4CondArray::PrintBar ( )
overridevirtual

Prints counters and bar.

Reimplemented from TGo4Condition.

Definition at line 180 of file TGo4CondArray.cxx.

References TGo4Condition::TGo4Condition(), condarr, and TGo4Condition::PrintBar().

◆ PrintCondition()

void TGo4CondArray::PrintCondition ( Bool_t points)
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().

◆ ResetCounts()

void TGo4CondArray::ResetCounts ( )
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().

◆ SavePrimitive()

void TGo4CondArray::SavePrimitive ( std::ostream & fs,
Option_t * opt = "" )
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().

◆ SetChanged()

void TGo4CondArray::SetChanged ( Bool_t on = kTRUE)
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().

◆ SetCMaxDraw()

void TGo4CondArray::SetCMaxDraw ( Bool_t on)
overridevirtual

◆ SetCurrentIndex()

void TGo4CondArray::SetCurrentIndex ( Int_t )
overridevirtual

set index for array type subclasses

Reimplemented from TGo4Condition.

Definition at line 994 of file TGo4CondArray.cxx.

References fiSelectedCond.

Referenced by TGo4ConditionEditor::SelectedCondition().

◆ SetIntDraw()

void TGo4CondArray::SetIntDraw ( Bool_t on)
overridevirtual

◆ SetLabelDraw()

void TGo4CondArray::SetLabelDraw ( Bool_t on)
overridevirtual

◆ SetLimitsDraw()

void TGo4CondArray::SetLimitsDraw ( Bool_t on)
overridevirtual

◆ SetPainter()

void TGo4CondArray::SetPainter ( TGo4ConditionPainter * painter)
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().

◆ SetValues() [1/5]

virtual void TGo4Condition::SetValues ( )
inlinevirtual

Noop.

Reimplemented from TGo4Condition.

Definition at line 94 of file TGo4Condition.h.

◆ SetValues() [2/5]

virtual void TGo4Condition::SetValues ( Double_t * x,
Double_t * y,
Int_t len )
inlinevirtual

Noop.

Reimplemented from TGo4Condition.

Definition at line 98 of file TGo4Condition.h.

◆ SetValues() [3/5]

void TGo4CondArray::SetValues ( Double_t low1,
Double_t up1 )
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().

◆ SetValues() [4/5]

void TGo4CondArray::SetValues ( Double_t low1,
Double_t up1,
Double_t low2,
Double_t up2 )
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().

◆ SetValues() [5/5]

void TGo4CondArray::SetValues ( TCutG * newcut)
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().

◆ SetVisible()

void TGo4CondArray::SetVisible ( Bool_t on)
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().

◆ SetXMaxDraw()

void TGo4CondArray::SetXMaxDraw ( Bool_t on)
overridevirtual

◆ SetXMeanDraw()

void TGo4CondArray::SetXMeanDraw ( Bool_t on)
overridevirtual

◆ SetXRMSDraw()

void TGo4CondArray::SetXRMSDraw ( Bool_t on)
overridevirtual

◆ SetYMaxDraw()

void TGo4CondArray::SetYMaxDraw ( Bool_t on)
overridevirtual

◆ SetYMeanDraw()

void TGo4CondArray::SetYMeanDraw ( Bool_t on)
overridevirtual

◆ SetYRMSDraw()

void TGo4CondArray::SetYRMSDraw ( Bool_t on)
overridevirtual

◆ Test() [1/3]

Bool_t TGo4Condition::Test ( )
virtual

◆ Test() [2/3]

Bool_t TGo4CondArray::Test ( Double_t x)
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().

◆ Test() [3/3]

Bool_t TGo4CondArray::Test ( Double_t x,
Double_t y )
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().

◆ TrueCounts()

Int_t TGo4CondArray::TrueCounts ( )
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().

◆ UpdateFrom()

Bool_t TGo4CondArray::UpdateFrom ( TGo4Condition * cond,
Bool_t counts )
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().

◆ Win()

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.

Field Documentation

◆ condarr

◆ fiNumCond

Int_t TGo4CondArray::fiNumCond {0}
private

Number of conditions in array.

Definition at line 246 of file TGo4CondArray.h.

Referenced by TGo4CondArray(), TGo4CondArray(), and TGo4CondArray().

◆ fiSelectedCond

Int_t TGo4CondArray::fiSelectedCond {0}
private

Index of selected condition.

Definition at line 252 of file TGo4CondArray.h.

Referenced by TGo4CondArray(), TGo4CondArray(), TGo4CondArray(), GetCurrentIndex(), and SetCurrentIndex().

◆ fiType

Int_t TGo4CondArray::fiType {0}
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().


The documentation for this class was generated from the following files: