GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
TGo4WinCond Class Reference

#include <TGo4WinCond.h>

+ Inheritance diagram for TGo4WinCond:

Public Member Functions

 TGo4WinCond ()
 
 TGo4WinCond (const char *name, const char *title="Go4 window condition")
 
virtual ~TGo4WinCond ()
 
TGo4ConditionPainterCreatePainter () override
 
void SetPainter (TGo4ConditionPainter *painter) override
 
void SetValues (Double_t low1, Double_t up1) override
 
void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2) override
 
Bool_t Test (Double_t v1) override
 
Bool_t Test (Double_t v1, Double_t v2) override
 
void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) override
 
Double_t GetXLow () const override
 
Double_t GetXUp () const override
 
Double_t GetYLow () const override
 
Double_t GetYUp () const override
 
void SetXLow (Double_t v)
 
void SetXUp (Double_t v)
 
void SetYLow (Double_t v)
 
void SetYUp (Double_t v)
 
void PrintCondition (Bool_t full=kTRUE) override
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts) override
 
Bool_t UpdateFromUrl (const char *rest_url_opt) override
 
Double_t GetIntegral (TH1 *histo, Option_t *opt="") override
 
Double_t GetMean (TH1 *histo, Int_t axis=1) override
 
Double_t GetRMS (TH1 *histo, Int_t axis=1) override
 
Double_t GetSkewness (TH1 *histo, Int_t axis=1) override
 
Double_t GetCurtosis (TH1 *histo, Int_t axis=1) override
 
Double_t GetXMax (TH1 *histo) override
 
Double_t GetYMax (TH1 *histo) override
 
Double_t GetCMax (TH1 *histo) override
 
Bool_t IsPolygonType () const override
 
Int_t GetMemorySize () const override
 
void SavePrimitive (std::ostream &fs, Option_t *opt="") override
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
void Paint (Option_t *opt="") override
 
void Draw (Option_t *opt="") override
 
virtual void UnDraw (Option_t *opt="")
 
void Pop () override
 
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 void SetValues ()
 
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 PrintBar ()
 
void Print (Option_t *opt="") const override
 
void SetLast (Bool_t value)
 
Bool_t GetLast () const
 
virtual TCutG * GetCut (Bool_t owner)
 
virtual const TGo4ConditionGetActiveCondition () const
 
virtual void MarkReset (Bool_t on)
 
void Clear (Option_t *opt="") override
 
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 () const
 
void SetHistogramLink (Bool_t on)
 
Bool_t IsHistogramLink () const
 
void SetHistogram (const char *name)
 
const char * GetLinkedHistogram () const
 
virtual void SetWorkHistogram (TH1 *histo)
 
TH1 * GetWorkHistogram () const
 
void SetUpdateEpsilon (Double_t val)
 
Double_t GetUpdateEpsilon () const
 
void SaveLabelStyle ()
 
void InitLabelStyle ()
 
void ResetLabel (Option_t *opt="reset")
 
virtual void SetLabelDraw (Bool_t on)
 
virtual Bool_t IsLabelDraw () const
 
virtual void SetLimitsDraw (Bool_t on)
 
virtual Bool_t IsLimitsDraw () const
 
virtual void SetIntDraw (Bool_t on)
 
virtual Bool_t IsIntDraw () const
 
virtual void SetXMeanDraw (Bool_t on)
 
virtual Bool_t IsXMeanDraw () const
 
virtual void SetXRMSDraw (Bool_t on)
 
virtual Bool_t IsXRMSDraw () const
 
virtual void SetYMeanDraw (Bool_t on)
 
virtual Bool_t IsYMeanDraw () const
 
virtual void SetYRMSDraw (Bool_t on)
 
virtual Bool_t IsYRMSDraw () const
 
virtual void SetXMaxDraw (Bool_t on)
 
virtual Bool_t IsXMaxDraw () const
 
virtual void SetYMaxDraw (Bool_t on)
 
virtual Bool_t IsYMaxDraw () const
 
virtual void SetCMaxDraw (Bool_t on)
 
virtual Bool_t IsCMaxDraw () const
 
