1 #ifndef ALITOFTRACKER_H
2 #define ALITOFTRACKER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //----------------------------------------------------------------------//
11 // AliTOFtracker Class //
12 // Task: Perform association of the ESD tracks to TOF Clusters //
13 // and Update ESD track with associated TOF Cluster parameters //
15 // -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN) //
16 // -- Contacts: Annalisa.De.Caro@cern.ch //
17 // -- : Chiara.Zampolli@bo.infn.it //
18 // -- : Silvia.Arcelli@bo.infn.it //
20 //----------------------------------------------------------------------//
22 #include "AliTracker.h"
32 class AliTOFRecoParam;
36 class AliTOFtracker : public AliTracker {
38 enum {kMaxCluster=77777}; //maximal number of the TOF clusters
44 virtual ~AliTOFtracker();
45 virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
46 virtual Int_t PropagateBack(AliESDEvent* event);
47 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
48 virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
49 virtual void UnloadClusters();// UnLoad Clusters
50 virtual AliCluster *GetCluster(Int_t index) const
51 {if (index==-1 || index >= fN) return NULL;
52 return (AliCluster *) fClusters[index];};
53 Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
54 void InitCheckHists();
55 void SaveCheckHists();
56 void FillClusterArray(TObjArray* arr) const;
60 AliTOFtracker(const AliTOFtracker &t); //Copy Ctor
61 AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
63 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
64 void MatchTracks(Bool_t mLastStep); // Matching Algorithm
65 void CollectESD(); // Select starting Set for Matching
66 Float_t GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF
67 Float_t GetTimeZerofromT0(AliESDEvent* event) const; // T0 from T0
68 Float_t CorrectTimeWalk(Float_t dist,Float_t tof); // Time Walk correction
70 void PadRS2TrackingRS(Float_t *ctrackPos, Float_t *differenceT);
72 const AliTOFRecoParam* fRecoParam; // Pointer to TOF Recon. Pars
73 AliTOFGeometry* fGeom; // Pointer to TOF geometry
74 AliTOFpidESD* fPid; // Pointer to TOF PID
75 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
77 Int_t fN; // Number of Clusters
78 Int_t fNseeds; // Number of track seeds
79 Int_t fNseedsTOF; // TPC BP tracks
80 Int_t fngoodmatch; // Correctly matched tracks
81 Int_t fnbadmatch; // Wrongly matched tracks
82 Int_t fnunmatch; // Unmatched tracks
83 Int_t fnmatch; // Total matched tracks
85 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
86 TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks
87 //Digits/Reco QA histos
89 TH2F * fHDigClusMap; //Digits QA, Cluster Map
90 TH1F * fHDigNClus; //Digits QA, # of clusters on TOF/event
91 TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns)
92 TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns)
93 TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window
94 TH1F * fHRecDist;//Reco QA, track-TOF cluster closest distance (cm)
95 TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm)
96 TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm)
97 TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm)
98 TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm)
99 TTree * fCalTree; // Tree for on-the-fly offline Calibration
100 // internal variables in tree for on-the-fly TOF Calibration
102 Int_t fIch; //TOF channel number
103 Float_t fToT; // Time over Threshold, ns
104 Float_t fTime; //TOF time, ps
105 Float_t fExpTimePi; // exp time, Pions
106 Float_t fExpTimeKa; // exp time, Kaons
107 Float_t fExpTimePr; // exp time, Protons
109 ClassDef(AliTOFtracker, 2) // TOF tracker