Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4WinCond Class Reference

#include <TGo4WinCond.h>

Inheritance diagram for TGo4WinCond:

TGo4Condition List of all members.

Public Member Functions

 TGo4WinCond ()
 TGo4WinCond (const char *name, const char *title="Go4 window condition")
virtual ~TGo4WinCond ()
virtual TGo4ConditionPainterCreatePainter ()
 Factory method to generate the subclass implentation for painter.
virtual void SetPainter (TGo4ConditionPainter *painter)
 Replace default painter of this condition by external one.
virtual void SetValues (Double_t low1, Double_t up1)
 Set limits and internal dimension to 1.
virtual void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2)
 Set limits and internal dimension to 2.
virtual Bool_t Test (Double_t v1)
 Test v1 versus first limits: includes lower, excludes upper.
virtual Bool_t Test (Double_t v1, Double_t v2)
 Test v1 versus first limits and v2 versus second limits Includes lower, excludes upper.
virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 Returns limits.
virtual Double_t GetXLow ()
virtual Double_t GetXUp ()
virtual Double_t GetYLow ()
virtual Double_t GetYUp ()
void PrintCondition (Bool_t limits)
 Printout.
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
 Copy values from cond to this.
virtual Double_t GetIntegral (TH1 *histo, Option_t *opt="")
 Calculate value for histogram inside condition limits.
virtual Double_t GetMean (TH1 *histo, Int_t axis=1)
 Calculate value for histogram inside condition limits.
virtual Double_t GetRMS (TH1 *histo, Int_t axis=1)
 Calculate value for histogram inside condition limits.
virtual Double_t GetXMax (TH1 *histo)
 Calculate value for histogram inside condition limits.
virtual Double_t GetYMax (TH1 *histo)
 Calculate value for histogram inside condition limits.
virtual Double_t GetCMax (TH1 *histo)
 Calculate value for histogram inside condition limits.
virtual Bool_t IsPolygonType ()
virtual Int_t GetMemorySize ()

Private Member Functions

void SetHistogramRanges (TH1 *histo)
 Remember ranges of current histo and set range to active window.
void RestoreHistogramRanges (TH1 *histo)
 Restore original ranges of current histo.

Private Attributes

Double_t fLow1
 inclusive lower limit
Double_t fUp1
 exclusive upper limit
Double_t fLow2
 inclusive lower limit
Double_t fUp2
 exclusive upper limit
Int_t fiSaveXMin
 Saved minimum x-axis bin number for active histogram range.
Int_t fiSaveXMax
 Saved maximum x-axis bin number for active histogram range.
Int_t fiSaveYMin
 Saved minimum y-axis bin number for active histogram range.
Int_t fiSaveYMax
 Saved maximum y-axis bin number for active histogram range.

Constructor & Destructor Documentation

TGo4WinCond::TGo4WinCond  ) 
 

Definition at line 29 of file TGo4WinCond.cxx.

References TRACE.

TGo4WinCond::TGo4WinCond const char *  name,
const char *  title = "Go4 window condition"
 

Definition at line 43 of file TGo4WinCond.cxx.

References TRACE.

TGo4WinCond::~TGo4WinCond  )  [virtual]
 

Definition at line 58 of file TGo4WinCond.cxx.

References TRACE.


Member Function Documentation

TGo4ConditionPainter * TGo4WinCond::CreatePainter  )  [virtual]
 

Factory method to generate the subclass implentation for painter.

Reimplemented from TGo4Condition.

Definition at line 310 of file TGo4WinCond.cxx.

References TGo4ConditionPainter::SetCondition().

void TGo4WinCond::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 292 of file TGo4WinCond.cxx.

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

void TGo4WinCond::SetValues Double_t  low1,
Double_t  up1
[virtual]
 

Set limits and internal dimension to 1.

Reimplemented from TGo4Condition.

Definition at line 99 of file TGo4WinCond.cxx.

References fLow1, fUp1, and TGo4Condition::SetDimension().

