#include <TGo4WinCond.h>
Public Member Functions | |
TGo4WinCond () | |
TGo4WinCond (const char *name, const char *title="Go4 window condition") | |
virtual | ~TGo4WinCond () |
virtual TGo4ConditionPainter * | CreatePainter () |
virtual void | SetPainter (TGo4ConditionPainter *painter) |
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 Bool_t | Test (Double_t v1) |
virtual Bool_t | Test (Double_t v1, Double_t v2) |
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 void | PrintCondition (Bool_t full=kTRUE) |
Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) |
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 Bool_t | IsPolygonType () |
virtual Int_t | GetMemorySize () |
virtual void | SavePrimitive (std::ostream &fs, Option_t *="") |
Private Member Functions | |
void | SetHistogramRanges (TH1 *histo) |
void | RestoreHistogramRanges (TH1 *histo) |
Private Attributes | |
Double_t | fLow1 |
Double_t | fUp1 |
Double_t | fLow2 |
Double_t | fUp2 |
Int_t | fiSaveXMin |
Int_t | fiSaveXMax |
Int_t | fiSaveYMin |
Int_t | fiSaveYMax |
Definition at line 21 of file TGo4WinCond.h.
TGo4WinCond::TGo4WinCond | ( | ) |
Definition at line 26 of file TGo4WinCond.cxx.
References GO4TRACE.
TGo4WinCond::TGo4WinCond | ( | const char * | name, | |
const char * | title = "Go4 window condition" | |||
) |
Definition at line 40 of file TGo4WinCond.cxx.
References GO4TRACE.
TGo4WinCond::~TGo4WinCond | ( | ) | [virtual] |
Definition at line 55 of file TGo4WinCond.cxx.
References GO4TRACE.
TGo4ConditionPainter * TGo4WinCond::CreatePainter | ( | ) | [virtual] |
Factory method to generate the subclass implementation for painter
Reimplemented from TGo4Condition.
Definition at line 291 of file TGo4WinCond.cxx.
References TGo4ConditionPainter::SetCondition().
Double_t TGo4WinCond::GetCMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 207 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
Double_t TGo4WinCond::GetIntegral | ( | TH1 * | histo, | |
Option_t * | opt = "" | |||
) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 129 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 139 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
Int_t TGo4WinCond::GetMemorySize | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 298 of file TGo4WinCond.cxx.
Double_t TGo4WinCond::GetRMS | ( | TH1 * | histo, | |
Int_t | axis = 1 | |||
) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 149 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
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 103 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::GetDimension().
Referenced by TGo4WinCondView::ExecuteEvent(), TGo4WinCondPainter::PaintCondition(), TGo4ConditionPainter::PaintLabel(), TGo4ConditionInfo::RefreshWidget(), and SavePrimitive().
virtual Double_t TGo4WinCond::GetXLow | ( | ) | [inline, virtual] |
Reimplemented from TGo4Condition.
Definition at line 60 of file TGo4WinCond.h.
References fLow1.
Referenced by TGo4ViewPanel::PadClickedSlot().
Double_t TGo4WinCond::GetXMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 159 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
virtual Double_t TGo4WinCond::GetXUp | ( | ) | [inline, virtual] |
virtual Double_t TGo4WinCond::GetYLow | ( | ) | [inline, virtual] |
Reimplemented from TGo4Condition.
Definition at line 62 of file TGo4WinCond.h.
References fLow2.
Referenced by TGo4ViewPanel::PadClickedSlot().
Double_t TGo4WinCond::GetYMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 183 of file TGo4WinCond.cxx.
References RestoreHistogramRanges(), and SetHistogramRanges().
virtual Double_t TGo4WinCond::GetYUp | ( | ) | [inline, virtual] |
Bool_t TGo4WinCond::IsPolygonType | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 112 of file TGo4WinCond.cxx.
void TGo4WinCond::PrintCondition | ( | Bool_t | full = kTRUE |
) | [virtual] |
Printout. If limits is true, print limits too.
Reimplemented from TGo4Condition.
Definition at line 117 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::GetDimension().
Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXUnpackProc::TXXXUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), TXXXAnlProc::~TXXXAnlProc(), TXXXUnpackProc::~TXXXUnpackProc(), and TYYYUnpackProc::~TYYYUnpackProc().
void TGo4WinCond::RestoreHistogramRanges | ( | TH1 * | histo | ) | [private] |
Restore original ranges of current histo.
Definition at line 245 of file TGo4WinCond.cxx.
References fiSaveXMax, fiSaveXMin, fiSaveYMax, and fiSaveYMin.
Referenced by GetCMax(), GetIntegral(), GetMean(), GetRMS(), GetXMax(), and GetYMax().
void TGo4WinCond::SavePrimitive | ( | std::ostream & | fs, | |
Option_t * | opt = "" | |||
) | [virtual] |
Standard way to store parameter in form of macro
Definition at line 306 of file TGo4WinCond.cxx.
References GetValues(), and TGo4Condition::MakeScript().
void TGo4WinCond::SetHistogramRanges | ( | TH1 * | histo | ) | [private] |
Remember ranges of current histo and set range to active window.
Definition at line 217 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::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 273 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 96 of file TGo4WinCond.cxx.
References fLow1, fUp1, and TGo4Condition::SetDimension().
Referenced by TGo4WinCondView::ExecuteEvent(), TGo4CreateNewCondition::MakeCondition(), TGo4Analysis::MakeWinCond(), TGo4AnalysisObjectManager::MakeWindowCond(), TGo4ViewPanel::PadClickedSlot(), TGo4WinCondPainter::PaintCondition(), and TGo4WinCondView::SetToLimits().
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 87 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, and TGo4Condition::SetDimension().
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 61 of file TGo4WinCond.cxx.
References TGo4Condition::FixedResult(), fLow1, fLow2, fUp1, fUp2, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().
Bool_t TGo4WinCond::Test | ( | Double_t | v1 | ) | [virtual] |
Test v1 versus first limits: includes lower, excludes upper.
Reimplemented from TGo4Condition.
Definition at line 75 of file TGo4WinCond.cxx.
References TGo4Condition::FixedResult(), fLow1, fUp1, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsEnabled(), TGo4Condition::IsFalse(), and TGo4Condition::IsTrue().
Referenced by TYYYUnpackProc::BuildEvent(), TXXXUnpackProc::BuildEvent(), TXXXAnlProc::BuildEvent(), and TXXXProc::BuildEvent().
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 260 of file TGo4WinCond.cxx.
References fLow1, fLow2, fUp1, fUp2, TGo4Condition::GetValues(), TGo4Condition::SetDimension(), and TGo4Condition::UpdateFrom().
Int_t TGo4WinCond::fiSaveXMax [private] |
Saved maximum x-axis bin number for active histogram range.
Definition at line 114 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
Int_t TGo4WinCond::fiSaveXMin [private] |
Saved minimum x-axis bin number for active histogram range.
Definition at line 111 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 120 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 117 of file TGo4WinCond.h.
Referenced by RestoreHistogramRanges(), and SetHistogramRanges().
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::fLow2 [private] |
inclusive lower limit
Definition at line 105 of file TGo4WinCond.h.
Referenced by GetValues(), GetYLow(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().
Double_t TGo4WinCond::fUp1 [private] |
exclusive upper limit
Definition at line 102 of file TGo4WinCond.h.
Referenced by GetValues(), GetXUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().
Double_t TGo4WinCond::fUp2 [private] |
exclusive upper limit
Definition at line 108 of file TGo4WinCond.h.
Referenced by GetValues(), GetYUp(), PrintCondition(), SetHistogramRanges(), SetValues(), Test(), and UpdateFrom().