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

Base for a Graphical condition on a spectrum (1D, 2D) More...

#include <GCondition.h>

Inheritance diagram for Gw::GCondition:

Public Member Functions

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...
 
virtual void Enable ()
 toggle on/off the cut. if off returns always passed More...
 
virtual Short_t Export (const char *="*", const char *="MyCuts", Option_t *="") const
 
 GCondition ()
 
 GCondition (const char *name, const char *title)
 
 GCondition (const GCondition &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 *="*", const char *="gpad", Option_t *="+")
 
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 *, const Char_t *="X")
 Set var name. More...
 
virtual void UseAsAnti (Bool_t r=false)
 to change gate into an anti gate More...
 
virtual ~GCondition ()
 

Static Public Attributes

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

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 on a spectrum (1D, 2D)

A graphical condition is an helper class to use GW/ROOT Peak/TGcut to be used to apply conditions on a spectra. If Disabled (use Enable), the test is always passed while enable really test the input. As well it could be usd as a condition or an anti-condition using UseAsAnti. Default is condition

Import/Export methods allow to Import/Export conditions in different formats.

Definition at line 49 of file GCondition.h.


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