|
GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4ListCond.h>
Inheritance diagram for TGo4ListCond:Public Member Functions | |
| TGo4ListCond () | |
| TGo4ListCond (const char *name, const char *title="Go4 list condition") | |
| TGo4ListCond (const char *name, const char *title, const Int_t num, const Int_t *values) | |
| TGo4ListCond (const char *name, const char *title, const Int_t start, const Int_t stop, const Int_t step=1) | |
| virtual | ~TGo4ListCond () |
| virtual void | SetValues (const Int_t num, const Int_t *values) |
| virtual void | SetValues (const Int_t start, const Int_t stop, const Int_t step) |
| Bool_t | Test (Double_t value) override |
| void | PrintCondition (Bool_t full=kFALSE) override |
| void | PrintValues () |
| Bool_t | UpdateFrom (TGo4Condition *cond, Bool_t counts) override |
| UInt_t | GetNumValues () const |
| Int_t | GetValue (UInt_t ix) const |
| void | SetValue (UInt_t ix, Int_t val) |
| void | InsertValue (UInt_t ix, Int_t val) |
| void | RemoveValue (UInt_t ix) |
| void | Resize (size_t newsize) |
| Double_t | GetXLow () const override |
| Double_t | GetXUp () const override |
| Double_t | GetYLow () const override |
| Double_t | GetYUp () const 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 TGo4ConditionPainter * | CreatePainter () |
| 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 Bool_t | Test (Double_t x, Double_t y) |
| virtual void | SetValues () |
| 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) |
| 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 Bool_t | UpdateFromUrl (const char *rest_url_opt) |
| virtual void | GetValues (Int_t &dim, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2) |
| virtual TCutG * | GetCut (Bool_t owner) |
| virtual Double_t | GetIntegral (TH1 *, Option_t *="") |
| virtual Double_t | GetMean (TH1 *, Int_t=1) |
| virtual Double_t | GetRMS (TH1 *, Int_t=1) |
| virtual Double_t | GetSkewness (TH1 *, Int_t=1) |
| virtual Double_t | GetCurtosis (TH1 *, Int_t=1) |
| virtual Double_t | GetXMax (TH1 *) |
| virtual Double_t | GetYMax (TH1 *) |
| virtual Double_t | GetCMax (TH1 *) |
| virtual const TGo4Condition * | GetActiveCondition () 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 |
| virtual void | SetPainter (TGo4ConditionPainter *painter) |
| 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 Int_t | GetMemorySize () const |
| virtual Bool_t | IsPolygonType () const |
| virtual Bool_t | IsArrayType () const |
| void | DeletePainter () |
Private Member Functions | |
| ClassDefOverride (TGo4ListCond, 1) | |
Private Attributes | |
| std::vector< Int_t > | fxValues |
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) |
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" |
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 | |
| TGo4ConditionPainter * | fxPainter {nullptr} |
| TObjArray * | fxUrlOptionArray {nullptr} |
Condition that checks a value against a list of "good" (or bad) values. Developed from TRemiWhitelistCond class by Sven Augustin
Definition at line 25 of file TGo4ListCond.h.
| TGo4ListCond::TGo4ListCond | ( | ) |
Definition at line 18 of file TGo4ListCond.cxx.
References TGo4Condition::SetDimension().
| TGo4ListCond::TGo4ListCond | ( | const char * | name, |
| const char * | title = "Go4 list condition" |
||
| ) |
Definition at line 24 of file TGo4ListCond.cxx.
References fxValues, and TGo4Condition::SetDimension().
| TGo4ListCond::TGo4ListCond | ( | const char * | name, |
| const char * | title, | ||
| const Int_t | num, | ||
| const Int_t * | values | ||
| ) |
Definition at line 31 of file TGo4ListCond.cxx.
References TGo4Condition::SetDimension(), and TGo4Condition::SetValues().
| TGo4ListCond::TGo4ListCond | ( | const char * | name, |
| const char * | title, | ||
| const Int_t | start, | ||
| const Int_t | stop, | ||
| const Int_t | step = 1 |
||
| ) |
Definition at line 38 of file TGo4ListCond.cxx.
References TGo4Condition::SetDimension(), and TGo4Condition::SetValues().
|
virtual |
Definition at line 67 of file TGo4ListCond.cxx.
|
private |
number of values in list: todo: use vector here? array with values to test: todo: use vector here?
|
inline |
Definition at line 46 of file TGo4ListCond.h.
References fxValues.
Referenced by TGo4ConditionEditor::CutTable_contextMenuHandler(), TGo4ConditionEditor::CutTable_contextMenuRequested(), TGo4ConditionEditor::CutTable_valueChanged(), TGo4ConditionEditor::FillListWidget(), and UpdateFrom().
|
inline |
Definition at line 48 of file TGo4ListCond.h.
References fxValues.
Referenced by TGo4ConditionEditor::CutTable_contextMenuHandler(), TGo4ConditionEditor::FillListWidget(), and UpdateFrom().
|
overridevirtual |
For base class displays: minimum value of test list.
Reimplemented from TGo4Condition.
Definition at line 125 of file TGo4ListCond.cxx.
References fxValues.
Referenced by Resize().
|
overridevirtual |
For base class displays: maximum value of test list
Reimplemented from TGo4Condition.
Definition at line 120 of file TGo4ListCond.cxx.
References fxValues.
Referenced by Resize().
|
overridevirtual |
For base class displays: not used for 1d list
Reimplemented from TGo4Condition.
Definition at line 135 of file TGo4ListCond.cxx.
Referenced by Resize().
|
overridevirtual |
For base class displays: not used for 1d list
Reimplemented from TGo4Condition.
Definition at line 130 of file TGo4ListCond.cxx.
Referenced by Resize().
|
inline |
Definition at line 57 of file TGo4ListCond.h.
References fxValues.
Referenced by TGo4ConditionEditor::CutTable_contextMenuHandler().
|
overridevirtual |
Prints counters and boolean members.
Reimplemented from TGo4Condition.
Definition at line 90 of file TGo4ListCond.cxx.
References TGo4Condition::PrintCondition(), and PrintValues().
| void TGo4ListCond::PrintValues | ( | ) |
Definition at line 96 of file TGo4ListCond.cxx.
References fxValues.
Referenced by PrintCondition().
|
inline |
Definition at line 59 of file TGo4ListCond.h.
References fxValues.
Referenced by TGo4ConditionEditor::CutTable_contextMenuHandler().
|
inline |
Definition at line 61 of file TGo4ListCond.h.
References fxValues, GetXLow(), GetXUp(), GetYLow(), and GetYUp().
Referenced by TGo4ConditionEditor::NPointsSpin_valueChanged().
|
inline |
Definition at line 50 of file TGo4ListCond.h.
References fxValues.
Referenced by TGo4ConditionEditor::CutTable_valueChanged().
|
virtual |
Definition at line 46 of file TGo4ListCond.cxx.
References fxValues.
Referenced by TGo4Analysis::MakeListCond().
|
virtual |
Definition at line 53 of file TGo4ListCond.cxx.
References fxValues.
|
overridevirtual |
Reimplemented from TGo4Condition.
Definition at line 69 of file TGo4ListCond.cxx.
References TGo4Condition::FixedResult(), fxValues, TGo4Condition::IncCounts(), TGo4Condition::IncTrueCounts(), and TGo4Condition::IsEnabled().
Referenced by TXXXUnpackProc::BuildEvent().
|
overridevirtual |
Copy values from cond to this. When counts is true, copy also counters.
Reimplemented from TGo4Condition.
Definition at line 109 of file TGo4ListCond.cxx.
References fxValues, GetNumValues(), GetValue(), and TGo4Condition::UpdateFrom().
|
private |
Factory method to generate the subclass implementation for painter TODO: do we need graphical representation of whitelist, e.g. by set of point markers in working histogram? For the moment, no graphics for list conditions 1-2019
Definition at line 82 of file TGo4ListCond.h.
Referenced by GetNumValues(), GetValue(), GetXLow(), GetXUp(), InsertValue(), PrintValues(), RemoveValue(), Resize(), SetValue(), SetValues(), Test(), TGo4ListCond(), and UpdateFrom().
1.8.13