v2.10-0 (21000JUN2005)

Go4ConditionsBase
Class TGo4CondArray


class TGo4CondArray
derived from TGo4Condition


Field Summary
 private TObjArray*condarr
          The object array of conditions
 private Int_tfiNumCond
          Number of conditions in array.
 private Int_tfiSelectedCond
          Index of selected condition
 private Int_tfiType
          Condition type ID (kWINDOW or kPOLYGON)

Fields inherited from class Go4ConditionsBase.TGo4Condition
fgbCMAXDRAW, fgbINTDRAW, fgbLABELDRAW, fgbLIMITSDRAW, fgbXMAXDRAW, fgbXMEANDRAW, fgbXRMSDRAW, fgbYMAXDRAW, fgbYMEANDRAW, fgbYRMSDRAW, fgdUPDATEEPSILON, fxCutHis, fxPainter

Fields inherited from class TNamed
fName, fTitle

Fields inherited from class TAttLine
fLineColor, fLineStyle, fLineWidth

Fields inherited from class TAttFill
fFillColor, fFillStyle

Constructor Summary
TGo4CondArray()
           
TGo4CondArray(const char * name, Int_t elements, const char * type)
          Constructor. type can be "TGO4WinCond" or "TGO4PolyCond"
TGo4CondArray(const Text_t* name, Int_t elements, Int_t contype)
          Constructor. contype can be kWINDOW or kPOLYGON

Destructor Summary
 virtual synchronized ~TGo4CondArray()
           

Method Summary
 TGo4Condition*At(Int_t i)
          Returns condition object i from object array.
 virtual Int_tCounts()
          Return number of calls of the Test method.
 virtual TGo4ConditionPainter*CreatePainter()
          Factory method to generate the subclass implementation for painter
 virtual voidDisable(Bool_t result)
          Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode)
 virtual voidDraw(Option_t* opt)
          Reimplement Draw to set painted flag for all array conditions
 virtual voidEnable()
          Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode)
 virtual TGo4Condition*GetActiveCondition()
          Access to the currently selected condition.
 virtual Double_tGetCMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Int_tGetCurrentIndex()
           
 virtual voidGetFlags(Bool_t* enabled, Bool_t* lastresult, Bool_t* markreset, Bool_t* result, Bool_t* truevalue, Bool_t* falsevalue)
          Sets values of internal boolean flags to external variables.
 virtual Double_tGetIntegral(TH1* histo, Option_t* opt)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetMean(TH1* histo, Int_t axis)
          Calculate value for histogram inside condition limits.
 const Int_tGetNumber()
          Returns number of conditions in array.
 virtual Int_tGetNumberOfConditions()
          for condition aggregates: return total number of conditions,
i.e.size of condition array
 virtual Double_tGetRMS(TH1* histo, Int_t axis)
          Calculate value for histogram inside condition limits.
 const const char *GetType()
          Returns class name of conditions.
 const voidGetType(Int_t& type)
          Returns condition type ID (kWINDOW=1 or kPOLYGON=2).
 voidGetValues()
          Noop
 virtual Double_tGetXLow()
           
 virtual Double_tGetXMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetXUp()
           
 virtual Double_tGetYLow()
           
 virtual Double_tGetYMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Double_tGetYUp()
           
 virtual voidInvert(Bool_t on)
          Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode)
 virtual Bool_tIsArrayType()
           
 virtual Bool_tIsChanged()
          we overwrite single condition changed property
 virtual Bool_tIsCMaxDraw()
           
 virtual Bool_tIsIntDraw()
           
 virtual Bool_tIsLabelDraw()
           
 virtual Bool_tIsLimitsDraw()
           
 virtual Bool_tIsPolygonType()
           
 virtual Bool_tIsVisible()
          we overwrite single condition visibility getter
 virtual Bool_tIsXMaxDraw()
           
 virtual Bool_tIsXMeanDraw()
           
 virtual Bool_tIsXRMSDraw()
           
 virtual Bool_tIsYMaxDraw()
           
 virtual Bool_tIsYMeanDraw()
           
 virtual Bool_tIsYRMSDraw()
           
 virtual voidMarkReset(Bool_t on)
          defines if condition counters shall be reset in UpdateFrom method
 synchronized TGo4Condition*operator[](Int_t i)
          Returns condition object i from object array.
 TGo4PolyCond*Poly(Int_t i)
          Returns polygon condition object i from object array.
 virtual voidPrintBar()
          Prints counters and bar.
 voidPrintCondition(Bool_t points)
          Calls Print for all conditions in the array.
 virtual voidResetCounts()
          Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode)
 virtual voidSetCMaxDraw(Bool_t on)
           
 virtual voidSetCurrentIndex(Int_t ix)
           
 virtual voidSetIntDraw(Bool_t on)
           
 virtual voidSetLabelDraw(Bool_t on)
           
 virtual voidSetLimitsDraw(Bool_t on)
           
 virtual voidSetPainter(TGo4ConditionPainter* painter)
          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.
 voidSetValues()
          Noop
 virtual voidSetValues(Double_t low1, Double_t up1)
          Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
 virtual voidSetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
          Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
 voidSetValues(TCutG* newcut)
          Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode).
 virtual voidSetVisible(Bool_t on)
          we overwrite single condition visibility setter
 virtual voidSetXMaxDraw(Bool_t on)
           
 virtual voidSetXMeanDraw(Bool_t on)
           
 virtual voidSetXRMSDraw(Bool_t on)
           
 virtual voidSetYMaxDraw(Bool_t on)
           
 virtual voidSetYMeanDraw(Bool_t on)
           
 virtual voidSetYRMSDraw(Bool_t on)
           
 Bool_tTest()
          Noop, return true.
 virtual Bool_tTest(Double_t x, Double_t y)
          Test currently selected condition(single edit mode).
 virtual Bool_tTest(Double_t x)
          Test currently selected condition(single edit mode).
 virtual Int_tTrueCounts()
          Return number of true results of the Test method call.
 virtual Bool_tUpdateFrom(TGo4Condition* cond, Bool_t counts)
           
 TGo4WinCond*Win(Int_t i)
          Returns window condition object i from object array.

