]>
Commit | Line | Data |
---|---|---|
d88fbf15 | 1 | #ifndef ALITOFTRACKERMI_H |
2 | #define ALITOFTRACKERMI_H | |
0e46b9ae | 3 | |
d88fbf15 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
d88fbf15 | 6 | |
7 | /* $Id$ */ | |
8 | ||
0e46b9ae | 9 | //-----------------------------------------------------------------// |
10 | // // | |
11 | // AliTOFtrackerMI Class // | |
12 | // Task: Perform association of the ESD tracks to TOF Clusters // | |
13 | // and Update ESD track with associated TOF Cluster parameters // | |
14 | // // | |
15 | //-----------------------------------------------------------------// | |
16 | ||
d88fbf15 | 17 | #include "AliTracker.h" |
0e46b9ae | 18 | |
d88fbf15 | 19 | #include "AliTOFpidESD.h" |
d88fbf15 | 20 | |
0e46b9ae | 21 | class TTreeSRedirector; |
22 | class TClonesArray; | |
23 | ||
24 | class AliESD; | |
25 | ||
26 | class AliTOFcluster; | |
d88fbf15 | 27 | class AliTOFGeometry; |
28 | class AliTOFtrack; | |
d88fbf15 | 29 | |
30 | class AliTOFtrackerMI : public AliTracker { | |
31 | ||
32 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters | |
33 | ||
34 | public: | |
35 | ||
36 | AliTOFtrackerMI(AliTOFGeometry* geom, Double_t parPID[2]); | |
37 | AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor | |
7aeeaf38 | 38 | AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op. |
39 | ||
d88fbf15 | 40 | // virtual ~AliTOFtrackerMI() {delete fTOFpid;} |
41 | virtual ~AliTOFtrackerMI(); | |
7aeeaf38 | 42 | virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;}; |
43 | virtual Int_t PropagateBack(AliESD* event); | |
44 | virtual Int_t RefitInward(AliESD* /*event*/) {return -1;}; | |
45 | virtual Int_t LoadClusters(TTree *dTree); // Loading Clusters from Digits | |
46 | virtual void UnloadClusters();// UnLoad Clusters | |
47 | virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;}; | |
48 | void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz); | |
d88fbf15 | 49 | public: |
50 | /* class AliTOFcluster { */ | |
51 | /* friend class AliTOFtrackerMI; */ | |
52 | /* public: */ | |
53 | /* AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx) { */ | |
54 | /* fR=h[0]; fPhi=h[1]; fZ=h[2]; fTDC=h[3]; fADC=h[4]; */ | |
55 | /* fLab[0]=l[0]; fLab[1]=l[1]; fLab[2]=l[2]; */ | |
56 | /* fIdx=idx; */ | |
57 | /* fdetIndex[0]=ind[0]; */ | |
58 | /* fdetIndex[1]=ind[1]; */ | |
59 | /* fdetIndex[2]=ind[2]; */ | |
60 | /* fdetIndex[3]=ind[3]; */ | |
61 | /* fdetIndex[4]=ind[4]; */ | |
62 | /* fQuality = -100; */ | |
63 | /* } */ | |
64 | /* void Use() {fADC=-fADC;} */ | |
65 | ||
66 | /* Double_t GetR() const {return fR;} // Cluster Radius */ | |
67 | /* Double_t GetPhi() const {return fPhi;} // Cluster Phi */ | |
68 | /* Double_t GetZ() const {return fZ;} // Cluster Z */ | |
69 | /* Double_t GetTDC() const {return fTDC;} // Cluster ToF */ | |
70 | /* Double_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge */ | |
71 | /* Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging */ | |
72 | /* Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster */ | |
73 | /* Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} //Cluster Det Indeces */ | |
74 | /* Int_t GetIndex() const {return fIdx;} // Cluster Index */ | |
75 | ||
76 | /* private: */ | |
77 | ||
78 | /* Int_t fLab[3]; //track labels */ | |
79 | /* Int_t fIdx; //index of this cluster */ | |
80 | /* Int_t fdetIndex[5]; //Cluster detector Indeces (plate,strip,..) */ | |
81 | /* Double_t fR; //r-coordinate */ | |
82 | /* Double_t fPhi; //phi-coordinate */ | |
83 | /* Double_t fZ; //z-coordinate */ | |
84 | /* Double_t fTDC; //TDC count */ | |
85 | /* Double_t fADC; //ADC count */ | |
86 | /* Double_t fQuality; // quality of the best track */ | |
87 | /* }; */ | |
88 | ||
89 | private: | |
90 | ||
91 | Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array | |
92 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index | |
93 | void MatchTracks(Bool_t mLastStep); // Matching Algorithm | |
94 | void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm | |
95 | void CollectESD(); // Select starting Set for Matching | |
d3c7bfac | 96 | //void Init(); |
d88fbf15 | 97 | Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]); |
98 | AliTOFGeometry* fGeom; // Pointer to TOF geometry | |
99 | AliTOFpidESD* fTOFpid; // Pointer to TOF PID | |
100 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters | |
101 | ||
102 | Bool_t fHoles; // flag for Geometry Version(w/wo Holes) temporary! | |
103 | Int_t fN; // Number of Clusters | |
104 | Int_t fNseeds; // Number of track seeds | |
105 | Int_t fNseedsTOF; // TPC BP tracks | |
106 | Int_t fngoodmatch; // Correctly matched tracks | |
107 | Int_t fnbadmatch; // Wrongly matched tracks | |
108 | Int_t fnunmatch; // Unmatched tracks | |
109 | Int_t fnmatch; // Total matched tracks | |
110 | ||
111 | Float_t fR; // Intermediate radius in TOF, used in matching | |
112 | Float_t fTOFHeigth; // Inner TOF radius for propagation | |
113 | Float_t fdCut; // Cut on minimum distance track-pad in matching | |
114 | Float_t fDx; // Pad Size in X | |
115 | Float_t fDy; // Pad Size in Y (== X TOF convention) | |
116 | Float_t fDz; // Pad Size in Z | |
117 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks | |
118 | TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks | |
119 | TTreeSRedirector *fDebugStreamer; //!debug streamer | |
120 | ClassDef(AliTOFtrackerMI, 1) // TOF trackerMI | |
121 | }; | |
122 | ||
123 | #endif |