]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFtracker.h
mods related to AliTOFRecoParam
[u/mrichter/AliRoot.git] / TOF / AliTOFtracker.h
CommitLineData
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"
571dda3d 23
596a855f 24#include "AliTOFpidESD.h"
25
0e46b9ae 26class TClonesArray;
27
28class AliESD;
29
571dda3d 30class AliTOFcluster;
0e46b9ae 31class AliTOFGeometry;
5664c6ed 32class TH1F;
33class TH2F;
596a855f 34
596a855f 35class AliTOFtracker : public AliTracker {
74ea065c 36
37enum {kMaxCluster=77777}; //maximal number of the TOF clusters
38
596a855f 39public:
40
74ea065c 41 AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]);
42 AliTOFtracker(const AliTOFtracker &t); //Copy Ctor
7aeeaf38 43 AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
44
5664c6ed 45 virtual ~AliTOFtracker();
46 // virtual ~AliTOFtracker() {delete fTOFpid; SaveCheckHists();}
596a855f 47 virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;};
74ea065c 48 virtual Int_t PropagateBack(AliESD* event);
596a855f 49 virtual Int_t RefitInward(AliESD* /*event*/) {return -1;};
7aeeaf38 50 virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
74ea065c 51 virtual void UnloadClusters();// UnLoad Clusters
582c6e46 52 virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
d4754572 53 Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
5664c6ed 54 void InitCheckHists();
55 void SaveCheckHists();
596a855f 56
57private:
596a855f 58
74ea065c 59 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
60 void MatchTracks(Bool_t mLastStep); // Matching Algorithm
61 void CollectESD(); // Select starting Set for Matching
74ea065c 62
63 AliTOFGeometry* fGeom; // Pointer to TOF geometry
64 AliTOFpidESD* fTOFpid; // Pointer to TOF PID
65 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
66
d4754572 67 Bool_t fHoles; // flag for Geometry Version(w/wo Holes)
74ea065c 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 fngoodmatch; // Correctly matched tracks
72 Int_t fnbadmatch; // Wrongly matched tracks
73 Int_t fnunmatch; // Unmatched tracks
74 Int_t fnmatch; // Total matched tracks
75
76 Float_t fR; // Intermediate radius in TOF, used in matching
77 Float_t fTOFHeigth; // Inner TOF radius for propagation
78 Float_t fdCut; // Cut on minimum distance track-pad in matching
79 Float_t fDx; // Pad Size in X
80 Float_t fDy; // Pad Size in Y (== X TOF convention)
81 Float_t fDz; // Pad Size in Z
c0545837 82 Float_t fDzMax; // Upper limit in z for the size of the search window
83 Float_t fDyMax; // Upper limit in y for the size of the search window
74ea065c 84 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
85 TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks
5664c6ed 86 //Digits/Reco QA histos
87
88 TH2F * fHDigClusMap; //Digits QA, Cluster Map
89 TH1F * fHDigNClus; //Digits QA, # of clusters on TOF/event
90 TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns)
91 TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns)
92 TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window
93 TH1F * fHRecDist;//Reco QA, track-TOF cluster closest distance (cm)
94 TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm)
95 TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm)
96 TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm)
97 TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm)
98 TTree * fCalTree; // Tree for on-the-fly offline Calibration
99 // internal variables in tree for on-the-fly TOF Calibration
100
101 Int_t fIch; //TOF channel number
102 Float_t fToT; // Time over Threshold, ns
103 Float_t fTime; //TOF time, ps
104 Float_t fExpTimePi; // exp time, Pions
105 Float_t fExpTimeKa; // exp time, Kaons
106 Float_t fExpTimePr; // exp time, Protons
74ea065c 107
108 ClassDef(AliTOFtracker, 1) // TOF tracker
596a855f 109};
110
111#endif