Methods inherited from class Go4ConditionsBase.TGo4Condition
AddCondition, CheckWorkHistogram, Clear, FixedResult, GetCut, GetDimension, GetDrawPad, GetLast, GetLinkedHistogram, GetUpdateEpsilon, GetValues, GetWorkHistogram, IncCounts, IncTrueCounts, InitLabelStyle, IsEnabled, IsFalse, IsHistogramLink, IsMultiEdit, IsOwnedByEditor, IsPainted, IsTrue, Paint, Print, ResetLabel, SaveLabelStyle, SetChanged, SetCounts, SetDimension, SetDrawPad, SetFlags, SetHistogram, SetHistogramLink, SetLast, SetMultiEdit, SetOwnedByEditor, SetPadHistogram, SetPainted, SetUpdateEpsilon, SetValues, SetWorkHistogram, Test, UnDraw

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Methods inherited from class TAttLine
Copy, DistancetoLine, GetLineColor, GetLineStyle, GetLineWidth, Modify, ResetAttLine, SaveLineAttributes, SetLineAttributes, SetLineColor, SetLineStyle, SetLineWidth

Methods inherited from class TAttFill
Copy, GetFillColor, GetFillStyle, IsTransparent, ResetAttFill, SaveFillAttributes, SetFillAttributes, SetFillColor, SetFillStyle

Field Detail

condarr

private TObjArray* condarr
The object array of conditions

fiNumCond

private Int_t fiNumCond
Number of conditions in array.

fiSelectedCond

private Int_t fiSelectedCond
Index of selected condition

fiType

private Int_t fiType
Condition type ID (kWINDOW or kPOLYGON)
Constructor Detail

TGo4CondArray

public TGo4CondArray()

TGo4CondArray

public TGo4CondArray(const char * name, Int_t elements, const char * type)
Constructor. type can be "TGO4WinCond" or "TGO4PolyCond"

TGo4CondArray

public TGo4CondArray(const Text_t* name, Int_t elements, Int_t contype)
Constructor. contype can be kWINDOW or kPOLYGON
Method Detail

~TGo4CondArray

public virtual synchronized ~TGo4CondArray()
Method Detail

At

public TGo4Condition* At(Int_t i)
Returns condition object i from object array.
See also Poly and Win.

Counts

public virtual Int_t Counts()
Return number of calls of the Test method.
For complete array (multi edit mode) or for currently selected condition (single edit mode)

CreatePainter

public virtual TGo4ConditionPainter* CreatePainter()
Factory method to generate the subclass implementation for painter

Disable

public virtual void Disable(Bool_t result)
Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode)

Draw

public virtual void Draw(Option_t* opt)
Reimplement Draw to set painted flag for all array conditions

Enable

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

GetActiveCondition

public virtual TGo4Condition* GetActiveCondition()
Access to the currently selected condition.

GetCMax

public virtual Double_t GetCMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetCurrentIndex

public virtual Int_t GetCurrentIndex()

GetFlags

public virtual void GetFlags(Bool_t* enabled, Bool_t* lastresult, Bool_t* markreset, Bool_t* result, Bool_t* truevalue, Bool_t* falsevalue)
Sets values of internal boolean flags to external variables.

GetIntegral

public virtual Double_t GetIntegral(TH1* histo, Option_t* opt)
Calculate value for histogram inside condition limits.
Option may specify "width" to scale channel sum with axes

GetMean

public virtual Double_t GetMean(TH1* histo, Int_t axis)
Calculate value for histogram inside condition limits.

GetNumber

public const Int_t GetNumber()
Returns number of conditions in array.
Same as GetNumberOfConditions, but kept for backward compatibility

GetNumberOfConditions

public virtual Int_t GetNumberOfConditions()
for condition aggregates: return total number of conditions,
i.e.size of condition array

GetRMS

public virtual Double_t GetRMS(TH1* histo, Int_t axis)
Calculate value for histogram inside condition limits.

GetType

public const const char * GetType()
Returns class name of conditions.

GetType

public const void GetType(Int_t& type)
Returns condition type ID (kWINDOW=1 or kPOLYGON=2).

GetValues

public void GetValues()
Noop

GetXLow

public virtual Double_t GetXLow()

GetXMax

public virtual Double_t GetXMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetXUp

public virtual Double_t GetXUp()

GetYLow

public virtual Double_t GetYLow()

GetYMax

public virtual Double_t GetYMax(TH1* histo)
Calculate value for histogram inside condition limits.

GetYUp

public virtual Double_t GetYUp()

Invert

public virtual void Invert(Bool_t on)
Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode)

IsArrayType

public virtual Bool_t IsArrayType()

IsChanged

public virtual Bool_t IsChanged()
we overwrite single condition changed property

IsCMaxDraw

public virtual Bool_t IsCMaxDraw()

IsIntDraw

public virtual Bool_t IsIntDraw()

IsLabelDraw

public virtual Bool_t IsLabelDraw()

IsLimitsDraw

public virtual Bool_t IsLimitsDraw()

IsPolygonType

public virtual Bool_t IsPolygonType()

IsVisible

public virtual Bool_t IsVisible()
we overwrite single condition visibility getter

IsXMaxDraw

public virtual Bool_t IsXMaxDraw()

IsXMeanDraw

public virtual Bool_t IsXMeanDraw()

IsXRMSDraw

public virtual Bool_t IsXRMSDraw()

IsYMaxDraw

public virtual Bool_t IsYMaxDraw()

IsYMeanDraw

public virtual Bool_t IsYMeanDraw()

IsYRMSDraw

public virtual Bool_t IsYRMSDraw()

MarkReset

public virtual void MarkReset(Bool_t on)
defines if condition counters shall be reset in UpdateFrom method

operator[]

public synchronized TGo4Condition* operator[](Int_t i)
Returns condition object i from object array. Same as At().
Must cast for window or polygon condition methods!

Poly

public TGo4PolyCond* Poly(Int_t i)
Returns polygon condition object i from object array.
Checks if object is polygon condition, if not return 0.

PrintBar

public virtual void PrintBar()
Prints counters and bar.

PrintCondition

public void PrintCondition(Bool_t points)
Calls Print for all conditions in the array.
Checks for condition type. If points is true, print Cut or Limits,
respectively.

ResetCounts

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

SetCMaxDraw

public virtual void SetCMaxDraw(Bool_t on)

SetCurrentIndex

public virtual void SetCurrentIndex(Int_t ix)

SetIntDraw

public virtual void SetIntDraw(Bool_t on)

SetLabelDraw

public virtual void SetLabelDraw(Bool_t on)

SetLimitsDraw

public virtual void SetLimitsDraw(Bool_t on)

SetPainter

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

SetValues

public void SetValues()
Noop

SetValues

public virtual void SetValues(Double_t low1, Double_t up1)
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.

SetValues

public virtual void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.

SetValues

public void SetValues(TCutG* newcut)
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Polygon conditions only.

SetVisible

public virtual void SetVisible(Bool_t on)
we overwrite single condition visibility setter

SetXMaxDraw

public virtual void SetXMaxDraw(Bool_t on)

SetXMeanDraw

public virtual void SetXMeanDraw(Bool_t on)

SetXRMSDraw

public virtual void SetXRMSDraw(Bool_t on)

SetYMaxDraw

public virtual void SetYMaxDraw(Bool_t on)

SetYMeanDraw

public virtual void SetYMeanDraw(Bool_t on)

SetYRMSDraw

public virtual void SetYRMSDraw(Bool_t on)

Test

public Bool_t Test()
Noop, return true.

Test

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

Test

public virtual Bool_t Test(Double_t x)
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.

TrueCounts

public virtual Int_t TrueCounts()
Return number of true results of the Test method call.
For complete array (multi edit mode) or for currently selected condition (single edit mode)

UpdateFrom

public virtual Bool_t UpdateFrom(TGo4Condition* cond, Bool_t counts)

Win

public TGo4WinCond* 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!

Association Links

to Class TObjArray

The object array of conditions

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005