]>
Commit | Line | Data |
---|---|---|
3b9df642 | 1 | #ifndef ALIITSDETTYPEREC_H |
2 | #define ALIITSDETTYPEREC_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* | |
7 | $Id$ | |
8 | */ | |
9 | ||
7d62fb64 | 10 | //////////////////////////////////////////////////////////////////////// |
11 | // This class contains all of the "external" information needed to do // | |
12 | // detector specific reconstruction for the ITS. // | |
13 | //////////////////////////////////////////////////////////////////////// | |
3b9df642 | 14 | #include <TObject.h> |
15 | #include <TObjArray.h> | |
16 | #include <TClonesArray.h> | |
979b5a5f | 17 | #include "AliITSDDLModuleMapSDD.h" |
253e68a0 | 18 | #include "AliITSresponseSDD.h" |
979b5a5f | 19 | #include "AliITSgeom.h" |
6cae184e | 20 | class TTree; |
21 | class TBranch; | |
22 | ||
23 | //#include "AliITSLoader.h" | |
24 | //#include "AliRunLoader.h" | |
3b9df642 | 25 | |
3b9df642 | 26 | class AliITSsegmentation; |
fcf95fc7 | 27 | class AliITSCalibration; |
ced4d9bc | 28 | class AliITSCalibrationSSD; |
253e68a0 | 29 | class AliITSresponseSDD; |
7d62fb64 | 30 | class AliITSClusterFinder; |
31 | class AliITSRawCluster; | |
32 | class AliITSRecPoint; | |
7d62fb64 | 33 | class AliRawReader; |
88128115 | 34 | class AliITSGainSSDv2; |
35 | class AliITSBadChannelsSSDv2; | |
36 | class AliITSNoiseSSDv2; | |
8ba39da9 | 37 | |
3b9df642 | 38 | class AliITSDetTypeRec : public TObject { |
39 | public: | |
40 | AliITSDetTypeRec(); // Default constructor | |
e56160b8 | 41 | |
3b9df642 | 42 | virtual ~AliITSDetTypeRec(); // Proper Destructor |
7d62fb64 | 43 | |
6cae184e | 44 | virtual AliITSgeom* GetITSgeom() const { return fITSgeom; } |
45 | virtual void SetITSgeom(AliITSgeom *geom) { fITSgeom = geom; } | |
7d62fb64 | 46 | virtual void SetDefaults(); |
47 | virtual void SetDefaultClusterFinders(); | |
3a7c3e6d | 48 | virtual void SetDefaultClusterFindersV2(Bool_t rawdata=kFALSE); |
6cae184e | 49 | virtual void MakeBranch(TTree *tree,Option_t *opt); |
7d62fb64 | 50 | virtual void SetTreeAddressD(TTree* treeD); |
51 | ||
52 | virtual void SetSegmentationModel(Int_t dettype, AliITSsegmentation *seg); | |
fcf95fc7 | 53 | virtual void SetCalibrationModel(Int_t iMod, AliITSCalibration *cal); |
23197852 | 54 | virtual void SetSPDDeadModel(Int_t iMod, AliITSCalibration *cal); |
7d62fb64 | 55 | virtual void SetReconstructionModel(Int_t dettype, AliITSClusterFinder *rec); |
8ba39da9 | 56 | virtual Bool_t GetCalibration(); |
7d62fb64 | 57 | virtual AliITSsegmentation* GetSegmentationModel(Int_t dettype); |
fcf95fc7 | 58 | virtual AliITSCalibration* GetCalibrationModel(Int_t iMod); |
23197852 | 59 | virtual AliITSCalibration* GetSPDDeadModel(Int_t iMod); |
7d62fb64 | 60 | virtual AliITSClusterFinder* GetReconstructionModel(Int_t dettype); |
979b5a5f | 61 | virtual AliITSDDLModuleMapSDD* GetDDLModuleMapSDD() const { return fDDLMapSDD;} |
253e68a0 | 62 | virtual AliITSresponseSDD* GetResponseSDD() const { return fRespSDD;} |
2f8ed7ab | 63 | virtual Bool_t IsHLTmodeC() const {return fIsHLTmodeC;} |
f3a3f329 | 64 | virtual void SetHLTmodeC(Bool_t ishltc){fIsHLTmodeC=ishltc;} |
7d62fb64 | 65 | |
66 | virtual void SetDigitClassName(Int_t i,Char_t *digit) | |
67 | {fDigClassName[i]=digit;} | |
68 | virtual void SetClusterClassName(Int_t i,Char_t *cluster) | |
69 | {fClusterClassName[i]=cluster;} | |
70 | virtual void SetRecPointClassName(Int_t i,Char_t *recpoint) | |
71 | {fRecPointClassName[i]=recpoint;} | |
72 | ||
73 | Char_t* GetDigitClassName(Int_t i) const {return fDigClassName[i];} | |
74 | Char_t* GetClusterClassName(Int_t i) const {return fClusterClassName[i];} | |
75 | Char_t* GetRecPointClassName(Int_t i) const {return fRecPointClassName[i];} | |
76 | ||
77 | TObjArray* GetDigits() const {return fDigits;} | |
78 | Int_t *Ndtype() {return fNdtype;} | |
79 | TClonesArray *DigitsAddress(Int_t id) const {return ((TClonesArray*)(*fDigits)[id]);} | |
80 | virtual void SelectVertexer(TString sel=" "){fSelectedVertexer = sel;} | |
81 | // | |
7d62fb64 | 82 | virtual void AddCluster(Int_t branch, AliITSRawCluster *c); |
83 | virtual void ResetClusters(); | |
84 | virtual void ResetClusters(Int_t branch); | |
6cae184e | 85 | TBranch* MakeBranchInTree(TTree *tree, const char* name, const char *classname, void* address,Int_t size, Int_t splitlevel); |
7d62fb64 | 86 | |
87 | TObjArray *Ctype() {return fCtype;} | |
88 | Int_t *Nctype() {return fNctype;} | |
89 | TClonesArray *ClustersAddress(Int_t id) const {return ((TClonesArray*)(*fCtype)[id]);} | |
90 | virtual void ResetDigits(); | |
91 | virtual void ResetDigits(Int_t branch); | |
92 | ||
6cae184e | 93 | void MakeBranchR(TTree *treeR,Option_t *opt=" "); |
7d62fb64 | 94 | void SetTreeAddressR(TTree *treeR); |
95 | void AddRecPoint(const AliITSRecPoint &p); | |
96 | void ResetRecPoints(){if(fRecPoints) fRecPoints->Clear();fNRecPoints = 0;}; | |
97 | // Return pointer to rec points | |
98 | TClonesArray *RecPoints() {return fRecPoints;} | |
6cae184e | 99 | void MakeBranchRF(TTree *treeR){MakeBranchR(treeR,"Fast");} |
100 | void DigitsToRecPoints(TTree *treeD,TTree *treeR,Int_t lastEntry,Option_t *det,Bool_t v2=kFALSE); | |
8484b32d | 101 | void DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR,Option_t *det="All"); |
8ba39da9 | 102 | |
3b9df642 | 103 | private: |
8e50d897 | 104 | // private methods |
e56160b8 | 105 | AliITSDetTypeRec(const AliITSDetTypeRec& rec); |
106 | AliITSDetTypeRec& operator=(const AliITSDetTypeRec &source); | |
107 | ||
88128115 | 108 | //conversion of the old SSD calibration objects tothe new ones |
109 | void ReadOldSSDNoise(TObjArray *array, | |
110 | AliITSNoiseSSDv2 *noiseSSD); | |
111 | void ReadOldSSDBadChannels(TObjArray *array, | |
112 | AliITSBadChannelsSSDv2 *badChannelsSSD); | |
113 | void ReadOldSSDGain(TObjArray *array, | |
114 | AliITSGainSSDv2 *gainSSD); | |
115 | ||
6cae184e | 116 | // virtual void SetLoader(AliITSLoader* loader) {fLoader=loader;} |
8ba39da9 | 117 | static const Int_t fgkNdettypes; // number of det. types |
118 | static const Int_t fgkDefaultNModulesSPD; // Total numbers of SPD modules by default | |
119 | static const Int_t fgkDefaultNModulesSDD; // Total numbers of SDD modules by default | |
120 | static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules by default | |
8e50d897 | 121 | Int_t *fNMod; // numbers of modules from different types |
8ba39da9 | 122 | |
6cae184e | 123 | AliITSgeom *fITSgeom; //! ITS geometry |
124 | ||
7d62fb64 | 125 | TObjArray *fReconstruction;//! [NDet] |
126 | TObjArray *fSegmentation; //! [NDet] | |
127 | TObjArray *fCalibration; //! [NMod] | |
ced4d9bc | 128 | AliITSCalibrationSSD* fSSDCalibration; //! SSD calibration object |
23197852 | 129 | TObjArray *fSPDDead; //! [fgkDefaultNModulesSPD] |
7d62fb64 | 130 | TObjArray *fPreProcess; //! [] e.g. Find Calibration values |
131 | TObjArray *fPostProcess; //! [] e.g. find primary vertex | |
132 | TObjArray *fDigits; //! [NMod][NDigits] | |
979b5a5f | 133 | AliITSDDLModuleMapSDD *fDDLMapSDD; //! mapping DDL/module -> SDD module number |
253e68a0 | 134 | AliITSresponseSDD *fRespSDD; //! SDD response parameters |
2f8ed7ab | 135 | Bool_t fIsHLTmodeC; //! flag for HLT mode C status (used by SDD) |
7d62fb64 | 136 | Int_t *fNdtype; //! detector types |
137 | Char_t* fClusterClassName[3]; //! String with Cluster class name | |
138 | Char_t* fDigClassName[3]; //! String with digit class name. | |
139 | Char_t* fRecPointClassName[3];//! String with RecPoint class name | |
140 | ||
141 | TObjArray *fCtype; //! List of clusters | |
142 | Int_t *fNctype; //[fNDetTypes] Num. of clust. per type of det. | |
143 | ||
144 | TClonesArray *fRecPoints; //! List of reconstructed points | |
145 | Int_t fNRecPoints; // Number of rec points | |
146 | ||
7d62fb64 | 147 | TString fSelectedVertexer; // Vertexer selected in CreateVertexer |
b17dae48 | 148 | Bool_t fFirstcall; //! flag |
3b9df642 | 149 | |
2f8ed7ab | 150 | ClassDef(AliITSDetTypeRec,11) // ITS Reconstruction structure |
7d62fb64 | 151 | }; |
152 | ||
3b9df642 | 153 | #endif |