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