GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4PolyCond Class Reference

Polygon condition. More...

#include <TGo4PolyCond.h>

+ Inheritance diagram for TGo4PolyCond:

Public Member Functions

 TGo4PolyCond ()
 
 TGo4PolyCond (const char *name, const char *title="Go4 polygon condition")
 
virtual ~TGo4PolyCond ()
 
TGo4ConditionPainterCreatePainter () override
 Factory method to generate the subclass implementation for painter.
 
Double_t GetCMax (TH1 *histo) override
 Calculate value for histogram inside condition limits.
 
Double_t GetCurtosis (TH1 *histo, Int_t axis=1) override
 Calculate value for histogram inside condition limits.
 
TCutG * GetCut (Bool_t changeowner) override
 Used to return the cut pointer of a TGo4PolyCond.
 
Double_t GetIntegral (TH1 *histo, Option_t *opt="") override
 Calculate value for histogram inside condition limits.
 
Double_t GetMean (TH1 *histo, Int_t axis=1) override
 Calculate value for histogram inside condition limits.
 
Int_t GetMemorySize () const override
 
Double_t GetRMS (TH1 *histo, Int_t axis=1) override
 Calculate value for histogram inside condition limits.
 
Double_t GetSkewness (TH1 *histo, Int_t axis=1) override
 Calculate value for histogram inside condition limits.
 
Double_t GetXLow () const override
 minimum extension of polygon in x axis
 
Double_t GetXMax (TH1 *histo) override
 Calculate value for histogram inside condition limits.
 
Double_t GetXUp () const override
 maximum extension of polygon in x axis
 
Double_t GetYLow () const override
 minimum extension of polygon in y axis
 
Double_t GetYMax (TH1 *histo) override
 Calculate value for histogram inside condition limits.
 
Double_t GetYUp () const override
 maximum extension of polygon in y axis
 
Bool_t IsPolygonType () const override
 
void PrintCondition (Bool_t points=kTRUE) override
 Printout values.
 
void SavePrimitive (std::ostream &fs, Option_t *opt="") override
 Standard way to store parameter in form of macro.
 
void SetPainter (TGo4ConditionPainter *painter) override
 Replace default painter of this condition by external one.
 
virtual void SetValues ()
 Set values needed, i.e.
 
void SetValues (Double_t *x, Double_t *y, Int_t len) override
 Delete old cut and create a new cut with X,Y values.
 
virtual void SetValues (Double_t low1, Double_t up1)
 
virtual void SetValues (Double_t low1, Double_t up1, Double_t low2, Double_t up2)
 
void SetValues (TCutG *newcut) override
 Delete old cut and create new one by cloning newcut.
 
void SetValuesDirect (TCutG *newcut)
 Delete old cut and get ownership over newcut.
 
void SetWorkHistogram (TH1 *histo) override
 Set reference to work histogram for statistics functions.
 
virtual Bool_t Test ()
 Test if condition is true.
 
virtual Bool_t Test (Double_t x)
 
Bool_t Test (Double_t x, Double_t y) override
 Test if X,Y are inside.
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts) override
 Copy values from cond to this.
 
Bool_t UpdateFromUrl (const char *rest_url_opt) override
 Method used by HTTP server to update some fields, specified in URL syntax.
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
virtual void AddCondition (TGo4Condition *next)
 Add another condition to this one.
 
void Clear (Option_t *opt="") override
 
virtual Int_t Counts ()
 Return number of calls of the Test method.
 
void DeletePainter ()
 
virtual void Disable (Bool_t result)
 Freeze condition, on Test() return result.
 
void Draw (Option_t *opt="") override
 Draw this condition on current pad.
 
virtual void Enable ()
 Enable (unfreeze) Test execution.
 
Bool_t FixedResult () const
 Returns the value set by Disable(value).
 
virtual const TGo4ConditionGetActiveCondition () const
 To be overwritten for condition array.
 
virtual Int_t GetCurrentIndex () const
 get index for array type subclasses
 
Int_t GetDimension () const
 
virtual void GetFlags (Bool_t *enabled, Bool_t *lastresult, Bool_t *markreset, Bool_t *result, Bool_t *truevalue, Bool_t *falsevalue)
 Sets values of internal boolean flags to external variables.
 
