Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | Friends

TGo4Condition Class Reference

#include <TGo4Condition.h>

Inheritance diagram for TGo4Condition:
TGo4CondArray TGo4CounterCond TGo4PolyCond TGo4WinCond

List of all members.

Public Member Functions

 TGo4Condition ()
 TGo4Condition (const char *name, const char *title="Go4 Condition")
virtual ~TGo4Condition ()
virtual void Paint (Option_t *opt="")
virtual void Draw (Option_t *opt="")
virtual void UnDraw (Option_t *opt="")
virtual void Pop ()
virtual TGo4ConditionPainterCreatePainter ()
virtual Int_t Counts ()
virtual Int_t TrueCounts ()
virtual void ResetCounts ()
virtual void SetCounts (Int_t truecounts, Int_t counts)
virtual void Disable (Bool_t result)
virtual void Enable ()
Bool_t IsEnabled () const
virtual Bool_t Test ()
virtual Bool_t Test (Double_t x, Double_t y)
virtual Bool_t Test (Double_t x)
virtual Bool_t Test (Bool_t result)
virtual void SetValues ()
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)
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 Invert (Bool_t on)
virtual void PrintCondition (Bool_t full=kTRUE)
virtual void PrintBar ()
virtual void Print (Option_t *opt="") const
void SetLast (Bool_t value)
Bool_t GetLast ()
virtual Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
virtual Double_t GetXLow ()
virtual Double_t GetXUp ()
virtual Double_t GetYLow ()
virtual Double_t GetYUp ()
virtual TCutG * GetCut (Bool_t owner)
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 GetXMax (TH1 *histo)
virtual Double_t GetYMax (TH1 *histo)
virtual Double_t GetCMax (TH1 *histo)
virtual TGo4ConditionGetActiveCondition ()
virtual void MarkReset (Bool_t on)
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)
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 ()
void SetHistogramLink (Bool_t on)
Bool_t IsHistogramLink ()
void SetHistogram (const char *name)
const char * GetLinkedHistogram ()
void SetWorkHistogram (TH1 *histo)
TH1 * GetWorkHistogram ()
virtual void SetPainter (TGo4ConditionPainter *painter)
void SetUpdateEpsilon (Double_t val)
Double_t GetUpdateEpsilon ()
void SaveLabelStyle ()
void InitLabelStyle ()
void ResetLabel (Option_t *opt="reset")
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 const char * GetLabelNumFormat ()
virtual void SetLabelNumFormat (const char *fmt)
virtual void SetChanged (Bool_t on)
virtual Int_t IsChanged ()
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 ()
virtual void SetCurrentIndex (Int_t ix)
virtual Int_t GetCurrentIndex ()
virtual Int_t GetNumberOfConditions ()
virtual Int_t GetMemorySize ()
virtual Bool_t IsPolygonType ()
virtual Bool_t IsArrayType ()
void DeletePainter ()

Static Public Attributes

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"

Protected Member Functions

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

TGo4ConditionPainterfxPainter
TH1 * fxCutHis

Private Attributes

Int_t fiDim
Bool_t fbMarkReset
Bool_t fbLastResult
Bool_t fbTrue
Bool_t fbFalse
Int_t fiTrueCounts
Int_t fiCounts
Bool_t fbEnabled
Bool_t fbResult
Bool_t fbMultiEdit
Bool_t fbVisible
Bool_t fbHistogramLink
TString fxHistoName
Double_t fdUpdateEpsilon
Bool_t fbLabelDraw
Bool_t fbLimitsDraw
Bool_t fbIntDraw
Bool_t fbXMeanDraw
Bool_t fbXRMSDraw
Bool_t fbYMeanDraw
Bool_t fbYRMSDraw
Bool_t fbXMaxDraw
Bool_t fbYMaxDraw
Bool_t fbCMaxDraw
TString fxNumFormat
TH1 * fxHisto
Int_t fiIsChanged
Bool_t fbIsPainted
Bool_t fbOwnedByEditor
Bool_t fbStreamedCondition

Friends

class TGo4CondArray

Detailed Description

Definition at line 36 of file TGo4Condition.h.


Constructor & Destructor Documentation

