GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 ()
 
virtual TGo4ConditionPainterCreatePainter ()
 
virtual void Draw (Option_t *opt="")
 
virtual void SetPainter (TGo4ConditionPainter *painter)
 
virtual TGo4ConditionGetActiveCondition ()
 
TGo4ConditionAt (Int_t i)
 
TGo4WinCondWin (Int_t i)
 
TGo4PolyCondPoly (Int_t i)
 
TGo4Conditionoperator[] (Int_t i)
 
virtual Bool_t Test (Double_t x, Double_t y)
 
virtual Bool_t Test (Double_t x)
 
virtual Double_t GetXLow ()
 
virtual Double_t GetXUp ()
 
virtual Double_t GetYLow ()
 
virtual Double_t GetYUp ()
 
virtual void SetValues (Double_t low1, Double_t up1)
 
virtual void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2)
 
virtual void SetValues (TCutG *newcut)
 
void PrintCondition (Bool_t points)
 
virtual void PrintBar ()
 
virtual Int_t GetNumberOfConditions ()
 
Int_t GetNumber () const
 
const char * GetType () const
 
void GetType (Int_t &type) const
 
virtual void Enable ()
 
virtual void Disable (Bool_t result)
 
virtual void Invert (Bool_t on)
 
virtual void MarkReset (Bool_t on)
 
virtual void ResetCounts ()
 
virtual Int_t Counts ()
 
virtual Int_t TrueCounts ()
 
virtual void GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue)
 
virtual void SetVisible (Bool_t on)
 
virtual Bool_t IsVisible ()
 
virtual void SetChanged (Bool_t on)
 
virtual Int_t IsChanged ()
 
virtual void SetLabelDraw (Bool_t on)
 
virtual Bool_t IsLabelDraw ()
 
virtual void SetLimitsDraw (Bool_t on)
 
virtual Bool_t IsLimitsDraw ()
 
virtual void SetIntDraw (Bool_t on)
 
virtual Bool_t IsIntDraw ()
 
virtual void SetXMeanDraw (Bool_t on)
 
virtual Bool_t IsXMeanDraw ()
 
virtual void SetXRMSDraw (Bool_t on)
 
virtual Bool_t IsXRMSDraw ()
 
virtual void SetYMeanDraw (Bool_t on)
 
virtual Bool_t IsYMeanDraw ()
 
virtual void SetYRMSDraw (Bool_t on)
 
virtual Bool_t IsYRMSDraw ()
 
virtual void SetXMaxDraw (Bool_t on)
 
virtual Bool_t IsXMaxDraw ()
 
virtual void SetYMaxDraw (Bool_t on)
 
virtual Bool_t IsYMaxDraw ()
 
virtual void SetCMaxDraw (Bool_t on)
 
virtual Bool_t IsCMaxDraw ()
 
virtual Double_t GetIntegral (TH1 *histo, Option_t *opt="")
 
virtual Double_t GetMean (TH1 *histo, Int_t axis=1)
 
virtual Double_t GetRMS (TH1 *histo, Int_t axis=1)
 
virtual Double_t GetSkewness (TH1 *histo, Int_t axis=1)
 
virtual Double_t GetCurtosis (TH1 *histo, Int_t axis=1)
 
virtual Double_t GetXMax (TH1 *histo)
 
virtual Double_t GetYMax (TH1 *histo)
 
virtual Double_t GetCMax (TH1 *histo)
 
virtual Bool_t IsPolygonType ()
 
virtual Bool_t IsArrayType ()
 
virtual void SetCurrentIndex (Int_t ix)
 
virtual Int_t GetCurrentIndex ()
 
virtual Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
 
virtual Int_t GetMemorySize ()
 
virtual void SavePrimitive (std::ostream &fs, Option_t *="")
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
virtual void Paint (Option_t *opt="")
 
virtual void UnDraw (Option_t *opt="")
 
virtual void Pop ()
 
virtual void SetCounts (Int_t truecounts, Int_t counts)
 
Bool_t IsEnabled () const
 
virtual Bool_t Test ()
 
virtual Bool_t Test (Bool_t result)
 
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
 
virtual void Print (Option_t *opt="") const
 
void SetLast (Bool_t value)
 
Bool_t GetLast ()
 
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)
 
