GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::GCond1D Class Reference

Base for a Graphical condition 1D. More...

#include <GCondition.h>

Inheritance diagram for Gw::GCond1D:

Public Member Functions

Gw::Peak1DAddWindow (Double_t, Double_t, Option_t *opt="+")
 Add a window to the list of conditions. More...
 
virtual void Browse (TBrowser *)
 Browser means Draw. More...
 
virtual void Copy (TObject &o) const
 
virtual void Delete (Option_t *option="")
 delete all object from fListOfConditions More...
 
void Draw (Option_t *option="")
 
virtual void Enable ()
 toggle on/off the cut. if off returns always passed More...
 
virtual Short_t Export (const char *what="*", const char *to="MyCuts", Option_t *opt="") const
 Export 1D conditions. More...
 
 GCond1D ()
 
 GCond1D (const char *name, const char *title)
 
 GCond1D (const GCond1D &p)
 
const TObjArray & GetListOfConditions ()
 to get one by one the individual list of conditions More...
 
virtual Bool_t HasPassed () const
 return true if last condition has been passed. Set to false at the beginning of IsPassed More...
 
virtual Bool_t HasPassed (UInt_t i) const
 
virtual Short_t Import (const char *what="*", const char *from="gpad", Option_t *opt="+")
 Import 1D conditions. More...
 
virtual Bool_t IsAnti () const
 
virtual Bool_t IsEnable () const
 
virtual Bool_t IsPassed (Double_t, Double_t=0.0) const
 returns true if the condition is passed with success More...
 
virtual void Print (Option_t *option="") const
 overwritte print method ... should be to gw log system More...
 
virtual void SetVarName (const Char_t *var_name, const Char_t *="X")
 Set var name. More...
 
virtual void UseAsAnti (Bool_t r=false)
 need to be redefined since Peak does not inherits from TAttFill More...
 
Gw::PeakCreatorWindowGCreator (const char *c_name="")
 add to the current canvas the way to add graphically 1D gates (type h after in the canvas to get list of commands) More...
 
virtual ~GCond1D ()
 

Static Public Member Functions

static Gw::Peak1DTCutToPeak (TCut *)
 

Static Public Attributes

static const Style_t gAnticStyle = 3005
 
static const Style_t gCoincStyle = 3004
 

Protected Member Functions

Gw::Peak1DCutToPeak (TCut *)
 
TCut * PeakToCut (const Gw::Peak1D *) const
 

Protected Attributes

Bool_t fEnable
 
Bool_t fExpectedResult
 
Bool_t fHasPassed
 
std::vector< Bool_t > fHasPassed_
 
TObjArray fListOfConditions
 

Detailed Description

Base for a Graphical condition 1D.

a GCond1 is a serie of conditions [min,max]. The real Test is an OR of all individual tests

The real implementation is a list of Peak1D that are used as gates. In case of Export to ROOT world, it is converted in TCut

Definition at line 154 of file GCondition.h.


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