KaliVeda
Toolkit for HIC analysis
KVFAZIASelector.h
1 
4 #ifndef __KVFAZIASelector_H
5 #define __KVFAZIASelector_H
6 
7 #include "KVEventSelector.h"
8 #include "KVFAZIARawEvent.h"
9 
18 
19 protected:
20 
22 
26 
30 
31  void SetAutomaticManagementOfOutputs(Bool_t automatic = kTRUE);
34 
35 public:
37  {
38  rawdatabranchname = "rawevent";
39  SetBranchName("FAZIAReconEvent");
40  SetEventsReadInterval(10000);
42  };
43 
44  virtual ~KVFAZIASelector() {};
45 
46  virtual void SlaveBegin(TTree* tree);
47  virtual void Init(TTree* tree);
48  virtual Bool_t Notify();
49  virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0)
50  {
51  if (RawEvent) RawEvent->Clear();
52  Int_t res = fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0;
53  if (NeedToReadRawData() && RawEvent)
55  return res;
56  }
58  {
59  return fCurrentRun;
60  }
61 
63  {
64  return fRawData;
65  }
67  {
68  return fRawData = need;
69  }
70  void LinkRawData();
72 
73  virtual void ParseOptions();
74 
75  static void Make(const Char_t* kvsname = "MyOwnFAZIASelector");
76  static void CheckListOfWellEndedRuns(const Char_t* kvsname, const Char_t* dsname);
77  static void MergeListOfEndedRuns(const Char_t* kvsname, const Char_t* dsname);
78  static void GetMissingRunsListing(const Char_t* kvsname, const Char_t* dsname);
79  static void CheckBatchOutputFiles(const Char_t* kvsname, Bool_t eraseafter = kFALSE);
80 
81  virtual void CheckEndOfRun();
82 
83  ClassDef(KVFAZIASelector, 1) //selector to analyze FAZIA reconstructed data
84 };
85 
86 
87 #endif
int Int_t
bool Bool_t
char Char_t
constexpr Bool_t kFALSE
#define ClassDef(name, id)
General purpose analysis base class for TTree containing KVEvent objects.
TTree * fChain
pointer to the analyzed TTree or TChain
void SetEventsReadInterval(Long64_t N)
void SetBranchName(const Char_t *n)
Obsolete raw data class for FAZIA.
void Clear(Option_t *="")
Info("Clear","IsCalled");.
Analysis of FAZIA data.
virtual void ParseOptions()
void SetAutomaticManagementOfOutputs(Bool_t automatic=kTRUE)
TString rawdatabranchname
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Bool_t NeedToReadRawData() const
virtual Bool_t Notify()
virtual void CheckEndOfRun()
Testing whether EndRun() should be called.
KVFAZIARawEvent * RawEvent
static void MergeListOfEndedRuns(const Char_t *kvsname, const Char_t *dsname)
static void CheckListOfWellEndedRuns(const Char_t *kvsname, const Char_t *dsname)
virtual void Init(TTree *tree)
virtual void SlaveBegin(TTree *tree)
Bool_t SetReadingOfRawData(Bool_t need=kFALSE)
Bool_t SaveAndCloseOutputFile()
static void GetMissingRunsListing(const Char_t *kvsname, const Char_t *dsname)
Int_t GetCurrentRunNumber() const
void ConnectSignalsToDetectors()
static void CheckBatchOutputFiles(const Char_t *kvsname, Bool_t eraseafter=kFALSE)
static void Make(const Char_t *kvsname="MyOwnFAZIASelector")
Automatic generation of KVSelector-derived class for KaliVeda analysis.
virtual ~KVFAZIASelector()
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
virtual TTree * GetTree() const
long long Long64_t