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

Crystal spectra watcher class. More...

#include <CrystalWatchers.h>

Inheritance diagram for CrystalSpectra:

Public Member Functions

virtual void Abort ()
 
virtual void Add (TTask *)
 add only Watchers to the list of tasks to avoid problems. More...
 
TCanvas * BuildSegmentedCanvas (TString CanvasName, TString CanvasTitle)
 
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...
 
 CrystalSpectra (const char *name="CrystalSpectra", const char *title="Display the values for one crystal at the producer level")
 Crystal spectra watcher class. More...
 
virtual void Exec (const char *="Amp calib 60Co Dino all")
 
virtual void Exec (Option_t *option="")
 change for that signal baseline, threshold and overshoot More...
 
virtual void Exec (Option_t *option="")
 change for that signal baseline, threshold and overshoot More...
 
virtual void Exec (Option_t *option="")
 change for that signal baseline, threshold and overshoot More...
 
virtual void FullRangeAll (const char *x_y="xy")
 
virtual void FullRangePerPad (const char *x_y="xy")
 
virtual void FullRangeSelectedPad (const char *x_y="xy")
 
TString GetCrystalNameFromID (int ID)
 
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 GetLastError () const
 
Short_t GetLastExecStatus () const
 to get the last status More...
 
virtual TObjArray & GetPoolOfObject ()
 
virtual TObjArray & GetReference ()
 
virtual ADF::DFTriggerGetTrigger () const
 To know the trigger in which the frame to be watched is embedded. More...
 
virtual void GlobalAutoRange (const char *opt="xy")
 
virtual void LogX ()
 
virtual void LogY ()
 
virtual void LogZ ()
 
TCanvas * NewCanvas (TString cname, TString ctitle)
 
void Pass ()
 force fHasExecuted (recursively) to true More...
 
virtual void SetBreakin (Int_t=1)
 
virtual void SetBreakout (Int_t=1)
 
void SetCrystal (TString name)
 
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, Bool_t load_objects=true)
 to change the directory in which watcher's objects are stored More...
 
virtual void SetHRange (Double_t min, Double_t max)
 change horizontal range 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...
 
void SetListOfLibrairies (TList *l)
 
virtual void SetLoupe (bool loupeon=true)
 
virtual void SetRange (double min, double max, const char *x_y="y")
 
virtual Bool_t SetTrigger (ADF::DFTrigger *=0x0)
 Set the trigger attached to this watcher. More...
 
virtual Bool_t SetTrigger (ADF::DFTrigger *=0x0)
 Set the trigger attached to this watcher. More...
 
virtual Bool_t SetTrigger (ADF::DFTrigger *=0x0)
 Set the trigger attached to this watcher. More...
 
virtual void SetVRange (Int_t min, Int_t max)
 change vertical range More...
 
virtual void ShowArrow (Int_t)
 
virtual void ShowBaselinesMap (const char *option="")
 
virtual void ShowCanvas (Option_t)
 
void ShowCanvas (Option_t *option="")
 Display some results. More...
 
virtual void ShowHist (int HistNumber, int LibraryNumber=1, bool same=false)
 
virtual void ShowLastOnes ()
 
virtual void ShowSignalsMap (int NbrOfSignals=1)
 
virtual void ShowSpectraMap (const char *option="")
 
virtual UInt_t Snapshot (Option_t *="*")
 change kind of Watcher More...
 
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 Unzoom (const char *x_y_xy="xy")
 
virtual void UnZoom (const char *x_y="y")
 
virtual void UnzoomSelected (const char *x_y_xy="xy")
 
virtual void Zero (Option_t *hname="pool", Option_t *binning="")
 watch the current frame ... to be overwritten by the watcher More...
 
virtual ~CrystalSpectra ()
 

Static Public Member Functions

static WatcherGetLastRegistered (const Char_t *classname, Option_t *opt="baseclass")
 to retrieve the last registered watcher of one type. More...
 
static const TList * GetListOfWatchers ()
 
static Bool_t OpenContextMenu (const char *method, TObject *obj, const char *alt_method_name="")
 