virtual const char * GetLabelNumFormat () const
 
Bool_t GetLast () const
 Returns result of last Test.
 
const char * GetLinkedHistogram () const
 Access name of the associated histogram.
 
virtual Int_t GetNumberOfConditions () const
 for condition aggregates: return total number of conditions, i.e.size of condition array
 
Double_t GetUpdateEpsilon () const
 
virtual void GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
TH1 * GetWorkHistogram () const
 access work histogram reference
 
void IncCounts ()
 Increment the test counter.
 
void IncTrueCounts ()
 Increment the "test was true" counter.
 
void InitLabelStyle ()
 Initialize label setup from static default variables.
 
virtual void Invert (Bool_t on)
 Inverts return values, when on is true, i.e.
 
virtual Bool_t IsArrayType () const
 
virtual Int_t IsChanged () const
 
virtual Bool_t IsCMaxDraw () const
 
Bool_t IsEnabled () const
 Returns true if condition is enabled.
 
Bool_t IsFalse () const
 Use this as return, if test was false.
 
Bool_t IsHistogramLink () const
 True if the histogram of given name is linked to this.
 
virtual Bool_t IsIntDraw () const
 
virtual Bool_t IsLabelDraw () const
 
virtual Bool_t IsLimitsDraw () const
 
virtual Bool_t IsMultiEdit () const
 
Bool_t IsOwnedByEditor () const
 
Bool_t IsTrue () const
 Use this as return, if test was true.
 
virtual Bool_t IsVisible () const
 Visibility property for gui display in editor.
 
virtual Bool_t IsXMaxDraw () const
 
virtual Bool_t IsXMeanDraw () const
 
virtual Bool_t IsXRMSDraw () const
 
virtual Bool_t IsYMaxDraw () const
 
virtual Bool_t IsYMeanDraw () const
 
virtual Bool_t IsYRMSDraw () const
 
virtual void MarkReset (Bool_t on)
 defines if condition counters shall be reset in UpdateFrom method
 
void Paint (Option_t *opt="") override
 Display condition with plain root canvas and in go4 viewpanel.
 
void Pop () override
 Re-implement TObject method to pop all our views to front.
 
void Print (Option_t *opt="") const override
 Default printout for root object lists.
 
virtual void PrintBar ()
 Prints counters and bar.
 
virtual void ResetCounts ()
 Clear counters.
 
void ResetLabel (Option_t *opt="reset")
 Will reset label position to defaults with other option than reset, just pop label to front.
 
void SaveLabelStyle ()
 This will save draw flags into static default setup.
 
virtual void SetChanged (Bool_t on=kTRUE)
 
virtual void SetCMaxDraw (Bool_t on)
 
virtual void SetCounts (Int_t truecounts, Int_t counts)
 Set counters.
 
virtual void SetCurrentIndex (Int_t)
 set index for array type subclasses
 
void SetDimension (Int_t d)
 
virtual void SetFlags (Bool_t enabled, Bool_t lastresult, Bool_t markreset, Bool_t result, Bool_t truevalue, Bool_t falsevalue)
 Sets values of external boolean flags to internal variables.
 
void SetHistogram (const char *name)
 Define the name of the associated histogram.
 
void SetHistogramLink (Bool_t on)
 Define if this condition has association with an analysis histogram.
 
virtual void SetIntDraw (Bool_t on)
 
virtual void SetLabelDraw (Bool_t on)
 
virtual void SetLabelNumFormat (const char *fmt)
 
void SetLast (Bool_t value)
 Can be used in Test to store the result.
 
virtual void SetLimitsDraw (Bool_t on)
 
void SetMultiEdit (Bool_t on)
 
void SetOwnedByEditor (Bool_t on)
 
void SetUpdateEpsilon (Double_t val)
 Configure graphical update tolerance for this condition individually.
 
virtual void SetVisible (Bool_t on)
 Set/Unset visibility.
 
virtual void SetXMaxDraw (Bool_t on)
 
virtual void SetXMeanDraw (Bool_t on)
 
virtual void SetXRMSDraw (Bool_t on)
 
virtual void SetYMaxDraw (Bool_t on)
 
