]>
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" |
18 | #include "AliITSgeom.h" | |
3b9df642 | 19 | |
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; |
7d62fb64 | 28 | class AliITSClusterFinder; |
29 | class AliITSRawCluster; | |
30 | class AliITSRecPoint; | |
7d62fb64 | 31 | class AliRawReader; |
3b9df642 | 32 | |
8ba39da9 | 33 | |
3b9df642 | 34 | class AliITSDetTypeRec : public TObject { |
35 | public: | |
36 | AliITSDetTypeRec(); // Default constructor | |
e56160b8 | 37 | |
3b9df642 | 38 | virtual ~AliITSDetTypeRec(); // Proper Destructor |
7d62fb64 | 39 | |
6cae184e | 40 | virtual AliITSgeom* GetITSgeom() const { return fITSgeom; } |
41 | virtual void SetITSgeom(AliITSgeom *geom) { fITSgeom = geom; } | |
7d62fb64 | 42 | virtual void SetDefaults(); |
43 | virtual void SetDefaultClusterFinders(); | |
3a7c3e6d | 44 | virtual void SetDefaultClusterFindersV2(Bool_t rawdata=kFALSE); |
6cae184e | 45 | virtual void MakeBranch(TTree *tree,Option_t *opt); |
7d62fb64 | 46 | virtual void SetTreeAddressD(TTree* treeD); |
47 | ||
48 | virtual void SetSegmentationModel(Int_t dettype, AliITSsegmentation *seg); | |
fcf95fc7 | 49 | virtual void SetCalibrationModel(Int_t iMod, AliITSCalibration *cal); |
23197852 | 50 | virtual void SetSPDDeadModel(Int_t iMod, AliITSCalibration *cal); |
7d62fb64 | 51 | virtual void SetReconstructionModel(Int_t dettype, AliITSClusterFinder *rec); |
8ba39da9 | 52 | virtual Bool_t GetCalibration(); |
7d62fb64 | 53 | virtual AliITSsegmentation* GetSegmentationModel(Int_t dettype); |
fcf95fc7 | 54 | virtual AliITSCalibration* GetCalibrationModel(Int_t iMod); |
23197852 | 55 | virtual AliITSCalibration* GetSPDDeadModel(Int_t iMod); |
7d62fb64 | 56 | virtual AliITSClusterFinder* GetReconstructionModel(Int_t dettype); |
979b5a5f | 57 | virtual AliITSDDLModuleMapSDD* GetDDLModuleMapSDD() const { return fDDLMapSDD;} |
7d62fb64 | 58 | |
59 | virtual void SetDigitClassName(Int_t i,Char_t *digit) | |
60 | {fDigClassName[i]=digit;} | |
61 | virtual void SetClusterClassName(Int_t i,Char_t *cluster) | |
62 | {fClusterClassName[i]=cluster;} | |
63 | virtual void SetRecPointClassName(Int_t i,Char_t *recpoint) | |
64 | {fRecPointClassName[i]=recpoint;} | |
65 | ||
66 | Char_t* GetDigitClassName(Int_t i) const {return fDigClassName[i];} | |
67 | Char_t* GetClusterClassName(Int_t i) const {return fClusterClassName[i];} | |
68 | Char_t* GetRecPointClassName(Int_t i) const {return fRecPointClassName[i];} | |
69 | ||
70 | TObjArray* GetDigits() const {return fDigits;} | |
71 | Int_t *Ndtype() {return fNdtype;} | |
72 | TClonesArray *DigitsAddress(Int_t id) const {return ((TClonesArray*)(*fDigits)[id]);} | |
73 | virtual void SelectVertexer(TString sel=" "){fSelectedVertexer = sel;} | |
74 | // | |
7d62fb64 | 75 | virtual void AddCluster(Int_t branch, AliITSRawCluster *c); |
76 | virtual void ResetClusters(); | |
77 | virtual void ResetClusters(Int_t branch); | |
6cae184e | 78 | TBranch* MakeBranchInTree(TTree *tree, const char* name, const char *classname, void* address,Int_t size, Int_t splitlevel); |
7d62fb64 | 79 | |
80 | TObjArray *Ctype() {return fCtype;} | |
81 | Int_t *Nctype() {return fNctype;} | |
82 | TClonesArray *ClustersAddress(Int_t id) const {return ((TClonesArray*)(*fCtype)[id]);} | |
83 | virtual void ResetDigits(); | |
84 | virtual void ResetDigits(Int_t branch); | |
85 | ||
6cae184e | 86 | void MakeBranchR(TTree *treeR,Option_t *opt=" "); |
7d62fb64 | 87 | void SetTreeAddressR(TTree *treeR); |
88 | void AddRecPoint(const AliITSRecPoint &p); | |
89 | void ResetRecPoints(){if(fRecPoints) fRecPoints->Clear();fNRecPoints = 0;}; | |
90 | // Return pointer to rec points | |
91 | TClonesArray *RecPoints() {return fRecPoints;} | |
6cae184e | 92 | void MakeBranchRF(TTree *treeR){MakeBranchR(treeR,"Fast");} |
93 | void DigitsToRecPoints(TTree *treeD,TTree *treeR,Int_t lastEntry,Option_t *det,Bool_t v2=kFALSE); | |
8484b32d | 94 | void DigitsToRecPoints(AliRawReader* rawReader,TTree *treeR,Option_t *det="All"); |
8ba39da9 | 95 | |
3b9df642 | 96 | private: |
8e50d897 | 97 | // private methods |
e56160b8 | 98 | AliITSDetTypeRec(const AliITSDetTypeRec& rec); |
99 | AliITSDetTypeRec& operator=(const AliITSDetTypeRec &source); | |
100 | ||
6cae184e | 101 | // virtual void SetLoader(AliITSLoader* loader) {fLoader=loader;} |
8ba39da9 | 102 | static const Int_t fgkNdettypes; // number of det. types |
103 | static const Int_t fgkDefaultNModulesSPD; // Total numbers of SPD modules by default | |
104 | static const Int_t fgkDefaultNModulesSDD; // Total numbers of SDD modules by default | |
105 | static const Int_t fgkDefaultNModulesSSD; // Total numbers of SSD modules by default | |
8e50d897 | 106 | Int_t *fNMod; // numbers of modules from different types |
8ba39da9 | 107 | |
6cae184e | 108 | AliITSgeom *fITSgeom; //! ITS geometry |
109 | ||
7d62fb64 | 110 | TObjArray *fReconstruction;//! [NDet] |
111 | TObjArray *fSegmentation; //! [NDet] | |
112 | TObjArray *fCalibration; //! [NMod] | |
23197852 | 113 | TObjArray *fSPDDead; //! [fgkDefaultNModulesSPD] |
7d62fb64 | 114 | TObjArray *fPreProcess; //! [] e.g. Find Calibration values |
115 | TObjArray *fPostProcess; //! [] e.g. find primary vertex | |
116 | TObjArray *fDigits; //! [NMod][NDigits] | |
979b5a5f | 117 | AliITSDDLModuleMapSDD *fDDLMapSDD; //! mapping DDL/module -> SDD module number |
7d62fb64 | 118 | Int_t *fNdtype; //! detector types |
119 | Char_t* fClusterClassName[3]; //! String with Cluster class name | |
120 | Char_t* fDigClassName[3]; //! String with digit class name. | |
121 | Char_t* fRecPointClassName[3];//! String with RecPoint class name | |
122 | ||
123 | TObjArray *fCtype; //! List of clusters | |
124 | Int_t *fNctype; //[fNDetTypes] Num. of clust. per type of det. | |
125 | ||
126 | TClonesArray *fRecPoints; //! List of reconstructed points | |
127 | Int_t fNRecPoints; // Number of rec points | |
128 | ||
7d62fb64 | 129 | TString fSelectedVertexer; // Vertexer selected in CreateVertexer |
b17dae48 | 130 | Bool_t fFirstcall; //! flag |
3b9df642 | 131 | |
23197852 | 132 | ClassDef(AliITSDetTypeRec,9) // ITS Reconstruction structure |
7d62fb64 | 133 | }; |
134 | ||
3b9df642 | 135 | #endif |