22 #ifndef _EXOILLWatchers
23 #define _EXOILLWatchers
74 Watcher(
"BaseEXOILLWatcher",
"BaseEXOILLWatcher"),
84 BaseEXOILLWatcher(
const char *name,
const char *title, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0):
85 Watcher(name,title,sp_dir,tag_dir),
91 virtual Bool_t LoadConfig(
const Char_t *fname =
"EXOILLWatcher.conf");
98 virtual void Exec(Option_t * option=
"");
108 static const Int_t time_depth = 15;
112 std::vector< ULong64_t > fTimelineUID;
114 std::pair<UShort_t, ULong64_t> fTimeline;
122 TObjArray fADCSpectra;
126 TObjArray fTSSpectra;
133 void FindCo60(TH1 *h, TList &list_of_peaks);
134 void FindEu152(TH1 *h, TList &list_of_peaks,
const TF1 *fcalib);
135 void FindBaCl2(TH1 *h, TList &list_of_peaks,
const TF1 *fcalib);
137 void Calibrate(TH1 *h, TF1 *
function,
const TList & peaks);
144 virtual void Exec(Option_t * option=
"");
146 void ProcessDisplayPeaks(Int_t np_peaks,
const Double_t peaks[], Option_t *fit);
153 void AlignTS(Option_t * opt =
"dry", Option_t *algo =
"mean");
156 void Calib(
const Char_t *what_source =
"Co60", Option_t * opt =
"dry", Option_t* DefFileName =
"CalibStorage.txt");
159 void SearchParameters(Double_t sig = 2.0, Double_t thre = 0.05);
162 void DisplayPeaks(Option_t *opt =
"BaCl", Option_t *fit =
"fitted" );
165 void SaveMAP(
const Char_t *fname =
"NOMADMap.conf.new", Option_t *opt =
"");
198 virtual void Exec(Option_t * option=
"");
211 static const Int_t fConditions = 1;
213 std::vector< std::pair<Float_t, Float_t> > fListOfGates;
220 GatedGG(
const char *name,
const char *title);
224 virtual void Exec(Option_t * option=
"");
236 static const Int_t MaxGamma = 500;
244 Float_t E [MaxGamma];
248 virtual void SetBranches();
251 MyILLTree(
const char *name,
const char *title, TTree *tree = 0x0);
255 virtual void Exec(Option_t * option=
"");
std::vector< NOMADEvent * > fACEvent
SharedFP * fFrame
the frame to be watched
Base class for a Watcher.
Base class for a watcher for EXOGAM.
BaseEXOILLWatcher(const char *name, const char *title, TDirectory *sp_dir=0x0, TDirectory *tag_dir=0x0)
Base class for a Watcher that fill a TTree or some branches of a TTree.
std::vector< NOMADEvent * > fGEEvent
subevent per type
virtual ~BaseEXOILLWatcher()
ULong64_t fCurrentTS
Global TS for the current event.
Base class for building control spectra and calibrate.
Built some correlation matrices.
std::vector< NOMADEvent * > fLAEvent
Base class for a trigger on a data flow.
Shows how to save data in a TTree.
std::vector< NOMADEvent > fEvent
subevents
UInt_t fNbSubEvent
number of subevents read from fFrame
Bool_t fIsEvent
true is the frame contains and event i.e. if frame version is 0,1. false if frame version is 0...