virtual void SetYMeanDraw (Bool_t on)
 
virtual void SetYRMSDraw (Bool_t on)
 
virtual Int_t TrueCounts ()
 Return number of true results of the Test method call.
 
virtual void UnDraw (Option_t *opt="")
 Erase view of this condition from the pad.
 

Static Public Member Functions

static void CleanupSpecials ()
 Remove all references to any TCutGs from ROOT list of specials.
 
static TString NextAvailableName ()
 
- Static Public Member Functions inherited from TGo4Condition
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)
 
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 Public Attributes

static TString fgxURL_NPOINTS ="npolygon"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_XPRE ="x"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_YPRE ="y"
 web condition editor keyword used in UpdateFromUrl.
 
- Static Public Attributes inherited from TGo4Condition
static Bool_t fgbCMAXDRAW =kTRUE
 default setting for all conditions for label draw cmax flag.
 
static Bool_t fgbINTDRAW =kTRUE
 default setting for all conditions for label draw integral flag.
 
static Bool_t fgbLABELDRAW =kTRUE
 default setting for all conditions for label draw on/off flag.
 
static Bool_t fgbLIMITSDRAW =kTRUE
 default setting for all conditions for label draw limits flag.
 
static Bool_t fgbXMAXDRAW =kTRUE
 default setting for all conditions for label draw xmax flag.
 
static Bool_t fgbXMEANDRAW =kTRUE
 default setting for all conditions for label draw xmean flag.
 
static Bool_t fgbXRMSDRAW =kTRUE
 default setting for all conditions for label draw xrms flag.
 
static Bool_t fgbYMAXDRAW =kFALSE
 default setting for all conditions for label draw ymax flag.
 
static Bool_t fgbYMEANDRAW =kFALSE
 default setting for all conditions for label draw ymean flag.
 
static Bool_t fgbYRMSDRAW =kFALSE
 default setting for all conditions for label draw yrms flag.
 
static const Double_t fgdUPDATEEPSILON = 0.01
 default value for graphical update tolerance.
 
static TString fgxNUMFORMAT ="%.4E"
 default setting for all conditions with format string for numbers.
 
static TString fgxURL_CMAX ="cmaxdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_INTEGRAL ="intdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_INVERT ="invertmode"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_LABEL ="labeldraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_LIMITS ="limitsdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_RESET ="resetcounters"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_RESULT ="resultmode"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_VISIBLE ="visible"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_XMAX ="xmaxdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_XMEAN ="xmeandraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_XRMS ="xrmsdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_YMAX ="ymaxdraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_YMEAN ="ymeandraw"
 web condition editor keyword used in UpdateFromUrl.
 
static TString fgxURL_YRMS ="yrmsdraw"
 web condition editor keyword used in UpdateFromUrl.
 

Private Member Functions

void ClearCutHis ()
 Set new cut histogram.
 
TCutG * CloneCut (TGo4PolyCond *source)
 Returns pointer to a cloned cut from source.
 
Bool_t IsCutHis (TH1 *source)
 Returns true if fxCutHis can be used, create if possible.
 

Private Attributes

TCutG * fxCut {nullptr}
 Cut pointer.
 
TH2 * fxCutHis {nullptr}
 temporary histogram used to calculate statistics on polygon cuts.
 

Additional Inherited Members

- Protected Member Functions inherited from TGo4Condition
void BuildUrlOptionArray (const char *rest_url_opt)
 re-build the list of url options from string
 
Double_t GetUrlOptionAsDouble (const char *key, Double_t def_value)
 Scan list of url options for key.
 
Int_t GetUrlOptionAsInt (const char *key, Int_t def_value)
 Scan list of url options for key.
 
TString GetUrlOptionAsString (const char *key, TString def_value)
 Scan list of url options for key.
 
Bool_t IsPainted () const
 
const char * MakeScript (std::ostream &out, const char *varname, Option_t *opt="", const char *arrextraargs=nullptr)
 
void SetPainted (Bool_t on)
 
Bool_t UrlOptionHasKey (const char *key)
 returns true if key is present in list of url options.
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter {nullptr}
 Painter instance to display the condition in root pad.
 
