]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFtrackerMI.h
New mapping in agreement with the new instructions from Paolo and Giacinto
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerMI.h
CommitLineData
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
5c7c93fa 19//#include "AliTOFpidESD.h"
d88fbf15 20
0e46b9ae 21class TTreeSRedirector;
22class TClonesArray;
23
af885e0f 24class AliESDEvent;
0e46b9ae 25
26class AliTOFcluster;
e0ddb533 27class AliTOFRecoParam;
d88fbf15 28class AliTOFGeometry;
29class AliTOFtrack;
5c7c93fa 30class AliTOFpidESD;
d88fbf15 31
32class AliTOFtrackerMI : public AliTracker {
33
34enum {kMaxCluster=77777}; //maximal number of the TOF clusters
35
36public:
37
e0ddb533 38 AliTOFtrackerMI();
d88fbf15 39 AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor
7aeeaf38 40 AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op.
41
d88fbf15 42 // virtual ~AliTOFtrackerMI() {delete fTOFpid;}
43 virtual ~AliTOFtrackerMI();
af885e0f 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;};
7aeeaf38 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);
d88fbf15 51public:
52 /* class AliTOFcluster { */
53/* friend class AliTOFtrackerMI; */
54/* public: */
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]; */
58/* fIdx=idx; */
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; */
65/* } */
66/* void Use() {fADC=-fADC;} */
67
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 */
77
78/* private: */
79
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 */
89/* }; */
90
91private:
92
5c7c93fa 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
98 //void Init();
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
104
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
d88fbf15 112
5c7c93fa 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
d88fbf15 123};
124
125#endif