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 class TTreeSRedirector;
26 class AliTOFRecoParam;
30 class AliTOFtrackerMI : public AliTracker {
32 enum {kMaxCluster=77777}; //maximal number of the TOF clusters
38 // virtual ~AliTOFtrackerMI() {delete fTOFpid;}
39 virtual ~AliTOFtrackerMI();
40 virtual void GetPidSettings(AliESDpid *esdPID);
41 virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
42 virtual Int_t PropagateBack(AliESDEvent * const event);
43 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
44 virtual Int_t LoadClusters(TTree *dTree); // Loading Clusters from Digits
45 virtual void UnloadClusters();// UnLoad Clusters
46 virtual AliCluster *GetCluster(Int_t index) const
47 {if (index==-1 || index >= fN) return NULL;
48 return (AliCluster *) fClusters[index];};
49 void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz) const;
50 void FillClusterArray(TObjArray* arr) const;
54 AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor
55 AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op.
57 Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array
58 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
59 void MatchTracks(Bool_t mLastStep) const; // Matching Algorithm
60 void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm
61 void CollectESD(); // Select starting Set for Matching
63 Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]);
65 const AliTOFRecoParam* fkRecoParam; // Pointer to TOF Recon. Pars
66 AliTOFGeometry* fGeom; // Pointer to TOF geometry
67 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
69 Int_t fN; // Number of Clusters
70 Int_t fNseeds; // Number of track seeds
71 Int_t fNseedsTOF; // TPC BP tracks
72 Int_t fngoodmatch; // Correctly matched tracks
73 Int_t fnbadmatch; // Wrongly matched tracks
74 Int_t fnunmatch; // Unmatched tracks
75 Int_t fnmatch; // Total matched tracks
77 Float_t fR; // Intermediate radius in TOF, used in matching
78 Float_t fTOFHeigth; // Inner TOF radius for propagation
79 Float_t fdCut; // Cut on minimum distance track-pad in matching
80 Float_t fDx; // Pad Size in X
81 Float_t fDy; // Pad Size in Y (== X TOF convention)
82 Float_t fDz; // Pad Size in Z
83 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
84 TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks
85 TTreeSRedirector *fDebugStreamer; //!debug streamer
86 ClassDef(AliTOFtrackerMI, 2) // TOF trackerMI