#include <TGo4CondArray.h>
Public Member Functions | |
TGo4CondArray () | |
TGo4CondArray (const char *name, Int_t elements, const char *type) | |
TGo4CondArray (const char *name, Int_t elements, Int_t contype) | |
virtual | ~TGo4CondArray () |
virtual TGo4ConditionPainter * | CreatePainter () |
virtual void | Draw (Option_t *opt="") |
virtual void | SetPainter (TGo4ConditionPainter *painter) |
virtual TGo4Condition * | GetActiveCondition () |
TGo4Condition * | At (Int_t i) |
TGo4WinCond * | Win (Int_t i) |
TGo4PolyCond * | Poly (Int_t i) |
TGo4Condition * | operator[] (Int_t i) |
virtual Bool_t | Test (Double_t x, Double_t y) |
virtual Bool_t | Test (Double_t x) |
virtual Double_t | GetXLow () |
virtual Double_t | GetXUp () |
virtual Double_t | GetYLow () |
virtual Double_t | GetYUp () |
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) |
void | PrintCondition (Bool_t points) |
virtual void | PrintBar () |
virtual Int_t | GetNumberOfConditions () |
Int_t | GetNumber () const |
const char * | GetType () const |
void | GetType (Int_t &type) const |
virtual void | Enable () |
virtual void | Disable (Bool_t result) |
virtual void | Invert (Bool_t on) |
virtual void | MarkReset (Bool_t on) |
virtual void | ResetCounts () |
virtual Int_t | Counts () |
virtual Int_t | TrueCounts () |
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 () |
virtual void | SetChanged (Bool_t on) |
virtual Int_t | IsChanged () |
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 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 Bool_t | IsArrayType () |
virtual void | SetCurrentIndex (Int_t ix) |
virtual Int_t | GetCurrentIndex () |
virtual Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) |
virtual Int_t | GetMemorySize () |
virtual void | SavePrimitive (std::ostream &fs, Option_t *="") |
Private Attributes | |
TObjArray * | condarr |
Int_t | fiNumCond |
Int_t | fiType |
Int_t | fiSelectedCond |
Definition at line 23 of file TGo4CondArray.h.
TGo4CondArray::TGo4CondArray | ( | ) |
Definition at line 52 of file TGo4CondArray.cxx.
TGo4CondArray::TGo4CondArray | ( | const char * | name, | |
Int_t | elements, | |||
const char * | type | |||
) |
Constructor. type can be "TGo4WinCond" or "TGo4PolyCond"
Definition at line 86 of file TGo4CondArray.cxx.
TGo4CondArray::TGo4CondArray | ( | const char * | name, | |
Int_t | elements, | |||
Int_t | contype | |||
) |
Constructor. contype can be kGO4CONDWINDOW or kGO4CONDPOLYGON
Definition at line 61 of file TGo4CondArray.cxx.
References condarr, fiNumCond, fiType, kGO4CONDPOLYGON, and kGO4CONDWINDOW.
TGo4CondArray::~TGo4CondArray | ( | ) | [virtual] |
Definition at line 107 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::fxPainter.
TGo4Condition * TGo4CondArray::At | ( | Int_t | i | ) |
Returns condition object i from object array. See also Poly and Win.
Definition at line 46 of file TGo4CondArray.cxx.
References condarr.
Referenced by Counts(), Disable(), Draw(), Enable(), GetActiveCondition(), GetCMax(), GetFlags(), GetIntegral(), GetMean(), GetMemorySize(), GetRMS(), TGo4ViewPanel::GetSelectedSlot(), GetXLow(), GetXMax(), GetXUp(), GetYLow(), GetYMax(), GetYUp(), Invert(), IsCMaxDraw(), IsIntDraw(), IsLabelDraw(), IsLimitsDraw(), IsPolygonType(), IsVisible(), IsXMaxDraw(), IsXMeanDraw(), IsXRMSDraw(), IsYMaxDraw(), IsYMeanDraw(), IsYRMSDraw(), TGo4CreateNewCondition::MakeCondition(), MarkReset(), TGo4CondArrayPainter::PaintCondition(), Poly(), TGo4ViewPanel::RefreshButtons(), ResetCounts(), SavePrimitive(), TGo4ConditionEditor::SelectedCondition(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), TrueCounts(), TGo4CondArrayPainter::UnPaintCondition(), and Win().
Int_t TGo4CondArray::Counts | ( | ) | [virtual] |
Return number of calls of the Test method. For complete array (multi edit mode) or for currently selected condition (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 344 of file TGo4CondArray.cxx.
References At(), TGo4Condition::Counts(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
Referenced by TrueCounts().
TGo4ConditionPainter * TGo4CondArray::CreatePainter | ( | ) | [virtual] |
Factory method to generate the subclass implementation for painter
Reimplemented from TGo4Condition.
Definition at line 1089 of file TGo4CondArray.cxx.
References TGo4ConditionPainter::SetCondition().
void TGo4CondArray::Disable | ( | Bool_t | result | ) | [virtual] |
Calls Disable for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 241 of file TGo4CondArray.cxx.
References At(), condarr, TGo4Condition::Disable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
void TGo4CondArray::Draw | ( | Option_t * | opt = "" |
) | [virtual] |
Reimplement Draw to set painted flag for all array conditions
Reimplemented from TGo4Condition.
Definition at line 1057 of file TGo4CondArray.cxx.
References At(), GetNumber(), TGo4Condition::IsPainted(), and TGo4Condition::SetPainted().
void TGo4CondArray::Enable | ( | ) | [virtual] |
Calls Enable for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 222 of file TGo4CondArray.cxx.
References At(), condarr, TGo4Condition::Enable(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
TGo4Condition * TGo4CondArray::GetActiveCondition | ( | ) | [virtual] |
Access to the currently selected condition.
Reimplemented from TGo4Condition.
Definition at line 998 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetCMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 975 of file TGo4CondArray.cxx.
References At(), condarr, TGo4Condition::GetCMax(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
Int_t TGo4CondArray::GetCurrentIndex | ( | ) | [virtual] |
get index for array type subclasses
Reimplemented from TGo4Condition.
Definition at line 1051 of file TGo4CondArray.cxx.
References fiSelectedCond.
Referenced by Counts(), Disable(), Enable(), GetActiveCondition(), GetCMax(), GetFlags(), GetIntegral(), GetMean(), GetRMS(), GetXLow(), GetXMax(), GetXUp(), GetYLow(), GetYMax(), GetYUp(), Invert(), IsCMaxDraw(), IsIntDraw(), IsLabelDraw(), IsLimitsDraw(), IsPolygonType(), IsVisible(), IsXMaxDraw(), IsXMeanDraw(), IsXRMSDraw(), IsYMaxDraw(), IsYMeanDraw(), IsYRMSDraw(), MarkReset(), TGo4CondArrayPainter::PaintCondition(), ResetCounts(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), and TrueCounts().
void TGo4CondArray::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.
Reimplemented from TGo4Condition.
Definition at line 300 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::GetFlags(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::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 from TGo4Condition.
Definition at line 890 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::GetIntegral(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetMean | ( | TH1 * | histo, | |
Int_t | axis = 1 | |||
) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 911 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::GetMean(), and TGo4Condition::IsMultiEdit().
Int_t TGo4CondArray::GetMemorySize | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 1096 of file TGo4CondArray.cxx.
References At(), condarr, TGo4Condition::GetMemorySize(), and GetNumberOfConditions().
Int_t TGo4CondArray::GetNumber | ( | ) | const |
Returns number of conditions in array. Same as GetNumberOfConditions, but kept for backward compatibility
Definition at line 204 of file TGo4CondArray.cxx.
References condarr.
Referenced by Draw(), GetNumberOfConditions(), TGo4ViewPanel::GetSelectedSlot(), TGo4CondArrayPainter::PaintCondition(), TGo4ViewPanel::RefreshButtons(), TGo4ConditionEditor::RefreshWidget(), SavePrimitive(), TGo4ViewPanel::SetSelectedMarkerByMouseClick(), and TGo4CondArrayPainter::UnPaintCondition().
Int_t TGo4CondArray::GetNumberOfConditions | ( | ) | [virtual] |
for condition aggregates: return total number of conditions, i.e.size of condition array
Reimplemented from TGo4Condition.
Definition at line 198 of file TGo4CondArray.cxx.
References GetNumber().
Referenced by GetMemorySize().
Double_t TGo4CondArray::GetRMS | ( | TH1 * | histo, | |
Int_t | axis = 1 | |||
) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 933 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetRMS(), and TGo4Condition::IsMultiEdit().
const char * TGo4CondArray::GetType | ( | ) | const |
Returns class name of conditions.
Definition at line 210 of file TGo4CondArray.cxx.
References condarr.
Referenced by SavePrimitive().
void TGo4CondArray::GetType | ( | Int_t & | type | ) | const |
Returns condition type ID (kGO4CONDWINDOW=1 or kGO4CONDPOLYGON=2).
Definition at line 217 of file TGo4CondArray.cxx.
References fiType.
Double_t TGo4CondArray::GetXLow | ( | ) | [virtual] |
Noop, return true.
Reimplemented from TGo4Condition.
Definition at line 374 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetXLow(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetXMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 947 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetXMax(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetXUp | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 389 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetXUp(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetYLow | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 404 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetYLow(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetYMax | ( | TH1 * | histo | ) | [virtual] |
Calculate value for histogram inside condition limits.
Reimplemented from TGo4Condition.
Definition at line 961 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetYMax(), and TGo4Condition::IsMultiEdit().
Double_t TGo4CondArray::GetYUp | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 419 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::GetYUp(), and TGo4Condition::IsMultiEdit().
void TGo4CondArray::Invert | ( | Bool_t | on | ) | [virtual] |
Calls Invert for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 261 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::Invert(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::IsArrayType | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 120 of file TGo4CondArray.cxx.
Int_t TGo4CondArray::IsChanged | ( | ) | [virtual] |
we overwrite single condition changed property
Reimplemented from TGo4Condition.
Definition at line 1016 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::IsChanged().
Bool_t TGo4CondArray::IsCMaxDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 875 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsCMaxDraw(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::IsIntDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 651 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsIntDraw(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::IsLabelDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 582 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsLabelDraw(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::IsLimitsDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 617 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsLimitsDraw(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::IsPolygonType | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 1027 of file TGo4CondArray.cxx.
References At(), fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), TGo4Condition::IsPolygonType(), and kGO4CONDPOLYGON.
Bool_t TGo4CondArray::IsVisible | ( | ) | [virtual] |
we overwrite single condition visibility getter
Reimplemented from TGo4Condition.
Definition at line 549 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsVisible().
Bool_t TGo4CondArray::IsXMaxDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 811 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMaxDraw().
Bool_t TGo4CondArray::IsXMeanDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 683 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXMeanDraw().
Bool_t TGo4CondArray::IsXRMSDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 715 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsXRMSDraw().
Bool_t TGo4CondArray::IsYMaxDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 843 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMaxDraw().
Bool_t TGo4CondArray::IsYMeanDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 747 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYMeanDraw().
Bool_t TGo4CondArray::IsYRMSDraw | ( | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 779 of file TGo4CondArray.cxx.
References At(), GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::IsYRMSDraw().
void TGo4CondArray::MarkReset | ( | Bool_t | on | ) | [virtual] |
defines if condition counters shall be reset in UpdateFrom method
Reimplemented from TGo4Condition.
Definition at line 281 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::MarkReset().
TGo4Condition * TGo4CondArray::operator[] | ( | Int_t | i | ) |
Returns condition object i from object array. Same as At(). Must cast for window or polygon condition methods!
Definition at line 41 of file TGo4CondArray.cxx.
References condarr.
TGo4PolyCond * TGo4CondArray::Poly | ( | Int_t | i | ) |
Returns polygon condition object i from object array. Checks if object is polygon condition, if not return 0.
Definition at line 35 of file TGo4CondArray.cxx.
References At(), fiType, and kGO4CONDPOLYGON.
void TGo4CondArray::PrintBar | ( | ) | [virtual] |
Prints counters and bar.
Reimplemented from TGo4Condition.
Definition at line 184 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::PrintBar().
void TGo4CondArray::PrintCondition | ( | Bool_t | points | ) | [virtual] |
Noop Calls Print for all conditions in the array. Checks for condition type. If points is true, print Cut or Limits, respectively.
Reimplemented from TGo4Condition.
Definition at line 171 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::PrintCondition().
void TGo4CondArray::ResetCounts | ( | ) | [virtual] |
Calls ResetCounts for all conditions (multi edit mode) or for currently selected (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 325 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::ResetCounts().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
void TGo4CondArray::SavePrimitive | ( | std::ostream & | fs, | |
Option_t * | opt = "" | |||
) | [virtual] |
Standard way to store parameter in form of macro
Definition at line 1115 of file TGo4CondArray.cxx.
References At(), GetNumber(), GetType(), and TGo4Condition::MakeScript().
void TGo4CondArray::SetChanged | ( | Bool_t | on | ) | [virtual] |
we overwrite single condition changed property
Reimplemented from TGo4Condition.
Definition at line 1007 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::SetChanged().
void TGo4CondArray::SetCMaxDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 857 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetCMaxDraw().
void TGo4CondArray::SetCurrentIndex | ( | Int_t | ix | ) | [virtual] |
set index for array type subclasses
Reimplemented from TGo4Condition.
Definition at line 1045 of file TGo4CondArray.cxx.
References fiSelectedCond.
void TGo4CondArray::SetIntDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 633 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetIntDraw().
void TGo4CondArray::SetLabelDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 564 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetLabelDraw().
void TGo4CondArray::SetLimitsDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 598 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetLimitsDraw().
void TGo4CondArray::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 1074 of file TGo4CondArray.cxx.
References TGo4Condition::fxPainter, and TGo4Log::Warn().
void TGo4CondArray::SetValues | ( | TCutG * | newcut | ) | [virtual] |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Polygon conditions only.
Reimplemented from TGo4Condition.
Definition at line 476 of file TGo4CondArray.cxx.
References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDPOLYGON, and TGo4Condition::SetValues().
void TGo4CondArray::SetValues | ( | Double_t | low1, | |
Double_t | up1 | |||
) | [virtual] |
Noop Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.
Reimplemented from TGo4Condition.
Definition at line 436 of file TGo4CondArray.cxx.
References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
void TGo4CondArray::SetValues | ( | Double_t | low1, | |
Double_t | up1, | |||
Double_t | low2, | |||
Double_t | up2 | |||
) | [virtual] |
Calls SetValues for all conditions (multi edit mode) or for currently selected (single edit mode). Window conditions only.
Reimplemented from TGo4Condition.
Definition at line 456 of file TGo4CondArray.cxx.
References At(), condarr, fiType, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), kGO4CONDWINDOW, and TGo4Condition::SetValues().
void TGo4CondArray::SetVisible | ( | Bool_t | on | ) | [virtual] |
we overwrite single condition visibility setter
Reimplemented from TGo4Condition.
Definition at line 530 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetVisible().
void TGo4CondArray::SetXMaxDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 793 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXMaxDraw().
void TGo4CondArray::SetXMeanDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 665 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXMeanDraw().
void TGo4CondArray::SetXRMSDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 697 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetXRMSDraw().
void TGo4CondArray::SetYMaxDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 825 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYMaxDraw().
void TGo4CondArray::SetYMeanDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 729 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYMeanDraw().
void TGo4CondArray::SetYRMSDraw | ( | Bool_t | on | ) | [virtual] |
Reimplemented from TGo4Condition.
Definition at line 761 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IsMultiEdit(), and TGo4Condition::SetYRMSDraw().
Bool_t TGo4CondArray::Test | ( | Double_t | x, | |
Double_t | y | |||
) | [virtual] |
Noop, return true. Test currently selected condition(single edit mode). In multi edit mode, all conditions are tested with values and counters are incremented according result. Here return value is logically anded from all results.
Reimplemented from TGo4Condition.
Definition at line 124 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().
Bool_t TGo4CondArray::Test | ( | Double_t | x | ) | [virtual] |
Test currently selected condition(single edit mode). In multi edit mode, all conditions are tested with values and counters are incremented according result. Here return value is logically anded from all results.
Reimplemented from TGo4Condition.
Definition at line 147 of file TGo4CondArray.cxx.
References At(), condarr, GetCurrentIndex(), TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), TGo4Condition::IsMultiEdit(), and TGo4Condition::Test().
Int_t TGo4CondArray::TrueCounts | ( | ) | [virtual] |
Return number of true results of the Test method call. For complete array (multi edit mode) or for currently selected condition (single edit mode)
Reimplemented from TGo4Condition.
Definition at line 359 of file TGo4CondArray.cxx.
References At(), TGo4Condition::Counts(), Counts(), GetCurrentIndex(), and TGo4Condition::IsMultiEdit().
Bool_t TGo4CondArray::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 497 of file TGo4CondArray.cxx.
References condarr, and TGo4Condition::UpdateFrom().
TGo4WinCond * TGo4CondArray::Win | ( | Int_t | i | ) |
Returns window condition object i from object array. If the conditions is no window, returns 0. Must cast for window or polygon condition methods!
Definition at line 29 of file TGo4CondArray.cxx.
References At(), fiType, and kGO4CONDWINDOW.
TObjArray* TGo4CondArray::condarr [private] |
The object array of conditions
Definition at line 237 of file TGo4CondArray.h.
Referenced by At(), Disable(), Enable(), GetCMax(), GetFlags(), GetIntegral(), GetMean(), GetMemorySize(), GetNumber(), GetType(), Invert(), IsChanged(), MarkReset(), operator[](), PrintBar(), PrintCondition(), ResetCounts(), SetChanged(), SetCMaxDraw(), SetIntDraw(), SetLabelDraw(), SetLimitsDraw(), SetValues(), SetVisible(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), SetYRMSDraw(), Test(), TGo4CondArray(), UpdateFrom(), and ~TGo4CondArray().
Int_t TGo4CondArray::fiNumCond [private] |
Number of conditions in array.
Definition at line 240 of file TGo4CondArray.h.
Referenced by TGo4CondArray().
Int_t TGo4CondArray::fiSelectedCond [private] |
Index of selected condition
Definition at line 246 of file TGo4CondArray.h.
Referenced by GetCurrentIndex(), and SetCurrentIndex().
Int_t TGo4CondArray::fiType [private] |
Condition type ID (kGO4CONDWINDOW or kGO4CONDPOLYGON)
Definition at line 243 of file TGo4CondArray.h.
Referenced by GetType(), IsPolygonType(), Poly(), SetValues(), TGo4CondArray(), and Win().