1 #ifndef ALITOFTRACKERV2_H
2 #define ALITOFTRACKERV2_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //------------------------------------------------------------------//
11 // AliTOFtrackerV2 Class //
12 // Task: Perform association of the ESD tracks to TOF Clusters //
13 // and Update ESD track with associated TOF Cluster parameters //
15 // -- Authors : A. De Caro (Centro Studi e Ricerche E.Fermi) //
16 // -- Contacts: Annalisa.De.Caro@cern.ch //
18 //------------------------------------------------------------------//
20 #include "AliTracker.h"
21 #include "AliESDTOFcluster.h"
29 class AliTOFRecoParam;
32 class AliTOFtrackerV2 : public AliTracker {
38 virtual ~AliTOFtrackerV2();
39 virtual void GetPidSettings(AliESDpid *esdPID);
40 virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
41 virtual Int_t PropagateBack(AliESDEvent * const event);
42 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
43 virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
44 virtual void UnloadClusters();// UnLoad Clusters
45 virtual AliCluster *GetCluster(Int_t index) const
46 {if (index==-1 || index >= fN) return NULL;
47 return (AliCluster *) (&fClusters[index]);};
48 Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
49 Int_t GetNumberOfMatchedTOFtracks() const {return fnmatch;}
50 void FillClusterArray(TObjArray* arr) const;
55 enum {kMaxCluster=77777}; //maximal number of the TOF clusters
57 AliTOFtrackerV2(const AliTOFtrackerV2 &t); //Copy Ctor
58 AliTOFtrackerV2& operator=(const AliTOFtrackerV2 &source); // ass. op.
60 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
61 void MatchTracks(); // Matching Algorithm
62 void CollectESD(); // Select starting Set for Matching
63 Float_t CorrectTimeWalk(Float_t dist,Float_t tof) const; // Time Walk correction
65 const AliTOFRecoParam* fkRecoParam; // Pointer to TOF Recon. Pars
66 AliTOFGeometry* fGeom; // Pointer to TOF geometry
68 Int_t fN; // Number of Clusters
69 Int_t fNseeds; // Number of track seeds
70 Int_t fNseedsTOF; // TPC BP tracks
71 Int_t fnunmatch; // Unmatched tracks
72 Int_t fnmatch; // Total matched tracks
74 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
75 TObjArray* fSeeds; //! pointer to the TObjArray with ESD tracks
76 AliESDTOFcluster *fClusters; // pointers to the TOF clusters
78 ClassDef(AliTOFtrackerV2, 1) // TOF tracker