GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGo4ListCond Class Reference

#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)
 
virtual Bool_t Test (Double_t value)
 
void PrintCondition (Bool_t full=kFALSE)
 
void PrintValues ()
 
Bool_t UpdateFrom (TGo4Condition *cond, Bool_t counts)
 
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)
 
virtual Double_t GetXLow ()
 
virtual Double_t GetXUp ()
 
virtual Double_t GetYLow ()
 
virtual Double_t GetYUp ()
 
- Public Member Functions inherited from TGo4Condition
 TGo4Condition ()
 
 TGo4Condition (const char *name, const char *title="Go4 Condition")
 
virtual ~TGo4Condition ()
 
virtual void Paint (Option_t *opt="")
 
virtual void Draw (Option_t *opt="")
 
virtual void UnDraw (Option_t *opt="")
 
virtual void Pop ()
 
virtual TGo4ConditionPainterCreatePainter ()
 
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 ()
 
virtual void Print (Option_t *opt="") const
 
void SetLast (Bool_t value)
 
Bool_t GetLast ()
 
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 TGo4ConditionGetActiveCondition ()
 
virtual void MarkReset (Bool_t on)
 
virtual void Clear (Option_t *opt="")
 
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 ()
 
void SetHistogramLink (Bool_t on)
 
Bool_t IsHistogramLink ()
 
void SetHistogram (const char *name)
 
const char * GetLinkedHistogram ()
 
virtual void SetWorkHistogram (TH1 *histo)
 
TH1 * GetWorkHistogram ()
 
virtual void SetPainter (TGo4ConditionPainter *painter)
 
void SetUpdateEpsilon (Double_t val)
 
Double_t GetUpdateEpsilon ()
 
void SaveLabelStyle ()
 
void InitLabelStyle ()
 
void ResetLabel (Option_t *opt="reset")
 
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 void SetLabelNumFormat (const char *fmt)
 
virtual const char * GetLabelNumFormat ()
 
virtual void SetChanged (Bool_t on=kTRUE)
 
virtual Int_t IsChanged ()
 
void SetMultiEdit (Bool_t on)
 
virtual Bool_t IsMultiEdit ()
 
void SetDimension (Int_t d)
 
Int_t GetDimension ()
 
void SetOwnedByEditor (Bool_t on)
 
Bool_t IsOwnedByEditor ()
 
virtual void SetCurrentIndex (Int_t)
 
virtual Int_t GetCurrentIndex ()
 
virtual Int_t GetNumberOfConditions ()
 
virtual Int_t GetMemorySize ()
 
virtual Bool_t IsPolygonType ()
 
virtual Bool_t IsArrayType ()
 
void DeletePainter ()
 

Private Member Functions

 ClassDef (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=0)
 
- Protected Attributes inherited from TGo4Condition
TGo4ConditionPainterfxPainter
 
TObjArray * fxUrlOptionArray
 

Detailed Description

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.

Constructor & Destructor Documentation

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().

TGo4ListCond::~TGo4ListCond ( )
virtual

Definition at line 72 of file TGo4ListCond.cxx.

Member Function Documentation

TGo4ListCond::ClassDef ( TGo4ListCond  ,
 
)
private

number of values in list: todo: use vector here? array with values to test: todo: use vector here?

UInt_t TGo4ListCond::GetNumValues ( ) const
inline
Int_t TGo4ListCond::GetValue ( UInt_t  ix) const
inline
Double_t TGo4ListCond::GetXLow ( )
virtual

For base class displays: minimum value of test list.

Reimplemented from TGo4Condition.

Definition at line 131 of file TGo4ListCond.cxx.

References fxValues.

Double_t TGo4ListCond::GetXUp ( )
virtual

For base class displays: maximum value of test list

Reimplemented from TGo4Condition.

Definition at line 127 of file TGo4ListCond.cxx.

References fxValues.

Double_t TGo4ListCond::GetYLow ( )
virtual

For base class displays: not used for 1d list

Reimplemented from TGo4Condition.

Definition at line 140 of file TGo4ListCond.cxx.

Double_t TGo4ListCond::GetYUp ( )
virtual

For base class displays: not used for 1d list

Reimplemented from TGo4Condition.

Definition at line 136 of file TGo4ListCond.cxx.

void TGo4ListCond::InsertValue ( UInt_t  ix,
Int_t  val 
)
inline

Definition at line 56 of file TGo4ListCond.h.

References fxValues.

Referenced by TGo4ConditionEditor::ContextMenuSlot().

void TGo4ListCond::PrintCondition ( Bool_t  full = kFALSE)
virtual

Prints counters and boolean members.

Reimplemented from TGo4Condition.

Definition at line 96 of file TGo4ListCond.cxx.

References TGo4Condition::PrintCondition(), and PrintValues().

void TGo4ListCond::PrintValues ( )

Definition at line 102 of file TGo4ListCond.cxx.

References fxValues.

Referenced by PrintCondition().

void TGo4ListCond::RemoveValue ( UInt_t  ix)
inline

Definition at line 60 of file TGo4ListCond.h.

References fxValues.

Referenced by TGo4ConditionEditor::ContextMenuSlot().

void TGo4ListCond::Resize ( size_t  newsize)
inline

Definition at line 62 of file TGo4ListCond.h.

References fxValues.

Referenced by TGo4ConditionEditor::NPointsSpin_valueChanged().

void TGo4ListCond::SetValue ( UInt_t  ix,
Int_t  val 
)
inline

Definition at line 51 of file TGo4ListCond.h.

References fxValues.

Referenced by TGo4ConditionEditor::CutTable_valueChanged().

void TGo4ListCond::SetValues ( const Int_t  num,
const Int_t *  values 
)
virtual

Definition at line 46 of file TGo4ListCond.cxx.

References fxValues.

Referenced by TGo4Analysis::MakeListCond().

void TGo4ListCond::SetValues ( const Int_t  start,
const Int_t  stop,
const Int_t  step 
)
virtual

Definition at line 55 of file TGo4ListCond.cxx.

References fxValues.

Bool_t TGo4ListCond::Test ( Double_t  value)
virtual
Bool_t TGo4ListCond::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 115 of file TGo4ListCond.cxx.

References fxValues, GetNumValues(), GetValue(), and TGo4Condition::UpdateFrom().

Member Data Documentation

std::vector<Int_t> TGo4ListCond::fxValues
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 83 of file TGo4ListCond.h.

Referenced by GetNumValues(), GetValue(), GetXLow(), GetXUp(), InsertValue(), PrintValues(), RemoveValue(), Resize(), SetValue(), SetValues(), Test(), TGo4ListCond(), and UpdateFrom().


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