Sort data from unpackdata watchers. More...
#include <GSIPrespecWatchers.h>
Public Member Functions | |
virtual void | Abort () |
virtual void | Add (TTask *) |
add only Watchers to the list of tasks to avoid problems. More... | |
virtual Int_t | AddTreeFormula (const Char_t *, const Char_t *) |
Add a general condition (see TTree::Draw()). Return the total number of expression in this watcher once added if success. More... | |
void | BuildSpectraByUser () |
define user spectra ... to be implementted by user only if it defines its ones spectra without conditions More... | |
virtual Int_t | CheckCond () |
to be overwitten in case you add your own conditions but TTreeWithConditions::CheckCond() should be called in the user method More... | |
virtual Int_t | CheckCondByHandler () |
virtual Int_t | CheckTreeFormula () |
virtual void | CleanTasks () |
overloaded for efficiency reasons. allocation of TIter is see in Shark (macos) as time consuming More... | |
virtual void | Continue () |
to remove them from the TTask menu More... | |
virtual void | Exec (Option_t *option="") |
In principle works for any watchers that inherits from it. More... | |
virtual void | FillSpectra () |
to be overwitten in case you add your own conditions/spectra More... | |
void | FillSpectraByUser () |
Fill user spectra ... to be implementted by user only if it defines its ones spectra without conditions. More... | |
virtual Bool_t | GetDeletePool () const |
get flag to delete objects in pool More... | |
virtual TDirectory * | GetDirectory (Option_t *opt="") |
to each watcher a TDirectory is associated More... | |
Short_t | GetDoSpectra () const |
to know spectra mode for this watcher More... | |
Short_t | GetDoTree () const |
to know spectra mode for this watcher More... | |
Short_t | GetLastError () const |
Short_t | GetLastExecStatus () const |
to get the last status More... | |
const std::vector< GCondition * > & | GetListOfGConditions () const |
virtual Int_t | GetNbConditions () const |
return the number of conditions registered in case this tree/branch has some More... | |
virtual TObjArray & | GetPoolOfObject () |
virtual TObjArray & | GetReference () |
SortData * | GetSortData () |
to get back the SortData More... | |
TTree * | GetTree () |
to get the current Tree More... | |
virtual ADF::DFTrigger * | GetTrigger () const |
To know the trigger in which the frame to be watched is embedded. More... | |
void | Pass () |
force fHasExecuted (recursively) to true More... | |
virtual void | SetBreakin (Int_t=1) |
virtual void | SetBreakout (Int_t=1) |
virtual void | SetDeletePool (Bool_t d) |
set flag to delete objects in pool More... | |
virtual void | SetDirectory (TDirectory *mother_dir_of_watcher, TDirectory *mother_dir_tag=0x0, Bool_t load_objects=true) |
to change the directory in which watcher's objects are stored More... | |
void | SetDoSpectra (Short_t do_spectra) |
to know spectra mode for this watcher More... | |
void | SetDoTree (Short_t do_tree) |
to know spectra mode for this watcher More... | |
void | SetLastError (Short_t s=0) |
TMP : migration to TreeWatcher with Cuts : should be removed. More... | |
void | SetLastExecStatus (Short_t s=0) |
reset last status. 0 means no error, 0 < means error, > 0 means ok with conditions More... | |
virtual Bool_t | SetTrigger (ADF::DFTrigger *=0x0) |
Set the trigger attached to this watcher. More... | |
void | ShowCanvas (Option_t *option="") |
Display some results. More... | |
virtual UInt_t | Snapshot (Option_t *="*") |
Save all histograms belonging to this watcher + conditions unless !cond is added. More... | |
Sort (const char *name, const char *title, TTree *tree=0x0, Short_t do_spectra=2, Short_t do_tree=2) | |
virtual void | Tag (Option_t *opt="") |
Tag the current watcher. More... | |
virtual Bool_t | TestTag (Option_t *opt) |
Compare the current spectra with the tagged ones using Kolmogorov test. More... | |
virtual void | Zero (Option_t *hname="pool", Option_t *binning="") |
watch the current frame ... to be overwritten by the watcher More... | |
virtual | ~Sort () |
Static Public Member Functions | |
static Watcher * | GetLastRegistered (const Char_t *classname, Option_t *opt="baseclass") |
to retrieve the last registered watcher of one type. More... | |
static const TList * | GetListOfWatchers () |
static void | SetFirst (Watcher *) |
move a watcher on top of the list More... | |
static void | SetGlobalDeletePool (Bool_t d) |
set static flag to delete objects in pool More... | |
Protected Member Functions | |
virtual void | AddBranches (TTree *tree) |
Add the specific branches filled by this watcher to the given tree. More... | |
void | AddToDir (TObject *, TDirectory *) |
TObject * | AddToPool (TObject *ob) |
facility for other watchers: keep a list of all histograms (objects) for global operations More... | |
virtual void | Clear (Option_t *="") |
Should be used to reset a various data filled by this watcher. More... | |
void | DirToDir (TDirectory *, TDirectory *, TObjArray &, Bool_t load_objects=true) |
utilities to add/move/remove objects from one dir to another one More... | |
virtual void | DoCanvas (TCanvas *, Option_t *) |
To be overwritten by real implementation if a canvas is produced. More... | |
void | DrawTag (TCanvas *, Option_t *) |
To display tagged histograms and their reference. More... | |
virtual void | FillBranches () |
Should be used to reset a various data filled by this watcher. More... | |
virtual void | FillTree () |
Fill the tree if it is the owner of the tree. More... | |
Bool_t | GetFromTrigger (ADF::DFTrigger *, const char *, ADF::SharedFP *&) |
Extract from the trigger and given frame pointer (usefull for other watchers) More... | |
Bool_t | GetPathOf (TFolder *f, TObject *searched, TString &path) |
in a folder look for the path to an elmement that is not a folder More... | |
TFolder * | GetSubFolder (TFolder *topfolder, const Char_t *sub="") |
for a new histogram, it returns the folder it belongs to. It creates sub and all intermediates if required More... | |
void | LoadObject (TObject *new_obj, TDirectory *root_dir) |
to specify what kind of watcher More... | |
Bool_t | MakeDir (TFolder *f, TDirectory *mother_dir, Bool_t do_top=true) |
in order to save/load, the structure of the top folders should exists in the root dir More... | |
virtual std::pair< GCond1D *, TH1 * > | MakeGCond1D (const Char_t *name_cond, const Char_t *title_cond, const Char_t *name_leaf, const Char_t *name_hist, const Char_t *title_hist, Int_t bin, Double_t min, Double_t max, Option_t *opt="F", const Char_t *sub="") |
Build a 1D condition using the given leaf. It allocates also the spectrum. More... | |
virtual GCond1D * | MakeGCond1D (const Char_t *name_cond, const Char_t *title_cond) |
Add a new condition. delete it done by the base class. It is the duty of the user to deal with the user and fill the needed spectra. More... | |
virtual std::pair< GCond2D *, TH2 * > | MakeGCond2D (const Char_t *name_cond, const Char_t *title_cond, const Char_t *name_leaf, const Char_t *name_hist, const Char_t *title_hist, Int_t binx, Double_t xmin, Double_t xmax, Int_t biny, Double_t ymin, Double_t ymax, Option_t *opt="F", const Char_t *sub="") |
Build a 2D condition using the given leaves. It allocates also the spectrum. More... | |
virtual GCond2D * | MakeGCond2D (const Char_t *name_cond, const Char_t *title_cond) |
template<typename Histo_T > | |
Histo_T * | MakeTH1 (const Char_t *hname, const Char_t *htitle, Int_t binx, Double_t xmin, Double_t xmax, const Char_t *sub="") |
Build an histogram, set it to sub directories if required and add it to the pool. More... | |
template<typename Histo_T > | |
Histo_T * | MakeTH2 (const Char_t *hname, const Char_t *htitle, Int_t binx, Double_t xmin, Double_t xmax, Int_t biny, Double_t ymin, Double_t ymax, const Char_t *sub="") |
template<typename Histo_T > | |
Histo_T * | MakeTH3 (const Char_t *hname, const Char_t *htitle, Int_t binx, Double_t xmin, Double_t xmax, Int_t biny, Double_t ymin, Double_t ymax, Int_t binz, Double_t zmin, Double_t zmax, const Char_t *sub="") |
TCanvas * | NewCanvas (Option_t *) |
It creates a new embedded canvas. More... | |
void | RemoveFromDir (TObject *, TDirectory *) |
virtual void | SetBranches () |
add branches to the tree and the ciruclar tree More... | |
void | TagOn (TObject *) |
Add this histogram to the list of tagged histograms. More... | |
Protected Attributes | |
std::vector< GCondition * > | fAllGCond |
list of all conditions. Used for external and to delete them More... | |
TTree * | fClone |
Clone of the tree part filled by this watcher with only one entry. Used to test Formulas. More... | |
std::list< GCondHandler * > | fCondHandler |
conditions and spectra are automaticaly handled by the base class More... | |
TDirectory * | fDirectory |
Objects are in folders. They can be saved/load in/from directory. This is the mother in which this watcher directory is set. More... | |
Short_t | fDoSpectra |
Short_t | fDoTree |
Bool_t | fIsOwner |
LogMessage | fLog |
ADF::SharedFP * | fMBSFrame |
MBS data are encapsulated in an ADF Frame. More... | |
TTree * | fMyTree |
Short_t | fNbConditions |
SortClass * | fSortClass |
helper class to sort data from an UnpackData, see prespec library More... | |
SortData * | fSortData |
SortData, see prespec library. More... | |
TDirectory * | fTagDirectory |
Tagged Objects are in folders. They can be saved/load in/from directory. This is the mother in which this watcher directory is set. More... | |
TFolder * | fTopFolder |
Top folder in which ae stored all spectra. More... | |
TH1 * | fTrigger |
UnpackData * | fUnpackData |
Unpack step is mandatory before calling this. More... | |
std::list< GCondition * > | fUserGCond |
list of conditions defined by the user. spectra are built/filled by the user More... | |
std::vector< TTreeFormula * > | fUserTFCond |
list of formula defined by the user to apply conditions More... | |
Static Protected Attributes | |
static TString | gDefaultPathOfOut = "./Out" |
some global strings to fix the Output directory where the Tree is to be written and its default name More... | |
static TString | gDefaultTTreeName = "TreeMaster" |
Sort data from unpackdata watchers.
Definition at line 99 of file GSIPrespecWatchers.h.