KaliVeda
Toolkit for HIC analysis
KVINDRADstToRootTransfert.h
1 /*
2 $Id: KVINDRADstToRootTransfert.h,v 1.3 2007/05/31 09:59:22 franklan Exp $
3 $Revision: 1.3 $
4 $Date: 2007/05/31 09:59:22 $
5 */
6 
9 
10 #ifndef __KVINDRADSTTOROOTTRANSFERT_H
11 #define __KVINDRADSTTOROOTTRANSFERT_H
12 
13 #include "KVString.h"
14 #include "KVNumberList.h"
15 #include "KVIntegerList.h"
16 #include "KVDataSet.h"
17 #include "KVINDRADSTReader.h"
18 #include "TString.h"
19 
20 class KVINDRAReconEvent;
21 class KVIDTelescope;
22 class KVDetector;
23 class TTree;
24 
33 
34 protected:
38  UInt_t ParNum[3000];
40 
41  virtual KVNumberList PrintAvailableRuns(KVString& datatype);
42 
51 
56 
57  Int_t events_in_file;//total number of events read from each file - for tests
58 
59  Int_t events_good, events_read;//totals of events read and trees filled
60 
61  TTree* data_tree;//tree for writing events
62  TTree* rawtree;//raw data tree
63 
64  Int_t fRunNumber;//run number of current file
66 
69 
70 
71  virtual void ProcessRun();
72 
73 public:
74 
77 
78  virtual void InitRun();
79  virtual void EndRun();
80 
81  virtual void SubmitTask();
82 
83  void DefineSHELLVariables();
84  void ReadDST();
85 
86  KVDetector* Code2and9and10(int ring, int mod);
87  KVDetector* Code3(int ring, int mod);
88  KVDetector* Code0(int ring, int mod);
89  KVDetector* Code1(int ring, int mod);
90  KVDetector* Code7(int ring, int mod);
91  KVDetector* Code4and5and6and8(int ring, int mod);
92 
93  void lire_evt(std::ifstream& f_in, KVINDRAReconEvent* evt);
94 
95  void FillRawTree();
96 
97  ClassDef(KVINDRADstToRootTransfert, 1) //Conversion of INDRA DST to KaliVeda ROOT format
98 };
99 
100 #endif
int Int_t
unsigned int UInt_t
unsigned short UShort_t
double Double_t
#define ClassDef(name, id)
Base class for detector geometry description.
Definition: KVDetector.h:160
Base class for all detectors or associations of detectors in array which can identify charged particl...
Definition: KVIDTelescope.h:84
Read INDRA DST file and fill a TTree.
Conversion of INDRA DST file to KaliVeda ROOT format.
KVDetector * Code1(int ring, int mod)
KVDetector * Code2and9and10(int ring, int mod)
virtual ~KVINDRADstToRootTransfert()
Destructor.
const KVSeqCollection * params
KVDetector * Code0(int ring, int mod)
void lire_evt(std::ifstream &f_in, KVINDRAReconEvent *evt)
KVINDRADstToRootTransfert()
Default constructor.
virtual KVNumberList PrintAvailableRuns(KVString &datatype)
KVDetector * Code4and5and6and8(int ring, int mod)
KVDetector * Code3(int ring, int mod)
KVDetector * Code7(int ring, int mod)
Event reconstructed from energy losses in INDRA multidetector.
Strings used to represent a set of ranges of values.
Definition: KVNumberList.h:85
KaliVeda extensions to ROOT collection classes.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73