virtual void SetLabelNumFormat (const char *fmt)
 
virtual const char * GetLabelNumFormat () const
 
virtual void SetChanged (Bool_t on=kTRUE)
 
virtual Int_t IsChanged () const
 
void SetMultiEdit (Bool_t on)
 
virtual Bool_t IsMultiEdit () const
 
void SetDimension (Int_t d)
 
Int_t GetDimension () const
 
void SetOwnedByEditor (Bool_t on)
 
Bool_t IsOwnedByEditor () const
 
virtual void SetCurrentIndex (Int_t)
 
virtual Int_t GetCurrentIndex () const
 
virtual Int_t GetNumberOfConditions () const
 
virtual Bool_t IsArrayType () const
 
void DeletePainter ()
 

Static Public Attributes

static TString fgxURL_XLOW ="xmin"
 
static TString fgxURL_XUP ="xmax"
 
static TString fgxURL_YLOW ="ymin"
 
static TString fgxURL_YUP ="ymax"
 
- Static Public Attributes inherited from TGo4Condition
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"
 
static TString fgxURL_RESET ="resetcounters"
 
static TString fgxURL_RESULT ="resultmode"
 
static TString fgxURL_INVERT ="invertmode"
 
static TString fgxURL_VISIBLE ="visible"
 
static TString fgxURL_LABEL ="labeldraw"
 
static TString fgxURL_LIMITS ="limitsdraw"
 
static TString fgxURL_INTEGRAL ="intdraw"
 
static TString fgxURL_XMEAN ="xmeandraw"
 
static TString fgxURL_XRMS ="xrmsdraw"
 
static TString fgxURL_YMEAN ="ymeandraw"
 
static TString fgxURL_YRMS ="yrmsdraw"
 
static TString fgxURL_XMAX ="xmaxdraw"
 
static TString fgxURL_YMAX ="ymaxdraw"
 
static TString fgxURL_CMAX ="cmaxdraw"
 

Private Member Functions

void SetHistogramRanges (TH1 *histo)
 
void RestoreHistogramRanges (TH1 *histo)
 

Private Attributes

Double_t fLow1 {0}
 
Double_t fUp1 {0}
 
Double_t fLow2 {0}
 
Double_t fUp2 {0}
 
Int_t fiSaveXMin {0}
 
Int_t fiSaveXMax {0}
 
Int_t fiSaveYMin {0}
 
Int_t fiSaveYMax {0}
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4Condition
static void SetGlobalStyle (Bool_t LABELDRAW, Bool_t LIMITSDRAW, Bool_t INTDRAW, Bool_t XMEANDRAW, Bool_t YMEANDRAW, Bool_t XRMSDRAW, Bool_t YRMSDRAW, Bool_t XMAXDRAW, Bool_t YMAXDRAW, Bool_t CMAXDRAW, const char *NUMFORMAT)
 
static void GetGlobalStyle (Bool_t &LABELDRAW, Bool_t &LIMITSDRAW, Bool_t &INTDRAW, Bool_t &XMEANDRAW, Bool_t &YMEANDRAW, Bool_t &XRMSDRAW, Bool_t &YRMSDRAW, Bool_t &XMAXDRAW, Bool_t &YMAXDRAW, Bool_t &CMAXDRAW, TString &NUMFORMAT)
 
- Protected Member Functions inherited from TGo4Condition
void BuildUrlOptionArray (const char *rest_url_opt)
 
Bool_t UrlOptionHasKey (const char *key)
 
TString GetUrlOptionAsString (const char *key, TString def_value)
 
Int_t GetUrlOptionAsInt (const char *key, Int_t def_value)
 
Double_t GetUrlOptionAsDouble (const char *key, Double_t def_value)
 
void SetPainted (Bool_t on)
 
Bool_t IsPainted () const
 
const char * MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=nullptr)
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter {nullptr}
 
TObjArray * fxUrlOptionArray {nullptr}
 

Detailed Description

Definition at line 21 of file TGo4WinCond.h.

Constructor & Destructor Documentation

◆ TGo4WinCond() [1/2]

TGo4WinCond::TGo4WinCond ( )

Definition at line 30 of file TGo4WinCond.cxx.