Referenced by TGo4WinCondView::ExecuteEvent(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4WinCondPainter::PaintCondition(), TGo4WinCondView::SetToLimits(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

void TGo4WinCond::SetValues Double_t  low1,
Double_t  up1,
Double_t  low2,
Double_t  up2
[virtual]
 

Set limits and internal dimension to 2.

Reimplemented from TGo4Condition.

Definition at line 90 of file TGo4WinCond.cxx.

References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::SetDimension().

Bool_t TGo4WinCond::Test Double_t  v1  )  [virtual]
 

Test v1 versus first limits: includes lower, excludes upper.

Reimplemented from TGo4Condition.

Definition at line 78 of file TGo4WinCond.cxx.

References TGo4Condition::FixedResult(), fLow1, fUp1, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().

Referenced by TXXXProc::BuildEvent(), TXXXAnlProc::XXXEventAnalysis(), TXXXUnpackProc::XXXUnpack(), and TYYYUnpackProc::YYYUnpack().

Bool_t TGo4WinCond::Test Double_t  v1,
Double_t  v2
[virtual]
 

Test v1 versus first limits and v2 versus second limits Includes lower, excludes upper.

Reimplemented from TGo4Condition.

Definition at line 64 of file TGo4WinCond.cxx.

References TGo4Condition::FixedResult(), fLow1, fLow2, fUp1, fUp2, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().

void TGo4WinCond::GetValues Int_t &  dim,
Double_t &  x1,
Double_t &  y1,
Double_t &  x2,
Double_t &  y2
[virtual]
 

Returns limits.

Reimplemented from TGo4Condition.

Definition at line 106 of file TGo4WinCond.cxx.

References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::GetDimension().

Referenced by TGo4WinCondView::ExecuteEvent(), TGo4WinCondPainter::PaintCondition(), and TGo4ConditionPainter::PaintLabel().

Double_t TGo4WinCond::GetXLow  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 115 of file TGo4WinCond.cxx.

References fLow1.

Double_t TGo4WinCond::GetXUp  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 120 of file TGo4WinCond.cxx.

References fUp1.

Double_t TGo4WinCond::GetYLow  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 125 of file TGo4WinCond.cxx.

References fLow2.

Double_t TGo4WinCond::GetYUp  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 130 of file TGo4WinCond.cxx.

References fUp2.

void TGo4WinCond::PrintCondition Bool_t  limits  )  [virtual]
 

Printout.

If limits is true, print limits too.

Reimplemented from TGo4Condition.

Definition at line 140 of file TGo4WinCond.cxx.

References fLow1, fLow2, fUp1, fUp2, TGo4Condition::GetDimension(), and TGo4Condition::PrintCondition().

Referenced by TGo4CondArray::PrintCondition(), TXXXUnpackProc::TXXXUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), TXXXUnpackProc::~TXXXUnpackProc(), and TYYYUnpackProc::~TYYYUnpackProc().

Bool_t TGo4WinCond::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 279 of file TGo4WinCond.cxx.

References fLow1, fLow2, fUp1, fUp2, TGo4Condition::SetDimension(), and TGo4Condition::UpdateFrom().

Double_t TGo4WinCond::GetIntegral TH1 *  histo,
Option_t *  opt = ""
[virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 151 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Double_t TGo4WinCond::GetMean TH1 *  histo,
Int_t  axis = 1
[virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 161 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Double_t TGo4WinCond::GetRMS TH1 *  histo,
Int_t  axis = 1
[virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 170 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Double_t TGo4WinCond::GetXMax TH1 *  histo  )  [virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 179 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Double_t TGo4WinCond::GetYMax TH1 *  histo  )  [virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 203 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Double_t TGo4WinCond::GetCMax TH1 *  histo  )  [virtual]
 

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 226 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Bool_t TGo4WinCond::IsPolygonType  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 135 of file TGo4WinCond.cxx.

Int_t TGo4WinCond::GetMemorySize  )  [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 317 of file TGo4WinCond.cxx.

void TGo4WinCond::SetHistogramRanges TH1 *  histo  )  [private]
 

Remember ranges of current histo and set range to active window.

Definition at line 236 of file TGo4WinCond.cxx.

References fiSaveXMax, fiSaveXMin, fiSaveYMax, fiSaveYMin, fLow1, fLow2, fUp1, and fUp2.

Referenced by GetCMax(), GetIntegral(), GetMean(), GetRMS(), GetXMax(), and GetYMax().

void TGo4WinCond::RestoreHistogramRanges TH1 *  histo  )  [private]
 

Restore original ranges of current histo.

Definition at line 264 of file TGo4WinCond.cxx.

References fiSaveXMax, fiSaveXMin, fiSaveYMax, and fiSaveYMin.

Referenced by GetCMax(), GetIntegral(), GetMean(), GetRMS(), GetXMax(), and GetYMax().


Member Data Documentation

Double_t TGo4WinCond::fLow1 [private]
 

inclusive lower limit

Definition at line 98 of file TGo4WinCond.h.

Referenced by GetValues(), GetXLow(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().

Double_t TGo4WinCond::fUp1 [private]
 

exclusive upper limit

Definition at line 101 of file TGo4WinCond.h.

Referenced by GetValues(), GetXUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().

Double_t TGo4WinCond::fLow2 [private]
 

inclusive lower limit

Definition at line 104 of file TGo4WinCond.h.

Referenced by GetValues(), GetYLow(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().

Double_t TGo4WinCond::fUp2 [private]
 

exclusive upper limit

Definition at line 107 of file TGo4WinCond.h.

Referenced by GetValues(), GetYUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().

Int_t TGo4WinCond::fiSaveXMin [private]
 

Saved minimum x-axis bin number for active histogram range.

Definition at line 110 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

Int_t TGo4WinCond::fiSaveXMax [private]
 

Saved maximum x-axis bin number for active histogram range.

Definition at line 113 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

Int_t TGo4WinCond::fiSaveYMin [private]
 

Saved minimum y-axis bin number for active histogram range.

Definition at line 116 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

Int_t TGo4WinCond::fiSaveYMax [private]
 

Saved maximum y-axis bin number for active histogram range.

Definition at line 119 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:30 2008 for Go4-v3.04-1 by  doxygen 1.4.2