GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Private Attributes | List of all members
TGo4CondArray Class Reference

#include <TGo4CondArray.h>

+ Inheritance diagram for TGo4CondArray:

Public Member Functions

 TGo4CondArray ()
 
 TGo4CondArray (const char *name, Int_t elements, const char *type)
 
 TGo4CondArray (const char *name, Int_t elements, Int_t contype)
 
virtual ~TGo4CondArray ()
 
TGo4ConditionPainterCreatePainter () override
 
void Draw (Option_t *opt="") override
 
void SetPainter (TGo4ConditionPainter *painter) override
 
const TGo4ConditionGetActiveCondition () const override
 
TGo4ConditionAt (Int_t i) const
 
TGo4WinCondWin (Int_t i) const
 
TGo4PolyCondPoly (Int_t i) const
 
TGo4Conditionoperator[] (Int_t i) const
 
Bool_t Test (Double_t x, Double_t y) override
 
Bool_t Test (Double_t x) override
 
Double_t GetXLow () const override
 
Double_t GetXUp () const override
 
Double_t GetYLow () const override
 
Double_t GetYUp () const override
 
void SetValues (Double_t low1, Double_t up1) override
 
void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2) override
 
void SetValues (TCutG *newcut) override
 
void PrintCondition (Bool_t points) override
 
void PrintBar () override
 
Int_t GetNumberOfConditions () const override
 
Int_t GetNumber () const
 
const char * GetType () const
 
void GetType (Int_t &type) const
 
void Enable () override
 
void Disable (Bool_t result) override
 
void Invert (Bool_t on) override
 
void MarkReset (Bool_t on) override
 
void ResetCounts () override
 
Int_t Counts () override
 
Int_t TrueCounts () override
 
void GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue) override
 
void SetVisible (Bool_t on) override
 
Bool_t IsVisible () const override
 
void SetChanged (Bool_t on=kTRUE) override
 
Int_t IsChanged () const override
 
void SetLabelDraw (Bool_t on) override
 
Bool_t IsLabelDraw () const override
 
void SetLimitsDraw (Bool_t on) override
 
Bool_t IsLimitsDraw () const override
 
void SetIntDraw (Bool_t on) override
 
Bool_t IsIntDraw () const override
 
void SetXMeanDraw (Bool_t on) override
 
Bool_t IsXMeanDraw () const override
 
void SetXRMSDraw (Bool_t on) override
 
Bool_t IsXRMSDraw () const override
 
void SetYMeanDraw (Bool_t on) override
 
Bool_t IsYMeanDraw () const override
 
void SetYRMSDraw (Bool_t on) override
 
Bool_t IsYRMSDraw () const override
 
void SetXMaxDraw (Bool_t on) override
 
Bool_t IsXMaxDraw () const override
 
void SetYMaxDraw (Bool_t on) override
 
Bool_t IsYMaxDraw () const override
 
void SetCMaxDraw (Bool_t on) override
 
Bool_t IsCMaxDraw () const override
 
Double_t GetIntegral (TH1 *histo, Option_t *opt="") override
 
Double_t GetMean (TH1 *histo, Int_t axis=1) override
 
Double_t GetRMS (TH1 *histo, Int_t axis=1) override
 
Double_t GetSkewness (TH1 *histo, Int_t axis=1) override
 
Double_t GetCurtosis (TH1 *histo, Int_t axis=1) override
 
Double_t GetXMax (TH1 *histo) override
 
Double_t GetYMax (TH1 *histo) override
 
Double_t GetCMax (TH1 *histo) override
 
Bool_t IsPolygonType () const override
 
Bool_t IsArrayType () const override
 
void SetCurrentIndex (Int_t ix) override
 
Int_t GetCurrentIndex () const override
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts) override
 
Int_t GetMemorySize () const override
 
void SavePrimitive (std::ostream &fs, Option_t *opt="") override
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
void Paint (Option_t *opt="") override
 
void Draw (Option_t *opt="") override
 
virtual void UnDraw (Option_t *opt="")
 
void Pop () override
 
virtual void SetCounts (Int_t truecounts, Int_t counts)
 
Bool_t IsEnabled () const
 
virtual Bool_t Test ()
 
virtual void SetValues ()
 
virtual void SetValues (Double_t *x, Double_t *y, Int_t len)
 
virtual void AddCondition (TGo4Condition *next)
 
void IncCounts ()
 
void IncTrueCounts ()
 
Bool_t IsTrue () const
 
Bool_t IsFalse () const
 
Bool_t FixedResult () const
 
void Print (Option_t *opt="") const override
 
