KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFAZIAReader.h
Go to the documentation of this file.
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 
24 class KVFAZIAReader : public TSelector {
25 
27 
32  KVDetectorEvent* fDetEv;
33 
34 public :
35 
37  {
38  fCurrentRun = -1;
40  RawEvent = 0;
41  fDetEv = new KVDetectorEvent();
42  }
43  virtual ~KVFAZIAReader()
44  {
46  }
47  virtual Int_t Version() const
48  {
49  return 3;
50  }
51 
52  virtual void SlaveBegin(TTree* tree);
53  virtual void Init(TTree* tree);
54  virtual Bool_t Notify();
55 
56  virtual Bool_t Process(Long64_t entry);
57  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0);
58 
59  virtual void Terminate();
60 
61 
62  /* methods to be derived in child classes*/
63  virtual void InitAnalysis() {} //Called by Init()
64  virtual void InitRun() {} //Called by Notify()
65  virtual Bool_t Analysis()
66  {
67  return kTRUE; //Called by Process()
68  }
69  virtual void EndRun() {} //Called by Notify() and Terminate()
70  virtual void EndAnalysis() {} //Called by Terminate()
72 
74  {
75  return fCurrentRun;
76  }
78  {
79  return fEventsRead;
80  }
82  {
83  return RawEvent;
84  }
85  KVDetectorEvent* GetDetectorEvent() const
86  {
87  return fDetEv;
88  }
89 
90  static void Make(const Char_t* kvsname = "MyOwnKVFAZIAReader");
91 
93 };
94 
95 #endif
int Int_t
#define SafeDelete(p)
char Char_t
const Bool_t kFALSE
bool Bool_t
const Bool_t kTRUE
Obsolete raw data class for FAZIA.
Read FAZIA data.
Definition: KVFAZIAReader.h:24
virtual ~KVFAZIAReader()
Definition: KVFAZIAReader.h:43
virtual void InitAnalysis()
Definition: KVFAZIAReader.h:63
virtual Bool_t Process(Long64_t entry)
virtual void Init(TTree *tree)
virtual void Terminate()
virtual Bool_t Analysis()
Definition: KVFAZIAReader.h:65
Int_t GetCurrentRunNumber() const
Definition: KVFAZIAReader.h:73
virtual Int_t Version() const
Definition: KVFAZIAReader.h:47
KVFAZIARawEvent * GetEvent() const
Definition: KVFAZIAReader.h:81
ClassDef(KVFAZIAReader, 0)
KVDetectorEvent * fDetEv
Definition: KVFAZIAReader.h:32
TTree * fChain
pointer to the analyzed TTree or TChain
Definition: KVFAZIAReader.h:26
KVDetectorEvent * GetDetectorEvent() const
Definition: KVFAZIAReader.h:85
virtual void EndAnalysis()
Definition: KVFAZIAReader.h:70
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:77
KVFAZIARawEvent * RawEvent
Definition: KVFAZIAReader.h:31
Bool_t fNotifyCalled
Definition: KVFAZIAReader.h:30
virtual Bool_t Notify()
virtual void EndRun()
Definition: KVFAZIAReader.h:69
virtual void InitRun()
Definition: KVFAZIAReader.h:64
long long Long64_t