static void SetDefaultArrow (Double_t baseline, Double_t threshold, Double_t overshoot, Double_t pos=10, Double_t length=1000)
 overwritten to add some help More...
 
static void SetDefaultArrow (Double_t baseline, Double_t threshold, Double_t overshoot, Double_t pos=10, Double_t length=1000)
 overwritten to add some help More...
 
static void SetDefaultArrow (Double_t baseline, Double_t threshold, Double_t overshoot, Double_t pos=10, Double_t length=1000)
 overwritten to add some help More...
 
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...
 

Public Attributes

TList * fListOfLibrairies
 

Static Public Attributes

static const Short_t gkNB_SIG = 10
 

Protected Member Functions

void AddToDir (TObject *, TDirectory *)
 
TObject * AddToPool (TObject *ob)
 facility for other watchers: keep a list of all histograms (objects) for global operations 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 *c, Option_t *)
 To be overwritten by real implementation if a canvas is produced. More...
 
virtual void DoCanvas (TCanvas *c, Option_t *)
 To be overwritten by real implementation if a canvas is produced. More...
 
virtual void DoCanvas (TCanvas *c, 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...
 
Color_t GetColor (int i)
 
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...
 
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 ProcessSignal (Signal *, TH1 *h=0x0)
 Extract from signal some quantities Baseline, Amplitude, T0. More...
 
void ProcessSignal (Signal *, TH1 *h=0x0)
 Extract from signal some quantities Baseline, Amplitude, T0. More...
 
void ProcessSignal (Signal *, TH1 *h=0x0)
 Extract from signal some quantities Baseline, Amplitude, T0. More...
 
void ProcessSignalBasic (Signal *, TH1 *h=0x0)
 
void ProcessSignalBasic (Signal *, TH1 *h=0x0)
 
void ProcessSignalBasic (Signal *, TH1 *h=0x0)
 
void RemoveFromDir (TObject *, TDirectory *)
 
void TagOn (TObject *)
 Add this histogram to the list of tagged histograms. More...
 

Protected Attributes

TObjArray * fAmplitudes
 
TObjArray * fBaseLines
 Baseline for the different channels core and segments. More...
 
TObjArray fBaseLinesArrows
 contains arrows corresponding respectively to baseline, threshold and overshoot for all detector More...
 
BashColorfBashColor
 
TCanvas * fCanvas
 
TH2 * fCoinc
 Coincidence between segments [signals above the threshold]. More...
 
std::vector< Int_t > fCoincOverShoot
 
std::vector< Int_t > fCoincThreshold
 to keep event by event the list of signals and overshoot More...
 
TObjArray * fCor
 
TH2 * fCoreCoinc
 Core correlation core0 versus core1. More...
 
TString fCrystalName
 
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...
 
TH2 * fEnergies
 Energie for the different channels core and segments. More...
 
SharedFPfFrame
 
std::vector< Double_t > fFromSignal
 Some characteritics extracted from the signal. More...
 
vector< PadPosfHistPositionList
 
Double_t fHMax
 
Double_t fHMin
 
TH3 * fHOvershoot
 
TH3 * fHThreshold
 keep statistcis for threshold and overshoot More...
 
LogMessage fLog
 
int fNbrOfSignals
 
int fNPadsX
 
int fNPadsY
 
TString fObservableName
 
TString fObservableTitle
 
TObjArray fOvershootArrows
 
vector< HistPosfPadPositionList
 
TObjArray * fSeg
 Array of last gkNB_SIG signals for core and segments. More...
 
TObjArray * fSpectra
 
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...
 
TObjArray fThresholdArrows
 
TFolder * fTopFolder
 Top folder in which ae stored all spectra. More...
 
ADF::DFTriggerfTrigger
 trigger associated to this watcher More...
 
Int_t fVMax
 
Int_t fVMin
 to change the range to diplay signals More...
 

Detailed Description

Crystal spectra watcher class.

Definition at line 180 of file GANIL/CrystalWatchers.h.


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