KaliVeda
Toolkit for HIC analysis
KVFAZIAReader.h
1 
8 #ifndef KVFAZIAReader_h
9 #define KVFAZIAReader_h
10 
11 #include <TChain.h>
12 #include <TSelector.h>
13 #include <KVFAZIARawEvent.h>
14 #include <KVDetectorEvent.h>
15 
18 
25 class KVFAZIAReader : public TSelector {
26 
28 
34 
35 public :
36 
38  {
39  fCurrentRun = -1;
41  RawEvent = 0;
42  fDetEv = new KVDetectorEvent();
43  }
44  virtual ~KVFAZIAReader()
45  {
47  }
48  virtual Int_t Version() const
49  {
50  return 3;
51  }
52 
53  virtual void SlaveBegin(TTree* tree);
54  virtual void Init(TTree* tree);
55  virtual Bool_t Notify();
56 
57  virtual Bool_t Process(Long64_t entry);
58  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0);
59 
60  virtual void Terminate();
61 
62 
63  /* methods to be derived in child classes*/
64  virtual void InitAnalysis() {} //Called by Init()
65  virtual void InitRun() {} //Called by Notify()
66  virtual Bool_t Analysis()
67  {
68  return kTRUE; //Called by Process()
69  }
70  virtual void EndRun() {} //Called by Notify() and Terminate()
71  virtual void EndAnalysis() {} //Called by Terminate()
73 
75  {
76  return fCurrentRun;
77  }
79  {
80  return fEventsRead;
81  }
83  {
84  return RawEvent;
85  }
87  {
88  return fDetEv;
89  }
90 
91  static void Make(const Char_t* kvsname = "MyOwnKVFAZIAReader");
92 
94 };
95 
96 #endif
int Int_t
#define SafeDelete(p)
bool Bool_t
char Char_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
List of hit groups in a multidetector array.
Obsolete raw data class for FAZIA.
Read FAZIA data.
Definition: KVFAZIAReader.h:25
virtual ~KVFAZIAReader()
Definition: KVFAZIAReader.h:44
virtual void InitAnalysis()
Definition: KVFAZIAReader.h:64
virtual Bool_t Process(Long64_t entry)
virtual void Init(TTree *tree)
virtual void Terminate()
virtual Bool_t Analysis()
Definition: KVFAZIAReader.h:66
Int_t GetCurrentRunNumber() const
Definition: KVFAZIAReader.h:74
virtual Int_t Version() const
Definition: KVFAZIAReader.h:48
KVFAZIARawEvent * GetEvent() const
Definition: KVFAZIAReader.h:82
ClassDef(KVFAZIAReader, 0)
KVDetectorEvent * fDetEv
Definition: KVFAZIAReader.h:33
TTree * fChain
pointer to the analyzed TTree or TChain
Definition: KVFAZIAReader.h:27
KVDetectorEvent * GetDetectorEvent() const
Definition: KVFAZIAReader.h:86
virtual void EndAnalysis()
Definition: KVFAZIAReader.h:71
static void Make(const Char_t *kvsname="MyOwnKVFAZIAReader")
Automatic generation of KVFAZIAReader-derived class for KaliVeda analysis.
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
virtual void SlaveBegin(TTree *tree)
Int_t GetNumberOfReadEntries() const
Definition: KVFAZIAReader.h:78
KVFAZIARawEvent * RawEvent
Definition: KVFAZIAReader.h:32
Bool_t fNotifyCalled
Definition: KVFAZIAReader.h:31
virtual Bool_t Notify()
virtual void EndRun()
Definition: KVFAZIAReader.h:70
virtual void InitRun()
Definition: KVFAZIAReader.h:65
long long Long64_t