26 #include "TObjArray.h"
67 GCondition(
const char * name,
const char * title);
78 virtual void Copy(TObject &o)
const
84 virtual void SetVarName(
const Char_t * ,
const Char_t * =
"X")
94 virtual void Delete(Option_t* option =
"");
97 virtual Bool_t
IsPassed(Double_t, Double_t = 0.0)
const
122 virtual void UseAsAnti(Bool_t r =
false);
129 virtual Short_t
Import(
const char * =
"*",
const char * =
"gpad", Option_t * =
"+")
134 virtual Short_t
Export(
const char * =
"*",
const char * =
"MyCuts", Option_t * =
"")
const
140 virtual void Print(Option_t* option =
"")
const;
170 GCond1D(
const char * name,
const char * title);
175 virtual void Copy(TObject &o)
const
181 virtual void SetVarName(
const Char_t * var_name,
const Char_t * =
"X")
186 void Draw(Option_t* option =
"");
189 virtual void UseAsAnti(Bool_t r =
false);
195 virtual Bool_t
IsPassed(Double_t, Double_t = 0.0)
const;
208 virtual Short_t
Import(
const char *what =
"*",
const char *from =
"gpad", Option_t *opt =
"+");
215 virtual Short_t
Export(
const char *what =
"*",
const char *to =
"MyCuts", Option_t *opt =
"")
const;
241 GCond2D(
const char * name,
const char * title);
246 virtual void Copy(TObject &o)
const
251 void Draw(Option_t* option =
"");
254 virtual void SetVarName(
const Char_t * var_name,
const Char_t * which_var =
"X")
256 TString which(which_var);
264 TCutG *
AddWindow(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Option_t *opt =
"+");
267 virtual Bool_t
IsPassed(Double_t, Double_t)
const;
280 virtual Short_t
Import(
const char *what =
"*",
const char *from =
"gpad", Option_t *opt =
"+");
282 virtual Short_t
Export(
const char *what =
"*",
const char *to =
"MyCuts", Option_t *opt =
"")
const;
TObjArray fListOfConditions
virtual void Copy(TObject &o) const
virtual Bool_t IsPassed(Double_t, Double_t=0.0) const
returns true if the condition is passed with success
virtual void UseAsAnti(Bool_t r=false)
need to be redefined since Peak does not inherits from TAttFill
Base for a Graphical condition 2D.
GCondition * GetGCondition()
to get back the condition
virtual Short_t Import(const char *="*", const char *="gpad", Option_t *="+")
virtual void Browse(TBrowser *)
Browser means Draw.
virtual Bool_t IsPassed(Double_t, Double_t) const
returns true if the condition is passed with success
virtual Short_t Export(const char *="*", const char *="MyCuts", Option_t *="") const
const TObjArray & GetListOfConditions()
to get one by one the individual list of conditions
static const Style_t gAnticStyle
virtual Bool_t HasPassed(UInt_t i) const
Gw::Peak1D * CutToPeak(TCut *)
virtual void SetVarName(const Char_t *var_name, const Char_t *which_var="X")
Set var name.
virtual void Enable()
toggle on/off the cut. if off returns always passed
virtual Short_t Export(const char *what="*", const char *to="MyCuts", Option_t *opt="") const
Export 1D conditions.
virtual void SetVarName(const Char_t *, const Char_t *="X")
Set var name.
void Draw(Option_t *option="")
virtual Short_t Export(const char *what="*", const char *to="MyCuts", Option_t *opt="") const
virtual Short_t Import(const char *what="*", const char *from="gpad", Option_t *opt="+")
Import 2D conditions.
virtual void SetVarName(const Char_t *var_name, const Char_t *="X")
Set var name.
virtual Bool_t IsEnable() const
void Draw(Option_t *option="")
virtual Bool_t IsAnti() const
Gw::PeakCreator * WindowGCreator(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...
static Gw::Peak1D * TCutToPeak(TCut *)
TCut * PeakToCut(const Gw::Peak1D *) const
TCutG * AddWindow(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Option_t *opt="+")
Add a window to the list of conditions.
virtual Bool_t IsPassed(Double_t, Double_t=0.0) const
returns true if the condition is passed with success
virtual void WindowGCreator(const char *c_name="")
prepare current canvas to draw a TCutG.
virtual Short_t Import(const char *what="*", const char *from="gpad", Option_t *opt="+")
Import 1D conditions.
virtual void Copy(TObject &o) const
virtual void Delete(Option_t *option="")
delete all object from fListOfConditions
GCondHandler(GCondition *cond)
Base for a Graphical condition 1D.
virtual void Print(Option_t *option="") const
overwritte print method ... should be to gw log system
Gw::Peak1D * AddWindow(Double_t, Double_t, Option_t *opt="+")
Add a window to the list of conditions.
A graphical interface for placing schematic peak onto a 1D histogram with a given position...
virtual Bool_t HasPassed() const
return true if last condition has been passed. Set to false at the beginning of IsPassed ...
std::vector< Bool_t > fHasPassed_
Link between the leaf, the condition and the histogram.
virtual void UseAsAnti(Bool_t r=false)
to change gate into an anti gate
static const Style_t gCoincStyle
Base for a Graphical condition on a spectrum (1D, 2D)
virtual void Copy(TObject &o) const