]>
Commit | Line | Data |
---|---|---|
d686d062 | 1 | #ifndef ALITOFTRACKERV1_H |
2 | #define ALITOFTRACKERV1_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | //----------------------------------------------------------------------// | |
10 | // // | |
11 | // AliTOFtrackerV1 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 | //----------------------------------------------------------------------// | |
21 | ||
22 | #include "AliTracker.h" | |
d686d062 | 23 | |
24 | class TClonesArray; | |
5c7c93fa | 25 | class TH1F; |
26 | class TH2F; | |
d686d062 | 27 | |
28 | class AliESDEvent; | |
29 | ||
30 | class AliTOFcluster; | |
31 | class AliTOFRecoParam; | |
10d100d4 | 32 | class AliESDpid; |
d686d062 | 33 | |
34 | class AliTOFtrackerV1 : public AliTracker { | |
35 | ||
36 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters | |
37 | ||
38 | public: | |
39 | ||
40 | AliTOFtrackerV1(); | |
d686d062 | 41 | |
42 | virtual ~AliTOFtrackerV1(); | |
10d100d4 | 43 | virtual void GetPidSettings(AliESDpid *esdPID); |
5c7c93fa | 44 | virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;}; |
26acf84d | 45 | virtual Int_t PropagateBack(AliESDEvent * const event); |
5c7c93fa | 46 | virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;}; |
47 | virtual Int_t LoadClusters(TTree * cTree); // Load Clusters | |
48 | virtual void UnloadClusters();// UnLoad Clusters | |
21a8ed8d | 49 | virtual AliCluster *GetCluster(Int_t index) const |
50 | {if (index==-1 || index >= fN) return NULL; | |
51 | return (AliCluster *) fClusters[index];}; | |
5c7c93fa | 52 | Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const; |
53 | void InitCheckHists(); | |
54 | void SaveCheckHists(); | |
128563f6 | 55 | void FillClusterArray(TObjArray* arr) const; |
d686d062 | 56 | |
57 | private: | |
58 | ||
8a190ba2 | 59 | AliTOFtrackerV1(const AliTOFtrackerV1 &t); //Copy Ctor |
60 | AliTOFtrackerV1& operator=(const AliTOFtrackerV1 &source); // ass. op. | |
61 | ||
5c7c93fa | 62 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index |
63 | void MatchTracks(); // Matching Algorithm | |
64 | void CollectESD(); // Select starting Set for Matching | |
65 | Float_t GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF | |
d3be4547 | 66 | Float_t GetTimeZerofromT0(const AliESDEvent * const event) const; // T0 from T0 |
67 | Float_t CorrectTimeWalk(Float_t dist,Float_t tof) const; // Time Walk correction | |
5c7c93fa | 68 | |
d3be4547 | 69 | const AliTOFRecoParam* fkRecoParam; // Pointer to TOF Recon. Pars |
3a646035 | 70 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters |
5c7c93fa | 71 | |
72 | Int_t fN; // Number of Clusters | |
73 | Int_t fNseeds; // Number of track seeds | |
74 | Int_t fNseedsTOF; // TPC BP tracks | |
75 | Int_t fngoodmatch; // Correctly matched tracks | |
76 | Int_t fnbadmatch; // Wrongly matched tracks | |
77 | Int_t fnunmatch; // Unmatched tracks | |
78 | Int_t fnmatch; // Total matched tracks | |
d686d062 | 79 | |
5c7c93fa | 80 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks |
81 | TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks | |
82 | //Digits/Reco QA histos | |
83 | ||
84 | TH2F * fHDigClusMap; //Digits QA, Cluster Map | |
85 | TH1F * fHDigNClus; //Digits QA, # of clusters on TOF/event | |
86 | TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns) | |
87 | TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns) | |
88 | TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window | |
89 | TH1F * fHRecChi2;//Reco QA, track-best TOF cluster chi2 | |
90 | TH1F * fHRecDistZ;//Reco QA, track-TOF cluster closest distance (cm) | |
91 | TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm) | |
92 | TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm) | |
93 | TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm) | |
94 | TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm) | |
95 | ||
10d100d4 | 96 | ClassDef(AliTOFtrackerV1, 2) // TOF tracker |
d686d062 | 97 | }; |
98 | ||
99 | #endif |