virtual void Clear (Option_t *opt="")
 
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 ()
 
void SetHistogram (const char *name)
 
const char * GetLinkedHistogram ()
 
void SetWorkHistogram (TH1 *histo)
 
TH1 * GetWorkHistogram ()
 
void SetUpdateEpsilon (Double_t val)
 
Double_t GetUpdateEpsilon ()
 
void SaveLabelStyle ()
 
void InitLabelStyle ()
 
void ResetLabel (Option_t *opt="reset")
 
virtual const char * GetLabelNumFormat ()
 
virtual void SetLabelNumFormat (const char *fmt)
 
void SetMultiEdit (Bool_t on)
 
virtual Bool_t IsMultiEdit ()
 
void SetDimension (Int_t d)
 
Int_t GetDimension ()
 
void SetOwnedByEditor (Bool_t on)
 
Bool_t IsOwnedByEditor ()
 
void DeletePainter ()
 

Private Attributes

TObjArray * condarr
 
Int_t fiNumCond
 
Int_t fiType
 
Int_t fiSelectedCond
 

Additional Inherited Members

- 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=0)
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter
 
TH1 * fxCutHis
 
TObjArray * fxUrlOptionArray
 

Detailed Description

Definition at line 23 of file TGo4CondArray.h.

Constructor & Destructor Documentation

TGo4CondArray::TGo4CondArray ( )

Definition at line 52 of file TGo4CondArray.cxx.

TGo4CondArray::TGo4CondArray ( const char *  name,
Int_t  elements,
const char *  type 
)

Constructor. type can be "TGo4WinCond" or "TGo4PolyCond"

Definition at line 88 of file TGo4CondArray.cxx.

References TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, 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 61 of file TGo4CondArray.cxx.

References TGo4PolyCond::CleanupSpecials(), condarr, fiNumCond, fiType, kGO4CONDPOLYGON, and kGO4CONDWINDOW.

TGo4CondArray::~TGo4CondArray ( )
virtual

Definition at line 111 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::fxPainter.

Member Function Documentation

TGo4Condition * TGo4CondArray::At ( Int_t  i)
Int_t TGo4CondArray::Counts ( )
virtual

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 348 of file TGo4CondArray.cxx.

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

TGo4ConditionPainter * TGo4CondArray::CreatePainter ( )
virtual

Factory method to generate the subclass implementation for painter

Reimplemented from TGo4Condition.

Definition at line 1121 of file TGo4CondArray.cxx.

References TGo4ConditionPainter::SetCondition().

void TGo4CondArray::Disable ( Bool_t  result)
virtual

Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode)

Reimplemented from TGo4Condition.

Definition at line 245 of file TGo4CondArray.cxx.

References At(), condarr, TGo4Condition::Disable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().

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

void TGo4CondArray::Draw ( Option_t *  opt = "")
virtual

Reimplement Draw to set painted flag for all array conditions

Reimplemented from TGo4Condition.

Definition at line 1089 of file TGo4CondArray.cxx.

References At(), TGo4Condition::Draw(), GetNumber(), TGo4Condition::IsPainted(), and TGo4Condition::SetPainted().

void TGo4CondArray::Enable ( )
virtual

Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode)

Reimplemented from TGo4Condition.

Definition at line 226 of file TGo4CondArray.cxx.

References At(), condarr, TGo4Condition::Enable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().

TGo4Condition * TGo4CondArray::GetActiveCondition ( )
virtual

Access to the currently selected condition.

Reimplemented from TGo4Condition.

Definition at line 1030 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetCMax ( TH1 *  histo)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 1007 of file TGo4CondArray.cxx.