TObjArray * fxUrlOptionArray {nullptr}
 array with TObjStrings evaluated by UpdateFromUrl
 

Detailed Description

Polygon condition.

Definition at line 27 of file TGo4PolyCond.h.

Constructor & Destructor Documentation

◆ TGo4PolyCond() [1/2]

◆ TGo4PolyCond() [2/2]

TGo4PolyCond::TGo4PolyCond ( const char * name,
const char * title = "Go4 polygon condition" )

◆ ~TGo4PolyCond()

TGo4PolyCond::~TGo4PolyCond ( )
virtual

Definition at line 65 of file TGo4PolyCond.cxx.

References ClearCutHis(), and fxCut.

Member Function Documentation

◆ CleanupSpecials()

void TGo4PolyCond::CleanupSpecials ( )
static

◆ ClearCutHis()

void TGo4PolyCond::ClearCutHis ( )
private

Set new cut histogram.

Definition at line 85 of file TGo4PolyCond.cxx.

References fxCutHis.

Referenced by ~TGo4PolyCond(), GetCut(), SetValues(), SetValues(), SetValuesDirect(), SetWorkHistogram(), and UpdateFrom().

◆ CloneCut()

TCutG * TGo4PolyCond::CloneCut ( TGo4PolyCond * source)
private

Returns pointer to a cloned cut from source.

Name is set to callers name. Used internally by UpdateFrom.

Definition at line 149 of file TGo4PolyCond.cxx.

References TGo4PolyCond(), CleanupSpecials(), and GetCut().

Referenced by UpdateFrom().

◆ CreatePainter()

TGo4ConditionPainter * TGo4PolyCond::CreatePainter ( )
overridevirtual

Factory method to generate the subclass implementation for painter.

Reimplemented from TGo4Condition.

Definition at line 431 of file TGo4PolyCond.cxx.

References TGo4ConditionPainter::SetCondition().

◆ GetCMax()