TGo4Condition::TGo4Condition ( const char *  name,
const char *  title = "Go4 Condition" 
)
TGo4Condition::~TGo4Condition (  )  [virtual]

Definition at line 104 of file TGo4Condition.cxx.

References fxCutHis, fxPainter, GO4TRACE, and UnDraw().


Member Function Documentation

void TGo4Condition::AddCondition ( TGo4Condition next  )  [virtual]

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.

Definition at line 127 of file TGo4Condition.cxx.

References GO4TRACE.

void TGo4Condition::Clear ( Option_t *  opt = ""  )  [virtual]

Definition at line 372 of file TGo4Condition.cxx.

References ResetCounts().

Int_t TGo4Condition::Counts (  )  [virtual]

Return number of calls of the Test method.

Reimplemented in TGo4CondArray.

Definition at line 144 of file TGo4Condition.cxx.

References fiCounts, and GO4TRACE.

Referenced by TGo4CondArray::Counts(), MakeScript(), Print(), TGo4ConditionInfo::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), and TGo4CondArray::TrueCounts().

TGo4ConditionPainter * TGo4Condition::CreatePainter (  )  [virtual]

Factory method to generate the subclass implentation for painter

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 625 of file TGo4Condition.cxx.

Referenced by Paint(), and UnDraw().

void TGo4Condition::DeletePainter (  ) 

Definition at line 675 of file TGo4Condition.cxx.

References fxPainter.

Referenced by TGo4ViewPanel::MakePictureForPad().

void TGo4Condition::Disable ( Bool_t  result  )  [virtual]

Freeze condition, on Test() return result. This overwrites inverted result, but does not change it

Reimplemented in TGo4CondArray.

Definition at line 425 of file TGo4Condition.cxx.

References fbEnabled, and fbResult.

Referenced by TGo4CondArray::Disable(), TGo4ConditionEditor::SetResultMode(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

void TGo4Condition::Draw ( Option_t *  opt = ""  )  [virtual]

Draw this condition on current pad

Reimplemented in TGo4CondArray.

Definition at line 594 of file TGo4Condition.cxx.

References IsVisible(), SetPainted(), and UnDraw().

Referenced by TGo4RootBrowserProxy::DrawCondition(), TGo4RootBrowserProxy::DrawPicture(), and TGo4ViewPanel::PadClickedSlot().

void TGo4Condition::Enable (  )  [virtual]
Bool_t TGo4Condition::FixedResult (  )  const [inline]

Returns the value set by Disable(value).

Definition at line 140 of file TGo4Condition.h.

References fbResult.

Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), TGo4WinCond::Test(), and TGo4PolyCond::Test().

TGo4Condition * TGo4Condition::GetActiveCondition (  )  [virtual]

To be overwritten for condition array. By default, it returns this.

Reimplemented in TGo4CondArray.

Definition at line 347 of file TGo4Condition.cxx.

Referenced by Print().

Double_t TGo4Condition::GetCMax ( TH1 *  histo  )  [virtual]