void SetLast (Bool_t value)
 
Bool_t GetLast () const
 
virtual Bool_t UpdateFromUrl (const char *rest_url_opt)
 
virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
virtual TCutG * GetCut (Bool_t owner)
 
void Clear (Option_t *opt="") override
 
virtual void SetFlags (Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue)
 
void SetHistogramLink (Bool_t on)
 
Bool_t IsHistogramLink () const
 
void SetHistogram (const char *name)
 
const char * GetLinkedHistogram () const
 
virtual void SetWorkHistogram (TH1 *histo)
 
TH1 * GetWorkHistogram () const
 
void SetUpdateEpsilon (Double_t val)
 
Double_t GetUpdateEpsilon () const
 
void SaveLabelStyle ()
 
void InitLabelStyle ()
 
void ResetLabel (Option_t *opt="reset")
 
virtual void SetLabelNumFormat (const char *fmt)
 
virtual const char * GetLabelNumFormat () const
 
void SetMultiEdit (Bool_t on)
 
virtual Bool_t IsMultiEdit () const
 
void SetDimension (Int_t d)
 
Int_t GetDimension () const
 
void SetOwnedByEditor (Bool_t on)
 
Bool_t IsOwnedByEditor () const
 
void DeletePainter ()
 

Private Attributes

TObjArray * condarr {nullptr}
 
Int_t fiNumCond {0}
 
Int_t fiType {0}
 
Int_t fiSelectedCond {0}
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4Condition
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 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 Public Attributes inherited from TGo4Condition
static const Double_t fgdUPDATEEPSILON = 0.01
 
static Bool_t fgbLABELDRAW =kTRUE
 
static Bool_t fgbLIMITSDRAW =kTRUE
 
static Bool_t fgbINTDRAW =kTRUE
 
static Bool_t fgbXMEANDRAW =kTRUE
 
static Bool_t fgbXRMSDRAW =kTRUE
 
static Bool_t fgbYMEANDRAW =kFALSE
 
static Bool_t fgbYRMSDRAW =kFALSE
 
static Bool_t fgbXMAXDRAW =kTRUE
 
static Bool_t fgbYMAXDRAW =kFALSE
 
static Bool_t fgbCMAXDRAW =kTRUE
 
static TString fgxNUMFORMAT ="%.4E"
 
static TString fgxURL_RESET ="resetcounters"
 
static TString fgxURL_RESULT ="resultmode"
 
static TString fgxURL_INVERT ="invertmode"
 
static TString fgxURL_VISIBLE ="visible"
 
static TString fgxURL_LABEL ="labeldraw"
 
static TString fgxURL_LIMITS ="limitsdraw"
 
static TString fgxURL_INTEGRAL ="intdraw"
 
static TString fgxURL_XMEAN ="xmeandraw"
 
static TString fgxURL_XRMS ="xrmsdraw"
 
static TString fgxURL_YMEAN ="ymeandraw"
 
static TString fgxURL_YRMS ="yrmsdraw"
 
static TString fgxURL_XMAX ="xmaxdraw"
 
static TString fgxURL_YMAX ="ymaxdraw"
 
static TString fgxURL_CMAX ="cmaxdraw"
 
- Protected Member Functions inherited from TGo4Condition
void BuildUrlOptionArray (const char *rest_url_opt)
 
Bool_t UrlOptionHasKey (const char *key)
 
TString GetUrlOptionAsString (const char *key, TString def_value)
 
Int_t GetUrlOptionAsInt (const char *key, Int_t def_value)
 
Double_t GetUrlOptionAsDouble (const char *key, Double_t def_value)
 
void SetPainted (Bool_t on)
 
Bool_t IsPainted () const
 
const char * MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=nullptr)
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter {nullptr}
 
TObjArray * fxUrlOptionArray {nullptr}
 

Detailed Description

Definition at line 23 of file TGo4CondArray.h.

Constructor & Destructor Documentation

◆ TGo4CondArray() [1/3]

TGo4CondArray::TGo4CondArray ( )

Definition at line 48 of file TGo4CondArray.cxx.

◆ 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 TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, 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 TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, 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()

TGo4Condition * TGo4CondArray::At ( Int_t  i) const

◆ 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 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.

References TGo4ConditionPainter::SetCondition().

◆ 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 At(), condarr, TGo4Condition::Disable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().

Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().

◆ 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 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 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 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 At(), condarr, TGo4Condition::GetCMax(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().

◆ GetCurrentIndex()

Int_t TGo4CondArray::GetCurrentIndex ( ) const
overridevirtual

◆ 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 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 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 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 At(), condarr, GetCurrentIndex(), TGo4Condition::GetMean(), and TGo4Condition::IsMultiEdit().

◆ GetMemorySize()

Int_t TGo4CondArray::GetMemorySize ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 1044 of file TGo4CondArray.cxx.

References At(), condarr, TGo4Condition::GetMemorySize(), and GetNumberOfConditions().

Referenced by IsArrayType().

◆ GetNumber()

Int_t TGo4CondArray::GetNumber ( ) const

◆ 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 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 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 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

Reimplemented from TGo4Condition.

Definition at line 342 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::GetXLow(), and TGo4Condition::IsMultiEdit().

◆ 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 At(), GetCurrentIndex(), TGo4Condition::GetXMax(), and TGo4Condition::IsMultiEdit().

◆ GetXUp()

Double_t TGo4CondArray::GetXUp ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 355 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::GetXUp(), and TGo4Condition::IsMultiEdit().

◆ GetYLow()

Double_t TGo4CondArray::GetYLow ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 368 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::GetYLow(), and TGo4Condition::IsMultiEdit().

◆ 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 At(), GetCurrentIndex(), TGo4Condition::GetYMax(), and TGo4Condition::IsMultiEdit().

◆ GetYUp()

Double_t TGo4CondArray::GetYUp ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 381 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::GetYUp(), and TGo4Condition::IsMultiEdit().

◆ 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 At(), condarr, GetCurrentIndex(), TGo4Condition::Invert(), and TGo4Condition::IsMultiEdit().

◆ IsArrayType()

Bool_t TGo4CondArray::IsArrayType ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 225 of file TGo4CondArray.h.

References GetCurrentIndex(), GetMemorySize(), SavePrimitive(), SetCurrentIndex(), and UpdateFrom().

◆ 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 condarr, and TGo4Condition::IsChanged().

◆ IsCMaxDraw()

Bool_t TGo4CondArray::IsCMaxDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 803 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsCMaxDraw(), and TGo4Condition::IsMultiEdit().

◆ IsIntDraw()

Bool_t TGo4CondArray::IsIntDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 586 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsIntDraw(), and TGo4Condition::IsMultiEdit().

◆ IsLabelDraw()

Bool_t TGo4CondArray::IsLabelDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 524 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsLabelDraw(), and TGo4Condition::IsMultiEdit().

◆ IsLimitsDraw()

Bool_t TGo4CondArray::IsLimitsDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 555 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsLimitsDraw(), and TGo4Condition::IsMultiEdit().

◆ 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 At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsVisible().

◆ IsXMaxDraw()

Bool_t TGo4CondArray::IsXMaxDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 741 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMaxDraw().

◆ IsXMeanDraw()

Bool_t TGo4CondArray::IsXMeanDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 617 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMeanDraw().

◆ IsXRMSDraw()

Bool_t TGo4CondArray::IsXRMSDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 648 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXRMSDraw().

◆ IsYMaxDraw()

Bool_t TGo4CondArray::IsYMaxDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 772 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMaxDraw().

◆ IsYMeanDraw()

Bool_t TGo4CondArray::IsYMeanDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 679 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMeanDraw().

◆ IsYRMSDraw()

Bool_t TGo4CondArray::IsYRMSDraw ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 710 of file TGo4CondArray.cxx.

References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYRMSDraw().

◆ 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 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 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 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 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 At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::ResetCounts().

Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().

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

Referenced by IsArrayType().

◆ 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 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 IsArrayType(), and 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/3]

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 At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().

Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().

◆ SetValues() [2/3]

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 At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().

◆ SetValues() [3/3]

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 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 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/2]

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 At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().

◆ Test() [2/2]

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 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 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 condarr, and TGo4Condition::UpdateFrom().

Referenced by IsArrayType().

◆ 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.

Member Data Documentation

◆ condarr

TObjArray* TGo4CondArray::condarr {nullptr}
private

◆ fiNumCond

Int_t TGo4CondArray::fiNumCond {0}
private

Number of conditions in array.

Definition at line 242 of file TGo4CondArray.h.

Referenced by TGo4CondArray().

◆ fiSelectedCond

Int_t TGo4CondArray::fiSelectedCond {0}
private

Index of selected condition

Definition at line 248 of file TGo4CondArray.h.

Referenced by GetCurrentIndex(), and SetCurrentIndex().

◆ fiType

Int_t TGo4CondArray::fiType {0}
private

Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON)

Definition at line 245 of file TGo4CondArray.h.

Referenced by GetType(), IsPolygonType(), Poly(), SetValues(), TGo4CondArray(), and Win().


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