]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFtracker.h
reducing macro to minimum AliReconstruction functionality, disable QA and TriggerESD...
[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"
5c7c93fa 23//#include "AliTOFpidESD.h"
596a855f 24
0e46b9ae 25class TClonesArray;
26
5c7c93fa 27class TH1F;
28class TH2F;
29
af885e0f 30class AliESDEvent;
0e46b9ae 31
571dda3d 32class AliTOFcluster;
e0ddb533 33class AliTOFRecoParam;
0e46b9ae 34class AliTOFGeometry;
5c7c93fa 35class AliTOFpidESD;
596a855f 36
596a855f 37class AliTOFtracker : public AliTracker {
74ea065c 38
39enum {kMaxCluster=77777}; //maximal number of the TOF clusters
40
596a855f 41public:
42
e0ddb533 43 AliTOFtracker();
74ea065c 44 AliTOFtracker(const AliTOFtracker &t); //Copy Ctor
7aeeaf38 45 AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
46
5664c6ed 47 virtual ~AliTOFtracker();
5c7c93fa 48 virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
49 virtual Int_t PropagateBack(AliESDEvent* event);
50 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
51 virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
52 virtual void UnloadClusters();// UnLoad Clusters
53 virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
54 Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
55 void InitCheckHists();
56 void SaveCheckHists();
596a855f 57
58private:
596a855f 59
5c7c93fa 60 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
61 void MatchTracks(Bool_t mLastStep); // Matching Algorithm
62 void CollectESD(); // Select starting Set for Matching
63 Float_t GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF
64 Float_t GetTimeZerofromT0(AliESDEvent* event) const; // T0 from T0
65 Float_t CorrectTimeWalk(Float_t dist,Float_t tof); // Time Walk correction
66
67 AliTOFRecoParam* fRecoParam; // Pointer to TOF Recon. Pars
68 AliTOFGeometry* fGeom; // Pointer to TOF geometry
69 AliTOFpidESD* fPid; // Pointer to TOF PID
70 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
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
74ea065c 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 * fHRecDist;//Reco QA, track-TOF cluster closest distance (cm)
90 TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm)
91 TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm)
92 TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm)
93 TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm)
94 TTree * fCalTree; // Tree for on-the-fly offline Calibration
95 // internal variables in tree for on-the-fly TOF Calibration
96
97 Int_t fIch; //TOF channel number
98 Float_t fToT; // Time over Threshold, ns
99 Float_t fTime; //TOF time, ps
100 Float_t fExpTimePi; // exp time, Pions
101 Float_t fExpTimeKa; // exp time, Kaons
102 Float_t fExpTimePr; // exp time, Protons
103
104 ClassDef(AliTOFtracker, 2) // TOF tracker
596a855f 105};
106
107#endif