KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRAReconDataAnalyser.h
Go to the documentation of this file.
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 "KVINDRAEventSelector.h"
15 #include "KVOldINDRASelector.h" // backwards compatibility
16 #include <KVDataPatchList.h>
17 class TChain;
18 
25 
26 protected:
27  virtual KVNumberList PrintAvailableRuns(KVString& datatype);
38  void ConnectRawDataTree();
39  void ConnectGeneDataTree();
40 
45 
47 
48 public:
49 
51  {
52  return TotalEntriesToRead;
53  }
54 
57 
58  TTree* GetTree() const
59  {
60  return theChain;
61  }
62  void SetTree(TTree* t)
63  {
64  theChain = t;
65  }
67  {
68  return GetTree();
69  }
71  {
72  SetTree(t);
73  }
74 
75 
76  virtual void Reset();
77 
78  virtual Bool_t CheckTaskVariables(void);
79  virtual void SubmitTask();
80  virtual void WriteBatchEnvFile(const Char_t*, Bool_t sav = kTRUE);
81 
82  void preInitAnalysis();
83  void preAnalysis();
84  void preInitRun();
85  virtual void RegisterUserClass(TObject* obj)
86  {
89  fSelector = dynamic_cast<KVEventSelector*>(obj);
90  fOldSelector = dynamic_cast<KVOldINDRASelector*>(obj);
91  }
92  void PrintTreeInfos();
93  TEnv* GetReconDataTreeInfos() const;
94 
96  {
97  return fDataVersion;
98  }
100  {
101  return fDataSeries;
102  }
104  {
105  return fDataReleaseNum;
106  }
108  {
109  return theRawData;
110  }
112  {
113  return theGeneData;
114  }
115  void CloneRawAndGeneTrees();
116  virtual Bool_t CheckIfUserClassIsValid(const KVString& = "");
117  void SetSelectorCurrentRun(KVINDRADBRun* CurrentRun);
120 #ifdef USING_ROOT6
121  void SetTriggerConditionsForRun(int);
122 #endif
123  ClassDef(KVINDRAReconDataAnalyser, 0) //For analysing reconstructed INDRA data
124 };
125 
126 #endif
int Int_t
unsigned int UInt_t
unsigned short UShort_t
char Char_t
bool Bool_t
#define ClassDef(name, id)
List of corrections to be applied to reconstructed calibrated data.
Pilots user analysis of experimental data.
General purpose analysis class for TTree containing KVEvent objects.
Database entry for each run of an INDRA experiment.
Definition: KVINDRADBRun.h:29
Manage analysis of reconstructed INDRA data.
virtual void Reset()
Reset task variables.
void SetSelectorCurrentRun(KVINDRADBRun *CurrentRun)
TTree * theChain
chain of TTrees to be analysed
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()
Int_t fDataReleaseNum
KV release number used to write analysed data.
TTree * theRawData
raw data TTree in recon file
virtual Bool_t CheckTaskVariables(void)
Checks the task variables.
virtual void WriteBatchEnvFile(const Char_t *, Bool_t sav=kTRUE)
virtual KVNumberList PrintAvailableRuns(KVString &datatype)
virtual Bool_t CheckIfUserClassIsValid(const KVString &="")
virtual ~ KVINDRAReconDataAnalyser()
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 void RegisterUserClass(TObject *obj)
Strings used to represent a set of ranges of values.
Definition: KVNumberList.h:83
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:72
long long Long64_t