]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFtrackerV1.h
Merging THbtp and HBTP in one library. Comiplation on Windows/Cygwin
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerV1.h
CommitLineData
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"
5c7c93fa 23//#include "AliTOFpidESD.h"
d686d062 24
25class TClonesArray;
5c7c93fa 26class TH1F;
27class TH2F;
d686d062 28
29class AliESDEvent;
30
31class AliTOFcluster;
32class AliTOFRecoParam;
5c7c93fa 33class AliTOFpidESD;
d686d062 34
35class AliTOFtrackerV1 : public AliTracker {
36
37enum {kMaxCluster=77777}; //maximal number of the TOF clusters
38
39public:
40
41 AliTOFtrackerV1();
42 AliTOFtrackerV1(const AliTOFtrackerV1 &t); //Copy Ctor
43 AliTOFtrackerV1& operator=(const AliTOFtrackerV1 &source); // ass. op.
44
45 virtual ~AliTOFtrackerV1();
5c7c93fa 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;};
49 virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
50 virtual void UnloadClusters();// UnLoad Clusters
51 virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
52 Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
53 void InitCheckHists();
54 void SaveCheckHists();
d686d062 55
56private:
57
5c7c93fa 58 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
59 void MatchTracks(); // Matching Algorithm
60 void CollectESD(); // Select starting Set for Matching
61 Float_t GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF
62 Float_t GetTimeZerofromT0(AliESDEvent* event) const; // T0 from T0
63 Float_t CorrectTimeWalk(Float_t dist,Float_t tof); // Time Walk correction
64
65 AliTOFRecoParam* fRecoParam; // Pointer to TOF Recon. Pars
66 AliTOFpidESD* fPid; // Pointer to TOF PID
67 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
68
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
d686d062 76
5c7c93fa 77 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
78 TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks
79 //Digits/Reco QA histos
80
81 TH2F * fHDigClusMap; //Digits QA, Cluster Map
82 TH1F * fHDigNClus; //Digits QA, # of clusters on TOF/event
83 TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns)
84 TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns)
85 TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window
86 TH1F * fHRecChi2;//Reco QA, track-best TOF cluster chi2
87 TH1F * fHRecDistZ;//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
93 ClassDef(AliTOFtrackerV1, 1) // TOF tracker
d686d062 94};
95
96#endif