Double_t TGo4PolyCond::GetCMax ( TH1 * histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 408 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetCurtosis()

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

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 377 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetCut()

TCutG * TGo4PolyCond::GetCut ( Bool_t changeowner)
overridevirtual

Used to return the cut pointer of a TGo4PolyCond.

In source, pointer is set to 0, when changeowner is true. Thus source object can be deleted without deleting the cut which is now owned by the caller. When changeowner is false, the pointer can only be used to clone a new cut. The cut must not be deleted!

Reimplemented from TGo4Condition.

Definition at line 137 of file TGo4PolyCond.cxx.

References ClearCutHis(), and fxCut.

Referenced by CloneCut(), TGo4ViewPanel::CompleteMarkerEdit(), TGo4ConditionEditor::CutTable_contextMenuHandler(), TGo4ConditionEditor::CutTable_contextMenuRequested(), TGo4ConditionEditor::CutTable_valueChanged(), TGo4ConditionEditor::NPointsSpin_valueChanged(), TGo4ViewPanel::PadClickedSlot(), TGo4PolyCondPainter::PaintCondition(), TGo4ConditionPainter::PaintLabel(), TGo4ConditionEditor::RefreshWidget(), TGo4ConditionEditor::UpdateEllipse(), and UpdateFrom().

◆ GetIntegral()

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

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 348 of file TGo4PolyCond.cxx.

References fxCut.

◆ GetMean()

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

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 353 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetMemorySize()

Int_t TGo4PolyCond::GetMemorySize ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 486 of file TGo4PolyCond.cxx.

References fxCut.

◆ GetRMS()

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

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 361 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetSkewness()

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

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 369 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetXLow()

Double_t TGo4PolyCond::GetXLow ( ) const
overridevirtual

minimum extension of polygon in x axis

Reimplemented from TGo4Condition.

Definition at line 94 of file TGo4PolyCond.cxx.

References fxCut.

Referenced by TGo4ConditionEditor::UpdateEllipse().

◆ GetXMax()

Double_t TGo4PolyCond::GetXMax ( TH1 * histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 385 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetXUp()

Double_t TGo4PolyCond::GetXUp ( ) const
overridevirtual

maximum extension of polygon in x axis

Reimplemented from TGo4Condition.

Definition at line 104 of file TGo4PolyCond.cxx.

References fxCut.

Referenced by TGo4ConditionEditor::UpdateEllipse().

◆ GetYLow()

Double_t TGo4PolyCond::GetYLow ( ) const
overridevirtual

minimum extension of polygon in y axis

Reimplemented from TGo4Condition.

Definition at line 113 of file TGo4PolyCond.cxx.

References fxCut.

Referenced by TGo4ConditionEditor::UpdateEllipse().

◆ GetYMax()

Double_t TGo4PolyCond::GetYMax ( TH1 * histo)
overridevirtual

Calculate value for histogram inside condition limits.

Reimplemented from TGo4Condition.

Definition at line 396 of file TGo4PolyCond.cxx.

References fxCutHis, and IsCutHis().

◆ GetYUp()

Double_t TGo4PolyCond::GetYUp ( ) const
overridevirtual

maximum extension of polygon in y axis

Reimplemented from TGo4Condition.

Definition at line 122 of file TGo4PolyCond.cxx.

References fxCut.

Referenced by TGo4ConditionEditor::UpdateEllipse().

◆ IsCutHis()

Bool_t TGo4PolyCond::IsCutHis ( TH1 * source)
private

Returns true if fxCutHis can be used, create if possible.

Definition at line 439 of file TGo4PolyCond.cxx.

References fxCut, and fxCutHis.

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

◆ IsPolygonType()

Bool_t TGo4PolyCond::IsPolygonType ( ) const
overridevirtual

Reimplemented from TGo4Condition.

Definition at line 131 of file TGo4PolyCond.cxx.

◆ NextAvailableName()

TString TGo4PolyCond::NextAvailableName ( )
static

Definition at line 36 of file TGo4PolyCond.cxx.

Referenced by TGo4ViewPanel::PadClickedSlot().

◆ PrintCondition()

void TGo4PolyCond::PrintCondition ( Bool_t points = kTRUE)
overridevirtual

Printout values.

If points is true, printout polygon points.

Reimplemented from TGo4Condition.

Reimplemented in TGo4ShapedCond.

Definition at line 249 of file TGo4PolyCond.cxx.

References fxCut, and TGo4Condition::PrintCondition().

Referenced by TGo4ShapedCond::PrintCondition().

◆ SavePrimitive()

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

Standard way to store parameter in form of macro.

Definition at line 498 of file TGo4PolyCond.cxx.

References fxCut, and TGo4Condition::MakeScript().

◆ SetPainter()

void TGo4PolyCond::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 416 of file TGo4PolyCond.cxx.

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

◆ SetValues() [1/5]

virtual void TGo4Condition::SetValues ( )
inlinevirtual

Set values needed, i.e.

limits for windows or cuts for polygons

Reimplemented from TGo4Condition.

Definition at line 94 of file TGo4Condition.h.

Referenced by TGo4ShapedCond::ResetPolygon(), and UpdateFromUrl().

◆ SetValues() [2/5]

void TGo4PolyCond::SetValues ( Double_t * x,
Double_t * y,
Int_t len )
overridevirtual

Delete old cut and create a new cut with X,Y values.

Reimplemented from TGo4Condition.

Definition at line 221 of file TGo4PolyCond.cxx.

References CleanupSpecials(), ClearCutHis(), and fxCut.

Referenced by TGo4CreateNewCondition::MakeCondition(), TGo4Analysis::MakePolyCond(), TGo4AnalysisObjectManager::MakePolyCond(), and TGo4ConditionEditor::NPointsSpin_valueChanged().

◆ SetValues() [3/5]

virtual void TGo4Condition::SetValues ( Double_t low1,
Double_t up1 )
inlinevirtual

Reimplemented from TGo4Condition.

Definition at line 95 of file TGo4Condition.h.

◆ SetValues() [4/5]

virtual void TGo4Condition::SetValues ( Double_t low1,
Double_t up1,
Double_t low2,
Double_t up2 )
inlinevirtual

Reimplemented from TGo4Condition.

Definition at line 96 of file TGo4Condition.h.

◆ SetValues() [5/5]

void TGo4PolyCond::SetValues ( TCutG * newcut)
overridevirtual

Delete old cut and create new one by cloning newcut.

Reimplemented from TGo4Condition.

Definition at line 162 of file TGo4PolyCond.cxx.

References CleanupSpecials(), ClearCutHis(), and fxCut.

◆ SetValuesDirect()

void TGo4PolyCond::SetValuesDirect ( TCutG * newcut)

Delete old cut and get ownership over newcut.

Definition at line 201 of file TGo4PolyCond.cxx.

References ClearCutHis(), and fxCut.

Referenced by TGo4ViewPanel::PadClickedSlot().

◆ SetWorkHistogram()

void TGo4PolyCond::SetWorkHistogram ( TH1 * histo)
overridevirtual

Set reference to work histogram for statistics functions.

Reimplemented from TGo4Condition.

Definition at line 78 of file TGo4PolyCond.cxx.

References ClearCutHis(), and TGo4Condition::SetWorkHistogram().

Referenced by TGo4ViewPanel::PadClickedSlot().

◆ Test() [1/3]

Bool_t TGo4Condition::Test ( )
virtual

Test if condition is true.

Result is returned, the internal counters are set appropriately. Should return fbResult if condition is not enabled. the default is increment test counter and return true.

Reimplemented from TGo4Condition.

Definition at line 88 of file TGo4Condition.cxx.

◆ Test() [2/3]

virtual Bool_t TGo4Condition::Test ( Double_t x)
inlinevirtual

Reimplemented from TGo4Condition.

Definition at line 90 of file TGo4Condition.h.

◆ Test() [3/3]

Bool_t TGo4PolyCond::Test ( Double_t x,
Double_t y )
overridevirtual

◆ UpdateFrom()

Bool_t TGo4PolyCond::UpdateFrom ( TGo4Condition * cond,
Bool_t counts )
overridevirtual

Copy values from cond to this.

Get a clone cut from cond by CloneCut as new cut. If counts is true, copy counters too.

Reimplemented from TGo4Condition.

Reimplemented in TGo4ShapedCond.

Definition at line 268 of file TGo4PolyCond.cxx.

References TGo4Condition::TGo4Condition(), TGo4PolyCond(), CleanupSpecials(), ClearCutHis(), CloneCut(), fxCut, GetCut(), and TGo4Condition::UpdateFrom().

Referenced by TGo4ShapedCond::UpdateFrom().

◆ UpdateFromUrl()

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

Method used by HTTP server to update some fields, specified in URL syntax.

Reimplemented from TGo4Condition.

Reimplemented in TGo4ShapedCond.

Definition at line 318 of file TGo4PolyCond.cxx.

References fgxURL_NPOINTS, fgxURL_XPRE, fgxURL_YPRE, TGo4Condition::GetUrlOptionAsDouble(), TGo4Condition::GetUrlOptionAsInt(), TGo4Log::Message(), SetValues(), TGo4Condition::UpdateFromUrl(), and TGo4Condition::UrlOptionHasKey().

Referenced by TGo4ShapedCond::UpdateFromUrl().

Field Documentation

◆ fgxURL_NPOINTS

TString TGo4PolyCond::fgxURL_NPOINTS ="npolygon"
static

web condition editor keyword used in UpdateFromUrl.

JAM2016: this define switches between cloning when updating condition and simple copy of TCutG points.

Definition at line 131 of file TGo4PolyCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_XPRE

TString TGo4PolyCond::fgxURL_XPRE ="x"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 133 of file TGo4PolyCond.h.

Referenced by UpdateFromUrl().

◆ fgxURL_YPRE

TString TGo4PolyCond::fgxURL_YPRE ="y"
static

web condition editor keyword used in UpdateFromUrl.

Definition at line 135 of file TGo4PolyCond.h.

Referenced by UpdateFromUrl().

◆ fxCut

◆ fxCutHis

TH2* TGo4PolyCond::fxCutHis {nullptr}
private

temporary histogram used to calculate statistics on polygon cuts.

Will be recalculated only if boundaries have changed.

Definition at line 155 of file TGo4PolyCond.h.

Referenced by TGo4PolyCond(), TGo4PolyCond(), ClearCutHis(), GetCMax(), GetCurtosis(), GetMean(), GetRMS(), GetSkewness(), GetXMax(), GetYMax(), and IsCutHis().


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