References At(), condarr, TGo4Condition::GetCMax(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().

Int_t TGo4CondArray::GetCurrentIndex ( )
virtual
Double_t TGo4CondArray::GetCurtosis ( TH1 *  histo,
Int_t  axis = 1 
)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 965 of file TGo4CondArray.cxx.

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

void TGo4CondArray::GetFlags ( Bool_t *  enabled,
Bool_t *  lastresult,
Bool_t *  markreset,
Bool_t *  result,
Bool_t *  truevalue,
Bool_t *  falsevalue 
)
virtual

Sets values of internal boolean flags to external variables.

Reimplemented from TGo4Condition.

Definition at line 304 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::GetFlags(), and TGo4Condition::IsMultiEdit().

Double_t TGo4CondArray::GetIntegral ( TH1 *  histo,
Option_t *  opt = "" 
)
virtual

Calculate value for histogram inside condition limits. Option may specify "width" to scale channel sum with axes

Reimplemented from TGo4Condition.

Definition at line 894 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::GetIntegral(), and TGo4Condition::IsMultiEdit().

Double_t TGo4CondArray::GetMean ( TH1 *  histo,
Int_t  axis = 1 
)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 915 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::GetMean(), and TGo4Condition::IsMultiEdit().

Int_t TGo4CondArray::GetMemorySize ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 1128 of file TGo4CondArray.cxx.

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

Int_t TGo4CondArray::GetNumber ( ) const
Int_t TGo4CondArray::GetNumberOfConditions ( )
virtual

for condition aggregates: return total number of conditions, i.e.size of condition array

Reimplemented from TGo4Condition.

Definition at line 202 of file TGo4CondArray.cxx.

References GetNumber().

Referenced by GetMemorySize().

Double_t TGo4CondArray::GetRMS ( TH1 *  histo,
Int_t  axis = 1 
)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 937 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetSkewness ( TH1 *  histo,
Int_t  axis = 1 
)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 951 of file TGo4CondArray.cxx.

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

const char * TGo4CondArray::GetType ( ) const

Returns class name of conditions.

Definition at line 214 of file TGo4CondArray.cxx.

References condarr.

Referenced by SavePrimitive().

void TGo4CondArray::GetType ( Int_t &  type) const

Returns condition type ID (kGO4CONDWINDOW=1 or kGO4CONDPOLYGON=2).

Definition at line 221 of file TGo4CondArray.cxx.

References fiType.

Double_t TGo4CondArray::GetXLow ( )
virtual

Noop, return true.

Reimplemented from TGo4Condition.

Definition at line 378 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetXMax ( TH1 *  histo)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 979 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetXUp ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 393 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetYLow ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 408 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetYMax ( TH1 *  histo)
virtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 993 of file TGo4CondArray.cxx.

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

Double_t TGo4CondArray::GetYUp ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 423 of file TGo4CondArray.cxx.

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

void TGo4CondArray::Invert ( Bool_t  on)
virtual

Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode)

Reimplemented from TGo4Condition.

Definition at line 265 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::Invert(), and TGo4Condition::IsMultiEdit().

Bool_t TGo4CondArray::IsArrayType ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 124 of file TGo4CondArray.cxx.

Int_t TGo4CondArray::IsChanged ( )
virtual

we overwrite single condition changed property

Reimplemented from TGo4Condition.

Definition at line 1048 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::IsChanged().

Bool_t TGo4CondArray::IsCMaxDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 879 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsIntDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 655 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsLabelDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 586 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsLimitsDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 621 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsPolygonType ( )
virtual
Bool_t TGo4CondArray::IsVisible ( )
virtual

we overwrite single condition visibility getter

Reimplemented from TGo4Condition.

Definition at line 553 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsXMaxDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 815 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsXMeanDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 687 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsXRMSDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 719 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsYMaxDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 847 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsYMeanDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 751 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::IsYRMSDraw ( )
virtual

Reimplemented from TGo4Condition.

Definition at line 783 of file TGo4CondArray.cxx.

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

void TGo4CondArray::MarkReset ( Bool_t  on)
virtual

defines if condition counters shall be reset in UpdateFrom method

Reimplemented from TGo4Condition.

Definition at line 285 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::MarkReset().

TGo4Condition * TGo4CondArray::operator[] ( Int_t  i)

Returns condition object i from object array. Same as At(). Must cast for window or polygon condition methods!

Definition at line 41 of file TGo4CondArray.cxx.

References condarr.

TGo4PolyCond * TGo4CondArray::Poly ( Int_t  i)

Returns polygon condition object i from object array. Checks if object is polygon condition, if not return 0.

Definition at line 35 of file TGo4CondArray.cxx.

References At(), fiType, and kGO4CONDPOLYGON.

void TGo4CondArray::PrintBar ( )
virtual

Prints counters and bar.

Reimplemented from TGo4Condition.

Definition at line 188 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::PrintBar().

void TGo4CondArray::PrintCondition ( Bool_t  points)
virtual

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 175 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::PrintCondition().

void TGo4CondArray::ResetCounts ( )
virtual

Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode)

Reimplemented from TGo4Condition.

Definition at line 329 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::ResetCounts().

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

void TGo4CondArray::SavePrimitive ( std::ostream &  fs,
Option_t *  opt = "" 
)
virtual

Standard way to store parameter in form of macro

Definition at line 1147 of file TGo4CondArray.cxx.

References At(), GetNumber(), GetType(), and TGo4Condition::MakeScript().

void TGo4CondArray::SetChanged ( Bool_t  on)
virtual

we overwrite single condition changed property

Reimplemented from TGo4Condition.

Definition at line 1039 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::SetChanged().

void TGo4CondArray::SetCMaxDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetCurrentIndex ( Int_t  ix)
virtual

set index for array type subclasses

Reimplemented from TGo4Condition.

Definition at line 1077 of file TGo4CondArray.cxx.

References fiSelectedCond.

Referenced by TGo4ConditionEditor::SelectedCondition().

void TGo4CondArray::SetIntDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetLabelDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetLimitsDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetPainter ( TGo4ConditionPainter painter)
virtual

Replace default painter of this condition by external one. if different views of this condition shall exist for different TPads, the painter (i.e. view) can be exchanged before pad is updated.

Reimplemented from TGo4Condition.

Definition at line 1106 of file TGo4CondArray.cxx.

References TGo4Condition::fxPainter, and TGo4Log::Warn().

void TGo4CondArray::SetValues ( Double_t  low1,
Double_t  up1 
)
virtual

Noop Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.

Reimplemented from TGo4Condition.

Definition at line 440 of file TGo4CondArray.cxx.

References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().

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

void TGo4CondArray::SetValues ( Double_t  low1,
Double_t  up1,
Double_t  low2,
Double_t  up2 
)
virtual

Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.

Reimplemented from TGo4Condition.

Definition at line 460 of file TGo4CondArray.cxx.

References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().

void TGo4CondArray::SetValues ( TCutG *  newcut)
virtual

Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Polygon conditions only.

Reimplemented from TGo4Condition.

Definition at line 480 of file TGo4CondArray.cxx.

References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDPOLYGON, and TGo4Condition::SetValues().

void TGo4CondArray::SetVisible ( Bool_t  on)
virtual

we overwrite single condition visibility setter

Reimplemented from TGo4Condition.

Definition at line 534 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetVisible().

void TGo4CondArray::SetXMaxDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetXMeanDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetXRMSDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetYMaxDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetYMeanDraw ( Bool_t  on)
virtual
void TGo4CondArray::SetYRMSDraw ( Bool_t  on)
virtual
Bool_t TGo4CondArray::Test ( Double_t  x,
Double_t  y 
)
virtual

Noop, return true. 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 128 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().

Bool_t TGo4CondArray::Test ( Double_t  x)
virtual

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 151 of file TGo4CondArray.cxx.

References At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().

Int_t TGo4CondArray::TrueCounts ( )
virtual

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 363 of file TGo4CondArray.cxx.

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

Bool_t TGo4CondArray::UpdateFrom ( TGo4Condition cond,
Bool_t  counts 
)
virtual

Copy values from cond to this. When counts is true, copy also counters.

Reimplemented from TGo4Condition.

Definition at line 501 of file TGo4CondArray.cxx.

References condarr, and TGo4Condition::UpdateFrom().

TGo4WinCond * TGo4CondArray::Win ( Int_t  i)

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 29 of file TGo4CondArray.cxx.

References At(), fiType, and kGO4CONDWINDOW.

Member Data Documentation

TObjArray* TGo4CondArray::condarr
private
Int_t TGo4CondArray::fiNumCond
private

Number of conditions in array.

Definition at line 246 of file TGo4CondArray.h.

Referenced by TGo4CondArray().

Int_t TGo4CondArray::fiSelectedCond
private

Index of selected condition

Definition at line 252 of file TGo4CondArray.h.

Referenced by GetCurrentIndex(), and SetCurrentIndex().

Int_t TGo4CondArray::fiType
private

Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON)

Definition at line 249 of file TGo4CondArray.h.

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


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