]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFtrackerMI.h
Coding conventions (Annalisa)
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerMI.h
CommitLineData
d88fbf15 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
8//
9//--------------------------------------------------------------------
10
11/* $Id$ */
12
13#include "AliTracker.h"
14#include "AliTOFpidESD.h"
15#include "AliESD.h"
16#include "TClonesArray.h"
17
18class AliTOFGeometry;
19class AliTOFtrack;
20class AliTOFcluster;
21class TTreeSRedirector;
22
23class AliTOFtrackerMI : public AliTracker {
24
25enum {kMaxCluster=77777}; //maximal number of the TOF clusters
26
27public:
28
29 AliTOFtrackerMI(AliTOFGeometry* geom, Double_t parPID[2]);
30 AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor
7aeeaf38 31 AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op.
32
d88fbf15 33 // virtual ~AliTOFtrackerMI() {delete fTOFpid;}
34 virtual ~AliTOFtrackerMI();
7aeeaf38 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);
d88fbf15 42public:
43 /* class AliTOFcluster { */
44/* friend class AliTOFtrackerMI; */
45/* public: */
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]; */
49/* fIdx=idx; */
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; */
56/* } */
57/* void Use() {fADC=-fADC;} */
58
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 */
68
69/* private: */
70
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 */
80/* }; */
81
82private:
83
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
d3c7bfac 89 //void Init();
d88fbf15 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
94
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
103
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
114};
115
116#endif