v2.10-0 (21000JUN2005)

Go4ConditionsBase
Class TGo4Condition

Direct Known Subclasses:
TGo4CondArray, TGo4CounterCond, TGo4PolyCond, TGo4WinCond

class TGo4Condition
derived from TAttFill, TAttLine, TNamed


Field Summary
 private Bool_tfbCMaxDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbEnabled
          Flag to enable/disable this condition.
 private Bool_tfbFalse
          These are inverted by Invert(true), and restored by Invert(false).
 private Bool_tfbHistogramLink
          is true if this condition has link to a histogram name
 private Bool_tfbIntDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbIsChanged
          Flag to indicate that condition has been changed from graphical view
 private Bool_tfbIsPainted
          Flag to prevent Paint() method to redraw condition views after UnDraw.
 private Bool_tfbLabelDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbLastResult
          This can be used to store the last result by SetLast(bool).
 private Bool_tfbLimitsDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbMarkReset
           
 private Bool_tfbMultiEdit
          Flag to indicate that properties of all conditions in array are edited/used.
for use in TGo4CondArray or other multi-condition implementations
 private Bool_tfbOwnedByEditor
          Flag to suppress interactive deletion of condition.
 private Bool_tfbResult
          If fbEnabled is false, return this as result.
 private Bool_tfbStreamedCondition
          This allows to treat conditions streamed into pad
 private Bool_tfbTrue
          These are inverted by Invert(true), and restored by Invert(false)
 private Bool_tfbVisible
          Property to store visibility of condition on display
 private Bool_tfbXMaxDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbXMeanDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbXRMSDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbYMaxDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbYMeanDraw
          If true, draw corresponding value as label on working pad
 private Bool_tfbYRMSDraw
          If true, draw corresponding value as label on working pad
 private Double_tfdUpdateEpsilon
          Precision for the check if graphical representation change requires update
 static Bool_tfgbCMAXDRAW
          default setting for all conditions for label draw cmax flag.
 static Bool_tfgbINTDRAW
          default setting for all conditions for label draw integral flag.
 static Bool_tfgbLABELDRAW
          default setting for all conditions for label draw on/off flag.
 static Bool_tfgbLIMITSDRAW
          default setting for all conditions for label draw limits flag.
 static Bool_tfgbXMAXDRAW
          default setting for all conditions for label draw xmax flag.
 static Bool_tfgbXMEANDRAW
          default setting for all conditions for label draw xmean flag.
 static Bool_tfgbXRMSDRAW
          default setting for all conditions for label draw xrms flag.
 static Bool_tfgbYMAXDRAW
          default setting for all conditions for label draw ymax flag.
 static Bool_tfgbYMEANDRAW
          default setting for all conditions for label draw ymean flag.
 static Bool_tfgbYRMSDRAW
          default setting for all conditions for label draw yrms flag.
 const static const Double_tfgdUPDATEEPSILON
          default value for graphical update tolerance.
 private Int_tfiCounts
          Counts the number of calls of the Test method.
 private Int_tfiDim
          Dimension (1 or 2).
 private Int_tfiTrueCounts
          Counts the number of calls of the Test method with true result.
 protected TH1*fxCutHis
          temporary histogram used to calculate statistics on
polygon cuts.
 private TVirtualPad*fxDrawPad
          Remember last pad used for Draw.
 private TH1*fxHisto
          Reference to currently used histogram (for statistics boxes).
 private TStringfxHistoName
          contains associatied histogram name
 private TGo4Condition*fxNextCondition
           
 protected TGo4ConditionPainter*fxPainter
          Painter instance to display the condition in root pad.

Fields inherited from class TAttFill
fFillColor, fFillStyle

Fields inherited from class TAttLine
fLineColor, fLineStyle, fLineWidth

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4Condition()
           
TGo4Condition(const char * name)
           
TGo4Condition(const char * name, const char * title)
           