Calculate value for histogram inside condition limits.

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 420 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetCMax(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

Int_t TGo4Condition::GetCurrentIndex (  )  [virtual]

get index for array type subclasses

Reimplemented in TGo4CondArray.

Definition at line 350 of file TGo4Condition.cxx.

TCutG * TGo4Condition::GetCut ( Bool_t  owner  )  [virtual]

Reimplemented in TGo4PolyCond.

Definition at line 344 of file TGo4Condition.cxx.

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

Reimplemented in TGo4CondArray.

Definition at line 376 of file TGo4Condition.cxx.

References fbEnabled, fbFalse, fbLastResult, fbMarkReset, fbResult, and fbTrue.

Referenced by TGo4CondArray::GetFlags(), and MakeScript().

Double_t TGo4Condition::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 in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 399 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetIntegral(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

const char * TGo4Condition::GetLabelNumFormat (  )  [virtual]

Definition at line 542 of file TGo4Condition.cxx.

References fxNumFormat.

Referenced by TGo4ConditionPainter::PaintLabel().

Bool_t TGo4Condition::GetLast (  )  [inline]

Returns result of last Test.

Definition at line 160 of file TGo4Condition.h.

References fbLastResult.

const char * TGo4Condition::GetLinkedHistogram (  ) 
Double_t TGo4Condition::GetMean ( TH1 *  histo,
Int_t  axis = 1 
) [virtual]

Calculate value for histogram inside condition limits.

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 404 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetMean(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

Int_t TGo4Condition::GetMemorySize (  )  [virtual]

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 360 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetMemorySize(), and TGo4ConditionInfo::RefreshWidget().

Int_t TGo4Condition::GetNumberOfConditions (  )  [virtual]

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

Reimplemented in TGo4CondArray.

Definition at line 355 of file TGo4Condition.cxx.

Double_t TGo4Condition::GetRMS ( TH1 *  histo,
Int_t  axis = 1 
) [virtual]

Calculate value for histogram inside condition limits.

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 408 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetRMS(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

Double_t TGo4Condition::GetUpdateEpsilon (  )  [inline]

Definition at line 242 of file TGo4Condition.h.

References fdUpdateEpsilon.

Referenced by TGo4WinCondView::ExecuteEvent(), and TGo4PolyCondView::IsCutChanged().

void TGo4Condition::GetValues ( Int_t &  dim,
Double_t &  x1,
Double_t &  y1,
Double_t &  x2,
Double_t &  y2 
) [virtual]

Reimplemented in TGo4WinCond.

Definition at line 331 of file TGo4Condition.cxx.

References GetDimension(), GetXLow(), GetXUp(), GetYLow(), and GetYUp().

Referenced by TGo4WinCond::UpdateFrom().

TH1* TGo4Condition::GetWorkHistogram (  )  [inline]

access work histogram reference

Definition at line 231 of file TGo4Condition.h.

References fxHisto.

Referenced by TGo4ViewPanel::CheckObjectsAssigments(), TGo4CondArrayPainter::PaintCondition(), TGo4ConditionPainter::PaintLabel(), and Print().

Double_t TGo4Condition::GetXLow (  )  [virtual]
Double_t TGo4Condition::GetXMax ( TH1 *  histo  )  [virtual]

Calculate value for histogram inside condition limits.

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 412 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetXMax(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

Double_t TGo4Condition::GetXUp (  )  [virtual]
Double_t TGo4Condition::GetYLow (  )  [virtual]
Double_t TGo4Condition::GetYMax ( TH1 *  histo  )  [virtual]

Calculate value for histogram inside condition limits.

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 416 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::GetYMax(), TGo4ConditionPainter::PaintLabel(), Print(), and TGo4ConditionEditor::RefreshWidget().

Double_t TGo4Condition::GetYUp (  )  [virtual]
void TGo4Condition::IncCounts (  ) 

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

Definition at line 138 of file TGo4Condition.cxx.

References fiCounts, and GO4TRACE.

Referenced by TGo4WinCond::Test(), TGo4PolyCond::Test(), TGo4CounterCond::Test(), and TGo4CondArray::Test().

void TGo4Condition::IncTrueCounts (  ) 

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

Definition at line 132 of file TGo4Condition.cxx.

References fiTrueCounts, and GO4TRACE.

Referenced by TGo4WinCond::Test(), TGo4PolyCond::Test(), TGo4CounterCond::Test(), and TGo4CondArray::Test().

void TGo4Condition::InitLabelStyle (  ) 
void TGo4Condition::Invert ( Bool_t  on  )  [virtual]

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.

Reimplemented in TGo4CondArray.

Definition at line 172 of file TGo4Condition.cxx.

References fbFalse, fbTrue, and GO4TRACE.

Referenced by TGo4CondArray::Invert(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4ConditionEditor::SetInvertMode(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

Bool_t TGo4Condition::IsArrayType (  )  [virtual]

Reimplemented in TGo4CondArray.

Definition at line 346 of file TGo4Condition.cxx.

Referenced by TGo4ConditionPainter::PaintLabel().

virtual Int_t TGo4Condition::IsChanged (  )  [inline, virtual]
Bool_t TGo4Condition::IsCMaxDraw (  )  [virtual]
Bool_t TGo4Condition::IsEnabled (  )  const [inline]

Returns true if condition is enabled

Definition at line 93 of file TGo4Condition.h.

References fbEnabled.

Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), TGo4WinCond::Test(), and TGo4PolyCond::Test().

Bool_t TGo4Condition::IsFalse (  )  const [inline]

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

Definition at line 137 of file TGo4Condition.h.

References fbFalse.

Referenced by TGo4WinCond::Test(), and TGo4PolyCond::Test().

Bool_t TGo4Condition::IsHistogramLink (  ) 

True if the histogram of given name is linked to this

Definition at line 452 of file TGo4Condition.cxx.

References fbHistogramLink.

Referenced by TGo4ConditionEditor::DrawCondition(), and TGo4ConditionEditor::RefreshWidget().

Bool_t TGo4Condition::IsIntDraw (  )  [virtual]
Bool_t TGo4Condition::IsLabelDraw (  )  [virtual]
Bool_t TGo4Condition::IsLimitsDraw (  )  [virtual]
Bool_t TGo4Condition::IsOwnedByEditor (  )  [inline]

Definition at line 300 of file TGo4Condition.h.

References fbOwnedByEditor.

Referenced by TGo4PolyCondView::DeleteRegion().

Bool_t TGo4Condition::IsPainted (  )  const [inline, protected]

Definition at line 365 of file TGo4Condition.h.

References fbIsPainted.

Referenced by TGo4CondArray::Draw(), and Paint().

Bool_t TGo4Condition::IsPolygonType (  )  [virtual]

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 345 of file TGo4Condition.cxx.

Referenced by TGo4CondArray::IsPolygonType(), and Print().

Bool_t TGo4Condition::IsTrue (  )  const [inline]

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

Definition at line 133 of file TGo4Condition.h.

References fbTrue.

Referenced by TGo4ConditionInfo::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), TGo4WinCond::Test(), and TGo4PolyCond::Test().

Bool_t TGo4Condition::IsVisible (  )  [virtual]
Bool_t TGo4Condition::IsXMaxDraw (  )  [virtual]
Bool_t TGo4Condition::IsXMeanDraw (  )  [virtual]
Bool_t TGo4Condition::IsXRMSDraw (  )  [virtual]
Bool_t TGo4Condition::IsYMaxDraw (  )  [virtual]
Bool_t TGo4Condition::IsYMeanDraw (  )  [virtual]
Bool_t TGo4Condition::IsYRMSDraw (  )  [virtual]
const char * TGo4Condition::MakeScript ( std::ostream &  out,
const char *  varname,
Option_t *  opt = "",
const char *  arrextraargs = 0 
) [protected]
void TGo4Condition::MarkReset ( Bool_t  on  )  [virtual]

defines if condition counters shall be reset in UpdateFrom method

Reimplemented in TGo4CondArray.

Definition at line 368 of file TGo4Condition.cxx.

References fbMarkReset.

Referenced by TGo4CondArray::MarkReset().

void TGo4Condition::Paint ( Option_t *  opt = ""  )  [virtual]

Display condition with plain root canvas and in go4 viewpanel

Definition at line 576 of file TGo4Condition.cxx.

References CreatePainter(), fbStreamedCondition, fxPainter, IsPainted(), TGo4ConditionPainter::PaintCondition(), TGo4ConditionPainter::PaintLabel(), and SetPainted().

Referenced by TGo4CondArrayPainter::PaintCondition().

void TGo4Condition::Pop (  )  [virtual]

Re-implement TObject method to pop all our views to front

Definition at line 620 of file TGo4Condition.cxx.

References TGo4LabelPainter::DisplayToFront(), and fxPainter.

void TGo4Condition::Print ( Option_t *  opt = ""  )  const [virtual]
void TGo4Condition::PrintBar (  )  [virtual]

Prints counters and bar.

Reimplemented in TGo4CondArray.

Definition at line 205 of file TGo4Condition.cxx.

References fiCounts, and fiTrueCounts.

Referenced by Print(), and TGo4CondArray::PrintBar().

void TGo4Condition::PrintCondition ( Bool_t  full = kTRUE  )  [virtual]

Prints counters and boolean members.

Reimplemented in TGo4CondArray, TGo4CounterCond, TGo4PolyCond, and TGo4WinCond.

Definition at line 180 of file TGo4Condition.cxx.

References fbEnabled, fbHistogramLink, fbResult, fbTrue, fiCounts, fiTrueCounts, and fxHistoName.

Referenced by TGo4CondArray::PrintCondition().

void TGo4Condition::ResetCounts (  )  [virtual]
void TGo4Condition::ResetLabel ( Option_t *  opt = "reset"  ) 

Will reset label position to defaults with other option than reset, just pop label to front

Definition at line 660 of file TGo4Condition.cxx.

References fxPainter, TGo4ConditionPainter::PaintLabel(), and TGo4LabelPainter::UnPaintLabel().

Referenced by TGo4WinCondView::ExecuteEvent(), TGo4PolyCondView::ExecuteEvent(), TGo4WinCondView::ResetLabel(), and TGo4PolyCondView::ResetLabel().

void TGo4Condition::SetCMaxDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetCounts ( Int_t  truecounts,
Int_t  counts 
) [virtual]

Set counters

Definition at line 163 of file TGo4Condition.cxx.

References fiCounts, fiTrueCounts, and GO4TRACE.

void TGo4Condition::SetCurrentIndex ( Int_t  ix  )  [virtual]

set index for array type subclasses

Reimplemented in TGo4CondArray.

Definition at line 349 of file TGo4Condition.cxx.

void TGo4Condition::SetDimension ( Int_t  d  )  [inline]

Definition at line 296 of file TGo4Condition.h.

References fiDim.

Referenced by TGo4WinCond::SetValues(), TGo4PolyCond::TGo4PolyCond(), and TGo4WinCond::UpdateFrom().

void TGo4Condition::SetFlags ( Bool_t  enabled,
Bool_t  lastresult,
Bool_t  markreset,
Bool_t  result,
Bool_t  truevalue,
Bool_t  falsevalue 
) [virtual]

Sets values of external boolean flags to internal variables. Overwritten in TGo4CondArray.

Definition at line 386 of file TGo4Condition.cxx.

References fbEnabled, fbFalse, fbLastResult, fbMarkReset, fbResult, and fbTrue.

void TGo4Condition::SetHistogram ( const char *  name  ) 
void TGo4Condition::SetHistogramLink ( Bool_t  on  ) 

Define if this condition has association with an analysis histogram

Definition at line 447 of file TGo4Condition.cxx.

References fbHistogramLink.

void TGo4Condition::SetIntDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetLabelDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetLabelNumFormat ( const char *  fmt  )  [virtual]

Definition at line 546 of file TGo4Condition.cxx.

References fxNumFormat.

Referenced by TGo4WinCondView::SetNumFormat().

void TGo4Condition::SetLast ( Bool_t  value  )  [inline]

Can be used in Test to store the result. Is retrieved by GetLast() without further test.

Definition at line 157 of file TGo4Condition.h.

References fbLastResult.

void TGo4Condition::SetLimitsDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetMultiEdit ( Bool_t  on  )  [inline]

Definition at line 293 of file TGo4Condition.h.

References fbMultiEdit.

void TGo4Condition::SetOwnedByEditor ( Bool_t  on  )  [inline]

Definition at line 299 of file TGo4Condition.h.

References fbOwnedByEditor.

Referenced by TGo4CondArrayPainter::PaintCondition().

void TGo4Condition::SetPainted ( Bool_t  on  )  [inline, protected]

Definition at line 364 of file TGo4Condition.h.

References fbIsPainted.

Referenced by Draw(), TGo4CondArray::Draw(), Paint(), and UnDraw().

void TGo4Condition::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 in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 568 of file TGo4Condition.cxx.

void TGo4Condition::SetUpdateEpsilon ( Double_t  val  )  [inline]

Configure graphical update tolerance for this condition individually. by default, update tolerance is set to static value fgdUPDATEEPSILON

Definition at line 240 of file TGo4Condition.h.

References fdUpdateEpsilon.

virtual void TGo4Condition::SetValues ( Double_t  low1,
Double_t  up1,
Double_t  low2,
Double_t  up2 
) [inline, virtual]

Reimplemented in TGo4CondArray, and TGo4WinCond.

Definition at line 106 of file TGo4Condition.h.

virtual void TGo4Condition::SetValues ( Double_t  low1,
Double_t  up1 
) [inline, virtual]

Reimplemented in TGo4CondArray, and TGo4WinCond.

Definition at line 105 of file TGo4Condition.h.

virtual void TGo4Condition::SetValues (  )  [inline, virtual]

Set values needed, i.e. limits for windows or cuts for polygons

Reimplemented in TGo4CounterCond.

Definition at line 104 of file TGo4Condition.h.

Referenced by TGo4CondArray::SetValues(), and TGo4ConditionEditor::UpdateLimits().

virtual void TGo4Condition::SetValues ( Double_t *  x,
Double_t *  y,
Int_t  len 
) [inline, virtual]

Reimplemented in TGo4PolyCond.

Definition at line 108 of file TGo4Condition.h.

virtual void TGo4Condition::SetValues ( TCutG *  newcut  )  [inline, virtual]

Reimplemented in TGo4CondArray, and TGo4PolyCond.

Definition at line 107 of file TGo4Condition.h.

void TGo4Condition::SetVisible ( Bool_t  on  )  [virtual]

Set/Unset visibility. Overloaded for subclasses!

Reimplemented in TGo4CondArray.

Definition at line 437 of file TGo4Condition.cxx.

References fbVisible.

Referenced by TGo4ConditionEditor::ChangeConditionProperty(), and TGo4CondArray::SetVisible().

void TGo4Condition::SetWorkHistogram ( TH1 *  histo  ) 

Set reference to work histogram for statistics functions. Note that this method does not change the histogram link definitions!

Definition at line 668 of file TGo4Condition.cxx.

References fxCutHis, and fxHisto.

Referenced by TGo4ViewPanel::CheckObjectsAssigments(), TGo4RootBrowserProxy::DrawCondition(), TGo4RootBrowserProxy::DrawPicture(), TGo4ViewPanel::PadClickedSlot(), TGo4CondArrayPainter::PaintCondition(), and TGo4ViewPanel::ProcessCanvasAdopt().

void TGo4Condition::SetXMaxDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetXMeanDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetXRMSDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetYMaxDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetYMeanDraw ( Bool_t  on  )  [virtual]
void TGo4Condition::SetYRMSDraw ( Bool_t  on  )  [virtual]
virtual Bool_t TGo4Condition::Test ( Double_t  x  )  [inline, virtual]

Reimplemented in TGo4CondArray, and TGo4WinCond.

Definition at line 100 of file TGo4Condition.h.

virtual Bool_t TGo4Condition::Test ( Bool_t  result  )  [inline, virtual]

Reimplemented in TGo4CounterCond.

Definition at line 101 of file TGo4Condition.h.

virtual Bool_t TGo4Condition::Test ( Double_t  x,
Double_t  y 
) [inline, virtual]

Reimplemented in TGo4CondArray, TGo4PolyCond, and TGo4WinCond.

Definition at line 99 of file TGo4Condition.h.

Bool_t TGo4Condition::Test (  )  [virtual]

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.

Definition at line 120 of file TGo4Condition.cxx.

References fiCounts.

Referenced by TGo4CondArray::Test(), and TGo4HistogramEntry::TestConditionNew().

Int_t TGo4Condition::TrueCounts (  )  [virtual]

Return number of true results of the Test method call.

Reimplemented in TGo4CondArray.

Definition at line 150 of file TGo4Condition.cxx.

References fiTrueCounts, and GO4TRACE.

Referenced by MakeScript(), Print(), TGo4ConditionInfo::RefreshWidget(), and TGo4ConditionEditor::RefreshWidget().

void TGo4Condition::UnDraw ( Option_t *  opt = ""  )  [virtual]

Friends And Related Function Documentation

friend class TGo4CondArray [friend]

Definition at line 49 of file TGo4Condition.h.


Member Data Documentation

Bool_t TGo4Condition::fbCMaxDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 445 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsCMaxDraw(), SaveLabelStyle(), SetCMaxDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbEnabled [private]

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.

Definition at line 396 of file TGo4Condition.h.

Referenced by Disable(), Enable(), GetFlags(), IsEnabled(), Print(), PrintCondition(), SetFlags(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fbFalse [private]

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

Definition at line 384 of file TGo4Condition.h.

Referenced by GetFlags(), Invert(), IsFalse(), SetFlags(), TGo4Condition(), and UpdateFrom().

is true if this condition has link to a histogram name

Definition at line 409 of file TGo4Condition.h.

Referenced by IsHistogramLink(), PrintCondition(), SetHistogram(), SetHistogramLink(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fbIntDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 424 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsIntDraw(), SaveLabelStyle(), SetIntDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbIsPainted [private]

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

Definition at line 459 of file TGo4Condition.h.

Referenced by IsPainted(), SetPainted(), and TGo4Condition().

Bool_t TGo4Condition::fbLabelDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 418 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsLabelDraw(), SaveLabelStyle(), SetLabelDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbLastResult [private]

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

Definition at line 378 of file TGo4Condition.h.

Referenced by GetFlags(), GetLast(), SetFlags(), and SetLast().

Bool_t TGo4Condition::fbLimitsDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 421 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsLimitsDraw(), SaveLabelStyle(), and SetLimitsDraw().

Bool_t TGo4Condition::fbMarkReset [private]

Definition at line 374 of file TGo4Condition.h.

Referenced by GetFlags(), MarkReset(), SetFlags(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fbMultiEdit [private]

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

Definition at line 403 of file TGo4Condition.h.

Referenced by IsMultiEdit(), SetMultiEdit(), TGo4Condition(), and UpdateFrom().

Flag to suppress interactive deletion of condition.

Definition at line 462 of file TGo4Condition.h.

Referenced by IsOwnedByEditor(), SetOwnedByEditor(), and TGo4Condition().

Bool_t TGo4Condition::fbResult [private]

If fbEnabled is false, return this as result.

Definition at line 399 of file TGo4Condition.h.

Referenced by Disable(), FixedResult(), GetFlags(), Print(), PrintCondition(), SetFlags(), TGo4Condition(), and UpdateFrom().

This allows to treat conditions streamed into pad

Definition at line 465 of file TGo4Condition.h.

Referenced by Paint(), and TGo4Condition().

Bool_t TGo4Condition::fbTrue [private]

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

Definition at line 381 of file TGo4Condition.h.

Referenced by GetFlags(), Invert(), IsTrue(), Print(), PrintCondition(), SetFlags(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fbVisible [private]

Property to store visibility of condition on display

Definition at line 406 of file TGo4Condition.h.

Referenced by IsVisible(), SetVisible(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fbXMaxDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 439 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsXMaxDraw(), SaveLabelStyle(), SetXMaxDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbXMeanDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 427 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsXMeanDraw(), SaveLabelStyle(), SetXMeanDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbXRMSDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 430 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsXRMSDraw(), SaveLabelStyle(), SetXRMSDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbYMaxDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 442 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsYMaxDraw(), SaveLabelStyle(), SetYMaxDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbYMeanDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 433 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsYMeanDraw(), SaveLabelStyle(), SetYMeanDraw(), and UpdateFrom().

Bool_t TGo4Condition::fbYRMSDraw [private]

If true, draw corresponding value as label on working pad

Definition at line 436 of file TGo4Condition.h.

Referenced by InitLabelStyle(), IsYRMSDraw(), SaveLabelStyle(), SetYRMSDraw(), and UpdateFrom().

Double_t TGo4Condition::fdUpdateEpsilon [private]

Precision for the check if graphical representation change requires update

Definition at line 415 of file TGo4Condition.h.

Referenced by GetUpdateEpsilon(), SetUpdateEpsilon(), TGo4Condition(), and UpdateFrom().

Bool_t TGo4Condition::fgbCMAXDRAW = kTRUE [static]
Bool_t TGo4Condition::fgbINTDRAW = kTRUE [static]

default setting for all conditions for label draw integral flag.

Definition at line 326 of file TGo4Condition.h.

Referenced by TGo4QSettings::getBasicSettings(), InitLabelStyle(), SaveLabelStyle(), TGo4QSettings::setBasicSettings(), TGo4MarkerSettings::setFlags(), and TGo4MarkerSettings::TGo4MarkerSettings().

Bool_t TGo4Condition::fgbLABELDRAW = kTRUE [static]

default setting for all conditions for label draw on/off flag.

Definition at line 320 of file TGo4Condition.h.

Referenced by TGo4QSettings::getBasicSettings(), InitLabelStyle(), SaveLabelStyle(), TGo4QSettings::setBasicSettings(), TGo4MarkerSettings::setFlags(), and TGo4MarkerSettings::TGo4MarkerSettings().

Bool_t TGo4Condition::fgbLIMITSDRAW = kTRUE [static]

default setting for all conditions for label draw limits flag.

Definition at line 323 of file TGo4Condition.h.

Referenced by TGo4QSettings::getBasicSettings(), InitLabelStyle(), SaveLabelStyle(), TGo4QSettings::setBasicSettings(), TGo4MarkerSettings::setFlags(), and TGo4MarkerSettings::TGo4MarkerSettings().

Bool_t TGo4Condition::fgbXMAXDRAW = kTRUE [static]
Bool_t TGo4Condition::fgbXMEANDRAW = kTRUE [static]
Bool_t TGo4Condition::fgbXRMSDRAW = kTRUE [static]
Bool_t TGo4Condition::fgbYMAXDRAW = kFALSE [static]
Bool_t TGo4Condition::fgbYMEANDRAW = kFALSE [static]
Bool_t TGo4Condition::fgbYRMSDRAW = kFALSE [static]
const Double_t TGo4Condition::fgdUPDATEEPSILON = 0.01 [static]

default value for graphical update tolerance.

Definition at line 245 of file TGo4Condition.h.

Referenced by TGo4Condition().

TString TGo4Condition::fgxNUMFORMAT = "%.4E" [static]

default setting for all conditions with format string for numbers.

Definition at line 350 of file TGo4Condition.h.

Referenced by TGo4QSettings::getBasicSettings(), InitLabelStyle(), SaveLabelStyle(), TGo4QSettings::setBasicSettings(), TGo4MarkerSettings::setFlags(), and TGo4MarkerSettings::TGo4MarkerSettings().

Int_t TGo4Condition::fiCounts [private]

Counts the number of calls of the Test method.

Definition at line 390 of file TGo4Condition.h.

Referenced by Counts(), IncCounts(), PrintBar(), PrintCondition(), ResetCounts(), SetCounts(), Test(), TGo4Condition(), and UpdateFrom().

Int_t TGo4Condition::fiDim [private]

Dimension (1 or 2).

Definition at line 372 of file TGo4Condition.h.

Referenced by GetDimension(), SetDimension(), TGo4Condition(), and UpdateFrom().

Int_t TGo4Condition::fiIsChanged [private]

Counter indicate how many times condition was changed from graphical view

Definition at line 455 of file TGo4Condition.h.

Referenced by IsChanged(), and SetChanged().

Int_t TGo4Condition::fiTrueCounts [private]

Counts the number of calls of the Test method with true result.

Definition at line 387 of file TGo4Condition.h.

Referenced by IncTrueCounts(), PrintBar(), PrintCondition(), ResetCounts(), SetCounts(), TGo4Condition(), TrueCounts(), and UpdateFrom().

TH1* TGo4Condition::fxHisto [private]

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

Definition at line 452 of file TGo4Condition.h.

Referenced by GetWorkHistogram(), and SetWorkHistogram().

TString TGo4Condition::fxHistoName [private]

contains associated histogram name

Definition at line 412 of file TGo4Condition.h.

Referenced by GetLinkedHistogram(), PrintCondition(), SetHistogram(), and UpdateFrom().

TString TGo4Condition::fxNumFormat [private]

format string for all label numbers.

Definition at line 448 of file TGo4Condition.h.

Referenced by GetLabelNumFormat(), InitLabelStyle(), SaveLabelStyle(), and SetLabelNumFormat().

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.

Definition at line 357 of file TGo4Condition.h.

Referenced by DeletePainter(), Paint(), Pop(), ResetLabel(), TGo4WinCond::SetPainter(), TGo4PolyCond::SetPainter(), TGo4CondArray::SetPainter(), UnDraw(), TGo4CondArray::~TGo4CondArray(), and ~TGo4Condition().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines