]>
Commit | Line | Data |
---|---|---|
596a855f | 1 | #ifndef ALITOFTRACKER_H |
2 | #define ALITOFTRACKER_H | |
0e46b9ae | 3 | |
596a855f | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
0e46b9ae | 9 | //----------------------------------------------------------------------// |
10 | // // | |
11 | // AliTOFtracker Class // | |
12 | // Task: Perform association of the ESD tracks to TOF Clusters // | |
13 | // and Update ESD track with associated TOF Cluster parameters // | |
14 | // // | |
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 // | |
19 | // // | |
20 | //----------------------------------------------------------------------// | |
571dda3d | 21 | |
596a855f | 22 | #include "AliTracker.h" |
23 | #include "AliTOFpidESD.h" | |
24 | ||
0e46b9ae | 25 | class TClonesArray; |
26 | ||
af885e0f | 27 | class AliESDEvent; |
0e46b9ae | 28 | |
571dda3d | 29 | class AliTOFcluster; |
e0ddb533 | 30 | class AliTOFRecoParam; |
0e46b9ae | 31 | class AliTOFGeometry; |
5664c6ed | 32 | class TH1F; |
33 | class TH2F; | |
596a855f | 34 | |
596a855f | 35 | class AliTOFtracker : public AliTracker { |
74ea065c | 36 | |
37 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters | |
38 | ||
596a855f | 39 | public: |
40 | ||
e0ddb533 | 41 | AliTOFtracker(); |
74ea065c | 42 | AliTOFtracker(const AliTOFtracker &t); //Copy Ctor |
7aeeaf38 | 43 | AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op. |
44 | ||
5664c6ed | 45 | virtual ~AliTOFtracker(); |
af885e0f | 46 | virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;}; |
47 | virtual Int_t PropagateBack(AliESDEvent* event); | |
48 | virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;}; | |
7aeeaf38 | 49 | virtual Int_t LoadClusters(TTree * cTree); // Load Clusters |
74ea065c | 50 | virtual void UnloadClusters();// UnLoad Clusters |
582c6e46 | 51 | virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;}; |
d4754572 | 52 | Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const; |
5664c6ed | 53 | void InitCheckHists(); |
54 | void SaveCheckHists(); | |
596a855f | 55 | |
56 | private: | |
596a855f | 57 | |
74ea065c | 58 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index |
59 | void MatchTracks(Bool_t mLastStep); // Matching Algorithm | |
60 | void CollectESD(); // Select starting Set for Matching | |
af885e0f | 61 | Float_t GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF |
62 | Float_t GetTimeZerofromT0(AliESDEvent* event) const; // T0 from T0 | |
e0ddb533 | 63 | Float_t CorrectTimeWalk(Float_t dist,Float_t tof); // Time Walk correction |
74ea065c | 64 | |
e0ddb533 | 65 | AliTOFRecoParam* fRecoParam; // Pointer to TOF Recon. Pars |
74ea065c | 66 | AliTOFGeometry* fGeom; // Pointer to TOF geometry |
e0ddb533 | 67 | AliTOFpidESD* fPid; // Pointer to TOF PID |
74ea065c | 68 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters |
69 | ||
74ea065c | 70 | Int_t fN; // Number of Clusters |
71 | Int_t fNseeds; // Number of track seeds | |
72 | Int_t fNseedsTOF; // TPC BP tracks | |
73 | Int_t fngoodmatch; // Correctly matched tracks | |
74 | Int_t fnbadmatch; // Wrongly matched tracks | |
75 | Int_t fnunmatch; // Unmatched tracks | |
76 | Int_t fnmatch; // Total matched tracks | |
77 | ||
74ea065c | 78 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks |
79 | TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks | |
5664c6ed | 80 | //Digits/Reco QA histos |
81 | ||
82 | TH2F * fHDigClusMap; //Digits QA, Cluster Map | |
83 | TH1F * fHDigNClus; //Digits QA, # of clusters on TOF/event | |
84 | TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns) | |
85 | TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns) | |
86 | TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window | |
87 | TH1F * fHRecDist;//Reco QA, track-TOF cluster closest distance (cm) | |
88 | TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm) | |
89 | TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm) | |
90 | TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm) | |
91 | TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm) | |
92 | TTree * fCalTree; // Tree for on-the-fly offline Calibration | |
93 | // internal variables in tree for on-the-fly TOF Calibration | |
94 | ||
e0ddb533 | 95 | Int_t fIch; //TOF channel number |
5664c6ed | 96 | Float_t fToT; // Time over Threshold, ns |
97 | Float_t fTime; //TOF time, ps | |
98 | Float_t fExpTimePi; // exp time, Pions | |
99 | Float_t fExpTimeKa; // exp time, Kaons | |
100 | Float_t fExpTimePr; // exp time, Protons | |
74ea065c | 101 | |
e0ddb533 | 102 | ClassDef(AliTOFtracker, 2) // TOF tracker |
596a855f | 103 | }; |
104 | ||
105 | #endif |