24 #ifndef _GANILWatchers
25 #define _GANILWatchers
39 class MFMEbyedatFrame;
53 enum EGTYPE {
kUnknown = 0,
kCobo,
kCoboF,
kNumexo2,
kOscillo,
kRaw,
kEBYEN,
kEBYTS,
kEBYENTS,
kMergeEN,
kMergeTS,
kMax } ;
86 virtual Int_t
ReadActionFile(std::string full_name_of_action_file =
"");
112 virtual void DoCanvas(TCanvas *c, Option_t *);
118 MFMWatcher(
const char *,
const char *, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
125 virtual Int_t
ReadActionFile(std::string full_name_of_action_file =
"");
128 virtual void Exec(Option_t *option=
"");
152 RawMFMTree(
const char *name,
const char *title, TTree *tree = 0x0);
160 virtual void Exec(Option_t *option=
"");
203 std::vector< std::pair<Int_t,ULong64_t> >
fVTS;
204 std::vector< std::pair<Int_t,ULong64_t> >
fT;
207 std::vector< std::pair<std::pair<Int_t,Int_t>,Float_t> >
fAGATAE;
218 unsigned int fNVTSRev;
219 unsigned int fNCentrumRev;
221 TH1F *fTimeStampSpread;
229 AGATAVAMOSCoinc(
const char *,
const char *, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
236 virtual void Print(Option_t *option=
"")
const;
242 virtual void Exec(Option_t *option=
"");
250 #include "DetectorsDefs.hh"
251 #include "Identification.hh"
252 #include "TimeStamp.hh"
253 #include "TargetPos.hh"
311 virtual void DoCanvas(TCanvas *c, Option_t *);
316 virtual void AddBranches(TTree *tree)
322 virtual void FillBranches();
324 virtual void Clear(Option_t * =
"");
327 void RetriveHistograms();
328 void RetrivePointers();
331 VAMOSWatcher(
const char *name,
const char *title, TTree *tree = 0x0);
332 virtual ~VAMOSWatcher();
341 inline Identification* GetId(){
return Id;};
344 inline TargetPos *GetTP(){
return TP;};
351 virtual void InitVAMOS(UShort_t fMode, Option_t *opt =
"tmp_histo_vamos.root", Int_t RunNr = -1,
const Char_t * OutDir=
"./Out");
354 virtual Float_t SetBrhoRef(Float_t brho = 1.0);
356 virtual Float_t GetBrhoRef()
362 virtual void Exec(Option_t *option=
"");
364 ClassDef(VAMOSWatcher,0)
367 #include "MetaWatchers.h"
373 VAMOSWatcher *fVAMOSWatcher;
378 VAMOSVertexBuilder(
const char *,
const char *);
379 virtual ~VAMOSVertexBuilder()
388 virtual void Exec(Option_t *option=
"");
391 ClassDef(VAMOSVertexBuilder,0)
TH2 * fTimeCorrelation
time correlation AGATA versus VAMOS i.e. Delta[TSAGATA-VTS] versus TimeOfFlight
ADF::Frame * fPSAFrame
current PSA frame to help decoding one by one
virtual void SetBranches()=0
virtual Bool_t SetTrigger(ADF::DFTrigger *=0x0)
set trigger in which one can retrieve encapsulated MFM Frame
MFMEbyedatFrame * fEBYFrame
used to decode depending of the MFM type
Interface for any watcher that is a VertexBuilder.
Int_t fEGTYPE
To get the EG TYPE.
EGTYPE
enum to have categories of type of frame. Convenient for histogramming ...
virtual void DoCanvas(TCanvas *, Option_t *)
To be overwritten by real implementation if a canvas is produced.
MFMCommonFrame * fInsideFrame
virtual ~GANILInterface()
TH1 * fCoreCommomVamos
All GE.
virtual ~AGATAVAMOSCoinc()
AGATAVAMOSCoinc(const char *, const char *, TDirectory *sp_dir=0x0, TDirectory *tag_dir=0x0)
TH1D * fLabelsDistribution
DataParameters * fDataParameters
use to decode the Raw MFM frame
MFMWatcher, to check the structure of the MBS Frame.
virtual void Exec(Option_t *option="")
watch the current frame
std::pair< Int_t, ULong64_t > fMW05
Bool_t ADF2MFM()
Move current ADF Frame to MFM.
ADF::SharedFP * fEventPSA
main frame i.e. event:data:psa
RawMFMTree, branches that contains value/label as written in the MFM Frame.
Base class for a Watcher.
std::vector< std::pair< Int_t, ULong64_t > > fT
std::vector< TH2 * > fGAGATAxGVAMOS
correlation Gamma e-energy AGATA versus VAMOS
virtual void SetBranches()
virtual Bool_t SetTrigger(ADF::DFTrigger *=0x0)
set trigger in which one can retrieve encapsulated MFM Frame
Base class for a Watcher that fill a TTree or some branches of a TTree.
header file for PSAFrame.cpp
void ShowCoreCommomAndSumSpectra()
MFMCommonFrame * fMFMFrame
always filled
MFMWatcher(const char *, const char *, TDirectory *sp_dir=0x0, TDirectory *tag_dir=0x0)
void ShowCrystalSpectra()
virtual void Exec(Option_t *option="")
watch the current frame
GANILInterce, base class for all GANIL based watchers.
RawMFMTree(const char *name, const char *title, TTree *tree=0x0)
MFMMergeFrame * fMergedFrame
std::vector< std::pair< Int_t, ULong64_t > > fVTS
To build some basic VAMOS Spectra and Coincidences with AGATA [Requires Event:data:psa].
Base class for a trigger on a data flow.
ADF::PSAInterface * GetDataPSA(UInt_t which)
To get one by one the PSA Frames in one event (It fills fFramePSA). Read has beed called ! ...
virtual void Print(Option_t *option="") const
UInt_t GetNbFramePSA()
number of PSA Frames extracted from the current event
std::string gActionDefault
Default file for ACTIONS.
std::string gActionDefault
virtual void Exec(Option_t *option="")
watch the current frame
virtual Bool_t SetTrigger(ADF::DFTrigger *)
To set the Frames (through a trigger) associated to this watcher.
std::vector< std::pair< std::pair< Int_t, Int_t >, Float_t > > fAGATAE
virtual Int_t ReadActionFile(std::string full_name_of_action_file="")
read the file that contains the mapping. It returns the numbers of parameters, otherwise 0 ...
virtual Int_t ReadActionFile(std::string full_name_of_action_file="")
read the file that contains the mapping. It returns the numbers of parameters, otherwise 0 ...
ADF::SharedFP * fMFMinADFFrame
Pointer to the Ancillary Frame as delivered by the ADF Trigger.
virtual Bool_t SetTrigger(ADF::DFTrigger *=0x0)
set trigger in which one can retrieve encapsulated MFM Frame
std::string fActionCurrent
Current actions files.
TH1D * fMeanNumberOfValues
virtual void DoCanvas(TCanvas *c, Option_t *)
To be overwritten by real implementation if a canvas is produced.
std::pair< Int_t, ULong64_t > fRawToF
static const Int_t MaxValues