KaliVeda
Toolkit for HIC analysis
KVReconEventSelector.h
1 
4 #ifndef __KVRECONEVENTSELECTOR_H
5 #define __KVRECONEVENTSELECTOR_H
6 
7 #include "KVEventSelector.h"
8 #include "KVDBRun.h"
9 #include "KVReconstructedEvent.h"
10 
21  KVDBRun* fCurrentRun;
22 
23 public:
24  KVReconEventSelector(TTree* arg1 = 0) : KVEventSelector(arg1), fCurrentRun(nullptr)
25  {
26  SetBranchName("ReconEvent");
27  }
28  virtual ~KVReconEventSelector() {}
29 
30  void SetCurrentRun(KVDBRun* r) override
31  {
32  fCurrentRun = r;
33  }
35  {
36  return fCurrentRun;
37  }
38  void Init(TTree* tree) override;
39 
41  {
44  return GetEvent()->GetNumber();
45  }
47  {
49  }
50  static void Make(const Char_t* kvsname);
51 
52  ClassDefOverride(KVReconEventSelector, 1) //Base analysis class for reconstructed data
53 };
54 
55 #endif
int Int_t
ROOT::R::TRInterface & r
char Char_t
#define ClassDefOverride(name, id)
UInt_t GetNumber() const
Definition: KVBase.h:220
Description of an experimental run in database ,,.
Definition: KVDBRun.h:41
General purpose analysis base class for TTree containing KVEvent objects.
void SetBranchName(const Char_t *n)
KVEvent * GetEvent() const
Base class for user analysis of reconstructed data.
void Init(TTree *tree) override
When using PROOF, need to set tree pointer in KVDataAnalyser.
void SetCurrentRun(KVDBRun *r) override
KVReconEventSelector(TTree *arg1=0)
KVDBRun * GetCurrentRun() const
KVReconstructedEvent * GetEvent() const
static void Make(const Char_t *kvsname)
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.