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