KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVINDRAReconDataAnalyser.h
1/*
2$Id: KVINDRAReconDataAnalyser.h,v 1.2 2007/05/31 09:59:22 franklan Exp $
3$Revision: 1.2 $
4$Date: 2007/05/31 09:59:22 $
5*/
6
9
10#ifndef __KVINDRAReconDataAnalyser_H
11#define __KVINDRAReconDataAnalyser_H
12
13#include "KVDataSetAnalyser.h"
14#include "KVEventSelector.h"
15#include "KVOldINDRASelector.h" // backwards compatibility
16#include <KVDataPatchList.h>
17class TChain;
18
26
27protected:
28 virtual KVNumberList PrintAvailableRuns(KVString& datatype) override;
39 void ConnectRawDataTree();
41
46
48
49public:
50
52 {
53 return TotalEntriesToRead;
54 }
55
58 {
60 if (ParVal) delete [] ParVal;
61 if (ParNum) delete [] ParNum;
64 }
65
66 TTree* GetTree() const
67 {
68 return theChain;
69 }
70 void SetTree(TTree* t)
71 {
72 theChain = t;
73 }
74 TTree* GetAnalysedTree() const override
75 {
76 return GetTree();
77 }
78 void SetAnalysedTree(TTree* t) override
79 {
80 SetTree(t);
81 }
82
83
84 void Reset() override;
85
86 Bool_t CheckTaskVariables(void) override;
87 void SubmitTask() override;
88 void WriteBatchEnvFile(const TString&, Bool_t sav = kTRUE) override;
89
90 void preInitAnalysis() override;
91 void preAnalysis() override;
92 void preInitRun() override;
93 void RegisterUserClass(TObject* obj) override
94 {
97 fSelector = dynamic_cast<KVEventSelector*>(obj);
98 fOldSelector = dynamic_cast<KVOldINDRASelector*>(obj);
99 }
100 void PrintTreeInfos();
102
104 {
105 return fDataVersion;
106 }
108 {
109 return fDataSeries;
110 }
112 {
113 return fDataReleaseNum;
114 }
116 {
117 return theRawData;
118 }
120 {
121 return theGeneData;
122 }
124 Bool_t CheckIfUserClassIsValid(const KVString& = "") override;
125 void SetSelectorCurrentRun(KVINDRADBRun* CurrentRun);
128 void SetTriggerConditionsForRun(int) override;
129
130 ClassDefOverride(KVINDRAReconDataAnalyser, 0) //For analysing reconstructed INDRA data
131};
132
133#endif
int Int_t
unsigned int UInt_t
#define SafeDelete(p)
bool Bool_t
unsigned short UShort_t
#define ClassDefOverride(name, id)
List of corrections to be applied to reconstructed calibrated data.
Pilots user analysis of experimental data.
General purpose analysis base class for TTree containing KVEvent objects.
Database entry for each run of an INDRA experiment.
Manage analysis of reconstructed INDRA data.
void RegisterUserClass(TObject *obj) override
void SetTriggerConditionsForRun(int) override
void SetSelectorCurrentRun(KVINDRADBRun *CurrentRun)
TTree * theChain
chain of TTrees to be analysed
TTree * GetAnalysedTree() const override
void WriteBatchEnvFile(const TString &, Bool_t sav=kTRUE) override
Long64_t GetTotalEntriesToRead() const override
KVDataPatchList fRustines
patches to be applied to correct data before analysis
TTree * theGeneData
gene data TTree in recon file
KVOldINDRASelector * fOldSelector
backwards compatibility
void PrintTreeInfos()
Print informations on currently analysed TTree.
KVReconstructedEvent * GetReconstructedEvent()
void SetAnalysedTree(TTree *t) override
Int_t fDataReleaseNum
KV release number used to write analysed data.
TTree * theRawData
raw data TTree in recon file
Bool_t CheckIfUserClassIsValid(const KVString &="") override
Bool_t CheckTaskVariables(void) override
Checks the task variables.
void Reset() override
Reset task variables.
KVString fDataVersion
KV version used to write analysed data.
KVEventSelector * fSelector
the data analysis class
KVString fDataSeries
KV series used to write analysed data.
virtual KVNumberList PrintAvailableRuns(KVString &datatype) override
Strings used to represent a set of ranges of values.
Former base analysis class for INDRA data.
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition KVString.h:73
long long Long64_t