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