References GO4TRACE.

◆ TGo4WinCond() [2/2]

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

Definition at line 44 of file TGo4WinCond.cxx.

References GO4TRACE.

◆ ~TGo4WinCond()

TGo4WinCond::~TGo4WinCond ( )
virtual

Definition at line 59 of file TGo4WinCond.cxx.

References GO4TRACE.

Member Function Documentation

◆ CreatePainter()

TGo4ConditionPainter * TGo4WinCond::CreatePainter ( )
overridevirtual

Factory method to generate the subclass implementation for painter

Reimplemented from TGo4Condition.

Definition at line 345 of file TGo4WinCond.cxx.

◆ GetCMax()

Double_t TGo4WinCond::GetCMax ( TH1 *  histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 232 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetCurtosis()

Double_t TGo4WinCond::GetCurtosis ( TH1 *  histo,
Int_t  axis = 1 
)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 182 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetIntegral()

Double_t TGo4WinCond::GetIntegral ( TH1 *  histo,
Option_t *  opt = "" 
)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 142 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetMean()

Double_t TGo4WinCond::GetMean ( TH1 *  histo,
Int_t  axis = 1 
)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 152 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetMemorySize()

Int_t TGo4WinCond::GetMemorySize ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 352 of file TGo4WinCond.cxx.

Referenced by IsPolygonType().

◆ GetRMS()

Double_t TGo4WinCond::GetRMS ( TH1 *  histo,
Int_t  axis = 1 
)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 162 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetSkewness()

Double_t TGo4WinCond::GetSkewness ( TH1 *  histo,
Int_t  axis = 1 
)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 172 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetValues()

void TGo4WinCond::GetValues ( Int_t &  dim,
Double_t &  x1,
Double_t &  y1,
Double_t &  x2,
Double_t &  y2 
)
overridevirtual

◆ GetXLow()

Double_t TGo4WinCond::GetXLow ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 57 of file TGo4WinCond.h.

References fLow1.

Referenced by TGo4ViewPanel::PadClickedSlot(), and UpdateFromUrl().

◆ GetXMax()

Double_t TGo4WinCond::GetXMax ( TH1 *  histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 192 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetXUp()

Double_t TGo4WinCond::GetXUp ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 58 of file TGo4WinCond.h.

References fUp1.

Referenced by UpdateFromUrl().

◆ GetYLow()

Double_t TGo4WinCond::GetYLow ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 59 of file TGo4WinCond.h.

References fLow2.

Referenced by TGo4ViewPanel::PadClickedSlot(), and UpdateFromUrl().

◆ GetYMax()

Double_t TGo4WinCond::GetYMax ( TH1 *  histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 212 of file TGo4WinCond.cxx.

References RestoreHistogramRanges(), and SetHistogramRanges().

Referenced by SetYUp().

◆ GetYUp()

Double_t TGo4WinCond::GetYUp ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 60 of file TGo4WinCond.h.

References fUp2.

Referenced by UpdateFromUrl().

◆ IsPolygonType()

Bool_t TGo4WinCond::IsPolygonType ( ) const
inlineoverridevirtual

Reimplemented from TGo4Condition.

Definition at line 100 of file TGo4WinCond.h.

References GetMemorySize(), and SavePrimitive().

◆ PrintCondition()

void TGo4WinCond::PrintCondition ( Bool_t  full = kTRUE)
overridevirtual

◆ RestoreHistogramRanges()

void TGo4WinCond::RestoreHistogramRanges ( TH1 *  histo)
private

Restore original ranges of current histo.

Definition at line 270 of file TGo4WinCond.cxx.

References fiSaveXMax, fiSaveXMin, fiSaveYMax, and fiSaveYMin.

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

◆ SavePrimitive()

void TGo4WinCond::SavePrimitive ( std::ostream &  fs,
Option_t *  opt = "" 
)
override

Standard way to store parameter in form of macro

Definition at line 360 of file TGo4WinCond.cxx.

References GetValues(), and TGo4Condition::MakeScript().

Referenced by IsPolygonType().

◆ SetHistogramRanges()

void TGo4WinCond::SetHistogramRanges ( TH1 *  histo)
private

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

Definition at line 242 of file TGo4WinCond.cxx.

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

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

◆ SetPainter()

void TGo4WinCond::SetPainter ( TGo4ConditionPainter painter)
overridevirtual

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 330 of file TGo4WinCond.cxx.

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

◆ SetValues() [1/2]

void TGo4WinCond::SetValues ( Double_t  low1,
Double_t  up1 
)
overridevirtual

◆ SetValues() [2/2]

void TGo4WinCond::SetValues ( Double_t  low1,
Double_t  up1,
Double_t  low2,
Double_t  up2 
)
overridevirtual

Set limits and internal dimension to 2

Reimplemented from TGo4Condition.

Definition at line 102 of file TGo4WinCond.cxx.

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

◆ SetXLow()

void TGo4WinCond::SetXLow ( Double_t  v)
inline

Definition at line 62 of file TGo4WinCond.h.

References fLow1.

◆ SetXUp()

void TGo4WinCond::SetXUp ( Double_t  v)
inline

Definition at line 63 of file TGo4WinCond.h.

References fUp1.

◆ SetYLow()

void TGo4WinCond::SetYLow ( Double_t  v)
inline

Definition at line 64 of file TGo4WinCond.h.

References fLow2.

◆ SetYUp()

void TGo4WinCond::SetYUp ( Double_t  v)
inline

◆ Test() [1/2]

Bool_t TGo4WinCond::Test ( Double_t  v1)
overridevirtual

◆ Test() [2/2]

Bool_t TGo4WinCond::Test ( Double_t  v1,
Double_t  v2 
)
overridevirtual

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

Reimplemented from TGo4Condition.

Definition at line 65 of file TGo4WinCond.cxx.

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

◆ UpdateFrom()

Bool_t TGo4WinCond::UpdateFrom ( TGo4Condition cond,
Bool_t  counts 
)
overridevirtual

Copy values from cond to this. When counts is true, copy also counters.

Reimplemented from TGo4Condition.

Definition at line 281 of file TGo4WinCond.cxx.

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

Referenced by SetYUp().

◆ UpdateFromUrl()

Bool_t TGo4WinCond::UpdateFromUrl ( const char *  rest_url_opt)
overridevirtual

Member Data Documentation

◆ fgxURL_XLOW

TString TGo4WinCond::fgxURL_XLOW ="xmin"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 108 of file TGo4WinCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_XUP

TString TGo4WinCond::fgxURL_XUP ="xmax"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 110 of file TGo4WinCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_YLOW

TString TGo4WinCond::fgxURL_YLOW ="ymin"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 112 of file TGo4WinCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_YUP

TString TGo4WinCond::fgxURL_YUP ="ymax"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 114 of file TGo4WinCond.h.

Referenced by UpdateFromUrl().

◆ fiSaveXMax

Int_t TGo4WinCond::fiSaveXMax {0}
private

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

Definition at line 134 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

◆ fiSaveXMin

Int_t TGo4WinCond::fiSaveXMin {0}
private

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

Definition at line 131 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

◆ fiSaveYMax

Int_t TGo4WinCond::fiSaveYMax {0}
private

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

Definition at line 140 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

◆ fiSaveYMin

Int_t TGo4WinCond::fiSaveYMin {0}
private

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

Definition at line 137 of file TGo4WinCond.h.

Referenced by RestoreHistogramRanges(), and SetHistogramRanges().

◆ fLow1

Double_t TGo4WinCond::fLow1 {0}
private

inclusive lower limit

Definition at line 119 of file TGo4WinCond.h.

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

◆ fLow2

Double_t TGo4WinCond::fLow2 {0}
private

inclusive lower limit

Definition at line 125 of file TGo4WinCond.h.

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

◆ fUp1

Double_t TGo4WinCond::fUp1 {0}
private

exclusive upper limit

Definition at line 122 of file TGo4WinCond.h.

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

◆ fUp2

Double_t TGo4WinCond::fUp2 {0}
private

exclusive upper limit

Definition at line 128 of file TGo4WinCond.h.

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


The documentation for this class was generated from the following files: