KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVFAZIAReader.h
1
7
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
25class KVFAZIAReader : public TSelector {
26
28
34
35public :
36
38 {
39 fCurrentRun = -1;
41 RawEvent = 0;
42 fDetEv = new KVDetectorEvent();
43 }
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.
virtual ~KVFAZIAReader()
virtual void InitAnalysis()
virtual Bool_t Process(Long64_t entry)
virtual void Terminate()
virtual Bool_t Analysis()
KVFAZIARawEvent * GetEvent() const
Int_t GetCurrentRunNumber() const
virtual Int_t Version() const
KVDetectorEvent * GetDetectorEvent() const
ClassDef(KVFAZIAReader, 0)
KVDetectorEvent * fDetEv
TTree * fChain
pointer to the analyzed TTree or TChain
virtual void EndAnalysis()
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
KVFAZIARawEvent * RawEvent
Bool_t fNotifyCalled
virtual Bool_t Notify()
virtual void EndRun()
virtual void InitRun()
long long Long64_t