Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4WinCond Class Reference

#include <TGo4WinCond.h>

Inheritance diagram for TGo4WinCond:

TGo4Condition List of all members.

Public Methods

 TGo4WinCond ()
virtual ~TGo4WinCond ()
 TGo4WinCond (const Text_t *name)
 TGo4WinCond (const Text_t *name, const Text_t *title)
virtual TGo4ConditionPainterCreatePainter ()
 Factory method to generate the subclass implentation for painter. More...

virtual void SetPainter (TGo4ConditionPainter *painter)
 Replace default painter of this condition by external one. More...

void SetValues (Double_t low1, Double_t up1)
 Set limits and internal dimension to 1. More...

void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2)
 Set limits and internal dimension to 2. More...

Bool_t Test (Double_t v1)
 Test v1 versus first limits: includes lower, excludes upper. More...

Bool_t Test (Double_t v1, Double_t v2)
 Test v1 versus first limits and v2 versus second limits Includes lower, excludes upper. More...

virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 Returns limits. More...

virtual Double_t GetXLow ()
virtual Double_t GetXUp ()
virtual Double_t GetYLow ()
virtual Double_t GetYUp ()
void PrintCondition (Bool_t limits)
 Printout. More...

Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
 Copy values from cond to this. More...

virtual Double_t GetIntegral (TH1 *histo, Option_t *opt="")
 Calculate value for histogram inside condition limits. More...

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

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

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

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

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

virtual Bool_t IsPolygonType ()

Private Methods

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

void RestoreHistogramRanges (TH1 *histo)
 Restore original ranges of current histo. More...


Private Attributes

Double_t fLow1
 inclusive lower limit. More...

Double_t fUp1
 exclusive upper limit. More...

Double_t fLow2
 inclusive lower limit. More...

Double_t fUp2
 exclusive upper limit. More...

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

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

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

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


Constructor & Destructor Documentation

TGo4WinCond::TGo4WinCond  
 

Definition at line 42 of file TGo4WinCond.cxx.

References TRACE.

TGo4WinCond::~TGo4WinCond   [virtual]
 

Definition at line 50 of file TGo4WinCond.cxx.

References TRACE.

TGo4WinCond::TGo4WinCond const Text_t *    name
 

Definition at line 34 of file TGo4WinCond.cxx.

References TRACE.

TGo4WinCond::TGo4WinCond const Text_t *    name,
const Text_t *    title
 

Definition at line 26 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 306 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 288 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 93 of file TGo4WinCond.cxx.

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

Referenced by TGo4WindowEditSlots::CreateNewCondition(), TGo4WinCondView::ExecuteEvent(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4PreviewPanelSlots::MouseClick(), 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 82 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 70 of file TGo4WinCond.cxx.

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

Referenced by TXXXProc::Event(), 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 56 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 102 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 110 of file TGo4WinCond.cxx.

References fLow1.

Referenced by TGo4PreviewPanelSlots::MouseClick().

Double_t TGo4WinCond::GetXUp   [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 114 of file TGo4WinCond.cxx.

References fUp1.

Double_t TGo4WinCond::GetYLow   [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 118 of file TGo4WinCond.cxx.

References fLow2.

Referenced by TGo4PreviewPanelSlots::MouseClick().

Double_t TGo4WinCond::GetYUp   [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 122 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 132 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 271 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 143 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 153 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 162 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 171 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 195 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 218 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Bool_t TGo4WinCond::IsPolygonType   [virtual]
 

Reimplemented from TGo4Condition.

Definition at line 127 of file TGo4WinCond.cxx.

void TGo4WinCond::SetHistogramRanges TH1 *    histo [private]
 

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

Definition at line 228 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 256 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 99 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 103 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 107 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 111 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 115 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 118 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 121 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 124 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:57:01 2005 for Go4-v2.10-5 by doxygen1.2.15