Destructor Summary
 virtual synchronized ~TGo4Condition()
           

Method Summary
 virtual voidAddCondition(TGo4Condition* next)
          Add another condition to this one.
 Bool_tCheckWorkHistogram()
          Test if work histogram is still exisiting.
 virtual voidClear(Option_t* opt)
           
 virtual Int_tCounts()
          Return number of calls of the Test method.
 virtual TGo4ConditionPainter*CreatePainter()
          Factory method to generate the subclass implentation for painter
 virtual voidDisable(Bool_t result)
          Freeze condition, on Test() return result.
 virtual voidDraw(Option_t* opt)
          Draw this condition on current pad
 virtual voidEnable()
          Enable (unfreeze) Test execution
 const Bool_tFixedResult()
          Returns the value set by Disable(value).
 virtual TGo4Condition*GetActiveCondition()
          To be overwritten for condition array.
 virtual Double_tGetCMax(TH1* histo)
          Calculate value for histogram inside condition limits.
 virtual Int_tGetCurrentIndex()
          get index for array type subclasses
 virtual TCutG*GetCut(Bool_t owner)
           
 Int_tGetDimension()
           
 TVirtualPad*GetDrawPad()
           
 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.
 Bool_tGetLast()
          Returns result of last Test.
 const const Text_t*GetLinkedHistogram()
          Access name of the associated histogram.
 virtual Double_tGetMean(TH1* histo, Int_t axis)
          Calculate value for histogram inside condition limits.
 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.
 Double_tGetUpdateEpsilon()
           
 virtual voidGetValues(Int_t& dim, Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
           
 TH1*GetWorkHistogram()
          access work histogram reference
 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()
           
 voidIncCounts()
          Increment the test counter.
 voidIncTrueCounts()
          Increment the "test was true" counter.
 voidInitLabelStyle()
          Initialize label setup from static default variables
 virtual voidInvert(Bool_t on)
          Inverts return values, when on is true, i.e. isTrue() will return false,
and isFalse() will return true.
 virtual Bool_tIsArrayType()
           
 virtual Bool_tIsChanged()
           
 virtual Bool_tIsCMaxDraw()
           
 Int_tIsEnabled()
          Returns true if condition is enabled
 const Bool_tIsFalse()
          Use this as return, if test was false.
 Bool_tIsHistogramLink()
          True if the histogram of given name is linked to this
 virtual Bool_tIsIntDraw()
           
 virtual Bool_tIsLabelDraw()
           
 virtual Bool_tIsLimitsDraw()
           
 virtual Bool_tIsMultiEdit()
           
 Bool_tIsOwnedByEditor()
           
 protected const Bool_tIsPainted()
           
 virtual Bool_tIsPolygonType()
           
 const Bool_tIsTrue()
          Use this as return, if test was true.
 virtual Bool_tIsVisible()
          Visibility property for gui display in editor
 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
 virtual voidPaint(Option_t* opt)
          Display condition with plain root canvas and in go4 viewpanel
 virtual const voidPrint(Option_t* opt)
          Default printout for root object lists
 virtual voidPrintBar()
          Prints counters and bar.
 virtual voidPrintCondition(Bool_t full)
          Prints counters and boolean members.
 virtual voidResetCounts()
          Clear counters
 voidResetLabel()
          Will reset label position to defaults
 voidSaveLabelStyle()
          This will save draw flags into static default setup
 voidSetChanged(Bool_t on)
           
 virtual voidSetCMaxDraw(Bool_t on)
           
 virtual voidSetCounts(Int_t truecounts, Int_t counts)
          Set counters
 virtual voidSetCurrentIndex(Int_t ix)
          set index for array type subclasses
 voidSetDimension(Int_t d)
           
 protected voidSetDrawPad(TVirtualPad* pad)
           
 virtual voidSetFlags(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.
 voidSetHistogram(const char * name)
          Define the name of the associated histogram.
 voidSetHistogramLink(Bool_t on)
          Define if this condition has association with an analysis histogram
 virtual voidSetIntDraw(Bool_t on)
           
 virtual voidSetLabelDraw(Bool_t on)
           
 voidSetLast(Bool_t value)
          Can be used in Test to store the result.
 virtual voidSetLimitsDraw(Bool_t on)
           
 voidSetMultiEdit(Bool_t on)
           
 voidSetOwnedByEditor(Bool_t on)
           
 voidSetPadHistogram(TVirtualPad* pad)
          Set first histogram found in pad as working histogram.
 protected voidSetPainted(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.
 voidSetUpdateEpsilon(Double_t val)
          Configure graphical update tolerance for this condition individually.
by default, update tolerance is set to static value fgdUPDATEEPSILON
 virtual voidSetValues()
          Set values needed, i.e. limits for windows or cuts for polygons
 virtual voidSetValues(Double_t low1, Double_t up1)
           
 virtual voidSetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)
           
 virtual voidSetValues(TCutG* newcut)
           
 virtual voidSetValues(Double_t* x, Double_t* y, Int_t len)
           
 virtual voidSetVisible(Bool_t on)
          Set/Unset visibility.
 voidSetWorkHistogram(TH1* histo)
          Set reference to work histogram for statistics functions.
 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)
           
 virtual Bool_tTest()
          Test if condition is true.
 virtual Bool_tTest(Double_t x, Double_t y)
           
 virtual Bool_tTest(Double_t x)
           
 virtual Bool_tTest(Bool_t result)
           
 virtual Int_tTrueCounts()
          Return number of true results of the Test method call.
 virtual voidUnDraw(Option_t* opt)
          Erase view of this condition from the pad
 virtual Bool_tUpdateFrom(TGo4Condition* cond, Bool_t counts)
          Copy values from cond to this.

Methods inherited from class TAttFill
Copy, GetFillColor, GetFillStyle, IsTransparent, Modify, ResetAttFill, SaveFillAttributes, SetFillAttributes, SetFillColor, SetFillStyle, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

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

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof

Field Detail

fbCMaxDraw

private Bool_t fbCMaxDraw
If true, draw corresponding value as label on working pad

fbEnabled

private Bool_t fbEnabled
Flag to enable/disable this condition. Disabled condition will
always return fbResult.
Counters are incremented even if disabled.
After instantiation, fbEnabled will be false and fbResult true.

fbFalse

private Bool_t fbFalse
These are inverted by Invert(true), and restored by Invert(false).

fbHistogramLink

private Bool_t fbHistogramLink
is true if this condition has link to a histogram name

fbIntDraw

private Bool_t fbIntDraw
If true, draw corresponding value as label on working pad

fbIsChanged

private Bool_t fbIsChanged
Flag to indicate that condition has been changed from graphical view

fbIsPainted

private Bool_t fbIsPainted
Flag to prevent Paint() method to redraw condition views after UnDraw.
Problem with Paint() called from ROOT event loop.

fbLabelDraw

private Bool_t fbLabelDraw
If true, draw corresponding value as label on working pad

fbLastResult

private Bool_t fbLastResult
This can be used to store the last result by SetLast(bool).
It can then be retrieved by GetLast() without new testing.

fbLimitsDraw

private Bool_t fbLimitsDraw
If true, draw corresponding value as label on working pad

fbMarkReset

private Bool_t fbMarkReset

fbMultiEdit

private Bool_t fbMultiEdit
Flag to indicate that properties of all conditions in array are edited/used.
for use in TGo4CondArray or other multi-condition implementations

fbOwnedByEditor

private Bool_t fbOwnedByEditor
Flag to suppress interactive deletion of condition.

fbResult

private Bool_t fbResult
If fbEnabled is false, return this as result.

fbStreamedCondition

private Bool_t fbStreamedCondition
This allows to treat conditions streamed into pad

fbTrue

private Bool_t fbTrue
These are inverted by Invert(true), and restored by Invert(false)

fbVisible

private Bool_t fbVisible
Property to store visibility of condition on display

fbXMaxDraw

private Bool_t fbXMaxDraw
If true, draw corresponding value as label on working pad

fbXMeanDraw

private Bool_t fbXMeanDraw
If true, draw corresponding value as label on working pad

fbXRMSDraw

private Bool_t fbXRMSDraw
If true, draw corresponding value as label on working pad

fbYMaxDraw

private Bool_t fbYMaxDraw
If true, draw corresponding value as label on working pad

fbYMeanDraw

private Bool_t fbYMeanDraw
If true, draw corresponding value as label on working pad

fbYRMSDraw

private Bool_t fbYRMSDraw
If true, draw corresponding value as label on working pad

fdUpdateEpsilon

private Double_t fdUpdateEpsilon
Precision for the check if graphical representation change requires update

fgbCMAXDRAW

public static Bool_t fgbCMAXDRAW
default setting for all conditions for label draw cmax flag.

fgbINTDRAW

public static Bool_t fgbINTDRAW
default setting for all conditions for label draw integral flag.

fgbLABELDRAW

public static Bool_t fgbLABELDRAW
default setting for all conditions for label draw on/off flag.

fgbLIMITSDRAW

public static Bool_t fgbLIMITSDRAW
default setting for all conditions for label draw limits flag.

fgbXMAXDRAW

public static Bool_t fgbXMAXDRAW
default setting for all conditions for label draw xmax flag.

fgbXMEANDRAW

public static Bool_t fgbXMEANDRAW
default setting for all conditions for label draw xmean flag.

fgbXRMSDRAW

public static Bool_t fgbXRMSDRAW
default setting for all conditions for label draw xrms flag.

fgbYMAXDRAW

public static Bool_t fgbYMAXDRAW
default setting for all conditions for label draw ymax flag.

fgbYMEANDRAW

public static Bool_t fgbYMEANDRAW
default setting for all conditions for label draw ymean flag.

fgbYRMSDRAW

public static Bool_t fgbYRMSDRAW
default setting for all conditions for label draw yrms flag.

fgdUPDATEEPSILON

public const static const Double_t fgdUPDATEEPSILON
default value for graphical update tolerance.

fiCounts

private Int_t fiCounts
Counts the number of calls of the Test method.

fiDim

private Int_t fiDim
Dimension (1 or 2).

fiTrueCounts

private Int_t fiTrueCounts
Counts the number of calls of the Test method with true result.

fxCutHis

protected TH1* fxCutHis
temporary histogram used to calculate statistics on
polygon cuts. Will be recalculated only if boundaries
habe changed.

fxDrawPad

private TVirtualPad* fxDrawPad
Remember last pad used for Draw. Needed for condition editor to
prevent displaying condition on pad other than the working pad.

fxHisto

private TH1* fxHisto
Reference to currently used histogram (for statistics boxes). This
is _not_ necessarily the same histogram as specified in the linked histogram!

fxHistoName

private TString fxHistoName
contains associatied histogram name

fxNextCondition

private TGo4Condition* fxNextCondition

fxPainter

protected TGo4ConditionPainter* fxPainter
Painter instance to display the condition in root pad. To
be used in Paint() which is called on TPad::Update automatically for
all TObjects appended to the pad.
Constructor Detail

TGo4Condition

public TGo4Condition()

TGo4Condition

public TGo4Condition(const char * name)

TGo4Condition

public TGo4Condition(const char * name, const char * title)
Method Detail

~TGo4Condition

public virtual synchronized ~TGo4Condition()
Method Detail

AddCondition

public virtual void AddCondition(TGo4Condition* next)
Add another condition to this one. The newly added condition
is added as next condition and may be tested together with
the current condition. User may specify the logical connection
between the chained conditions (e.g. a locical "and",
"or", "xor" relationships are all possible). Depends on the
implementation of Test() method. The chained conditions are
_not_ owned by the top level condition and are not deleted
by dtor, thus one condition instance may be chained to
several others.

CheckWorkHistogram

public Bool_t CheckWorkHistogram()
Test if work histogram is still exisiting.

Clear

public virtual void Clear(Option_t* opt)

Counts

public virtual Int_t Counts()
Return number of calls of the Test method.

CreatePainter

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

Disable

public virtual void Disable(Bool_t result)
Freeze condition, on Test() return result.
This overwrites inverted result, but does not change it

Draw

public virtual void Draw(Option_t* opt)
Draw this condition on current pad

Enable

public virtual void Enable()
Enable (unfreeze) Test execution

FixedResult

public const Bool_t FixedResult()
Returns the value set by Disable(value).

GetActiveCondition

public virtual TGo4Condition* GetActiveCondition()
To be overwritten for condition array. By default, it returns this.

GetCMax

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

GetCurrentIndex

public virtual Int_t GetCurrentIndex()
get index for array type subclasses

GetCut

public virtual TCutG* GetCut(Bool_t owner)

GetDimension

public Int_t GetDimension()

GetDrawPad

public TVirtualPad* GetDrawPad()

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.
Overwritten in TGo4CondArray.

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

GetLast

public Bool_t GetLast()
Returns result of last Test.

GetLinkedHistogram

public const const Text_t* GetLinkedHistogram()
Access name of the associated histogram.

GetMean

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

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.

GetUpdateEpsilon

public Double_t GetUpdateEpsilon()

GetValues

public virtual void GetValues(Int_t& dim, Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)

GetWorkHistogram

public TH1* GetWorkHistogram()
access work histogram reference

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

IncCounts

public void IncCounts()
Increment the test counter. User has to take care
that this method is called within his/her Test method.

IncTrueCounts

public void IncTrueCounts()
Increment the "test was true" counter. User has to take care
that this method is called within his/her Test method on success.

InitLabelStyle

public void InitLabelStyle()
Initialize label setup from static default variables

Invert

public virtual void Invert(Bool_t on)
Inverts return values, when on is true, i.e. isTrue() will return false,
and isFalse() will return true. Whn on is false, inversion is reset.

IsArrayType

public virtual Bool_t IsArrayType()

IsChanged

public virtual Bool_t IsChanged()

IsCMaxDraw

public virtual Bool_t IsCMaxDraw()

IsEnabled

public Int_t IsEnabled()
Returns true if condition is enabled

IsFalse

public const Bool_t IsFalse()
Use this as return, if test was false. Takes into account inversion, i.e.
when condition is inverted, IsFalse returns true.

IsHistogramLink

public Bool_t IsHistogramLink()
True if the histogram of given name is linked to this

IsIntDraw

public virtual Bool_t IsIntDraw()

IsLabelDraw

public virtual Bool_t IsLabelDraw()

IsLimitsDraw

public virtual Bool_t IsLimitsDraw()

IsMultiEdit

public virtual Bool_t IsMultiEdit()

IsOwnedByEditor

public Bool_t IsOwnedByEditor()

IsPainted

protected const Bool_t IsPainted()

IsPolygonType

public virtual Bool_t IsPolygonType()

IsTrue

public const Bool_t IsTrue()
Use this as return, if test was true. Takes into account inversion, i.e.
when condition is inverted, IsTrue returns false.

IsVisible

public virtual Bool_t IsVisible()
Visibility property for gui display in editor

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

Paint

public virtual void Paint(Option_t* opt)
Display condition with plain root canvas and in go4 viewpanel

Print

public virtual const void Print(Option_t* opt)
Default printout for root object lists

PrintBar

public virtual void PrintBar()
Prints counters and bar.

PrintCondition

public virtual void PrintCondition(Bool_t full)
Prints counters and boolean members.

ResetCounts

public virtual void ResetCounts()
Clear counters

ResetLabel

public void ResetLabel()
Will reset label position to defaults

SaveLabelStyle

public void SaveLabelStyle()
This will save draw flags into static default setup

SetChanged

public void SetChanged(Bool_t on)

SetCMaxDraw

public virtual void SetCMaxDraw(Bool_t on)

SetCounts

public virtual void SetCounts(Int_t truecounts, Int_t counts)
Set counters

SetCurrentIndex

public virtual void SetCurrentIndex(Int_t ix)
set index for array type subclasses

SetDimension

public void SetDimension(Int_t d)

SetDrawPad

protected void SetDrawPad(TVirtualPad* pad)

SetFlags

public 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.
Overwritten in TGo4CondArray.

SetHistogram

public void SetHistogram(const char * name)
Define the name of the associated histogram.

SetHistogramLink

public void SetHistogramLink(Bool_t on)
Define if this condition has association with an analysis histogram

SetIntDraw

public virtual void SetIntDraw(Bool_t on)

SetLabelDraw

public virtual void SetLabelDraw(Bool_t on)

SetLast

public void SetLast(Bool_t value)
Can be used in Test to store the result. Is retrieved by GetLast()
without further test.

SetLimitsDraw

public virtual void SetLimitsDraw(Bool_t on)

SetMultiEdit

public void SetMultiEdit(Bool_t on)

SetOwnedByEditor

public void SetOwnedByEditor(Bool_t on)

SetPadHistogram

public void SetPadHistogram(TVirtualPad* pad)
Set first histogram found in pad as working histogram.
For standalone conditions outside go4 viewpanel.

SetPainted

protected void SetPainted(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.

SetUpdateEpsilon

public void SetUpdateEpsilon(Double_t val)
Configure graphical update tolerance for this condition individually.
by default, update tolerance is set to static value fgdUPDATEEPSILON

SetValues

public virtual void SetValues()
Set values needed, i.e. limits for windows or cuts for polygons

SetValues

public virtual void SetValues(Double_t low1, Double_t up1)

SetValues

public virtual void SetValues(Double_t low1, Double_t up1, Double_t low2, Double_t up2)

SetValues

public virtual void SetValues(TCutG* newcut)

SetValues

public virtual void SetValues(Double_t* x, Double_t* y, Int_t len)

SetVisible

public virtual void SetVisible(Bool_t on)
Set/Unset visibility. Overloaded for subclasses!

SetWorkHistogram

public void SetWorkHistogram(TH1* histo)
Set reference to work histogram for statistics functions. Note
that this method does not change the histogram link definitions!

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 virtual Bool_t Test()
Test if condition is true. Result is returned, the internal counters are
set appropriately. Should return fbResult if condition is not enabled.
the default is increment test counter and return true.

Test

public virtual Bool_t Test(Double_t x, Double_t y)

Test

public virtual Bool_t Test(Double_t x)

Test

public virtual Bool_t Test(Bool_t result)

TrueCounts

public virtual Int_t TrueCounts()
Return number of true results of the Test method call.

UnDraw

public virtual void UnDraw(Option_t* opt)
Erase view of this condition from the pad

UpdateFrom

public virtual Bool_t UpdateFrom(TGo4Condition* cond, Bool_t counts)
Copy values from cond to this. When counts is true, copy also counters.

Association Links

to Class TGo4ConditionPainter

Painter instance to display the condition in root pad. To
be used in Paint() which is called on TPad::Update automatically for
all TObjects appended to the pad.

to Class TH1

temporary histogram used to calculate statistics on
polygon cuts. Will be recalculated only if boundaries
habe changed.

to Class TGo4Condition

to Class TH1

Reference to currently used histogram (for statistics boxes). This
is _not_ necessarily the same histogram as specified in the linked histogram!

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

30-06-2005