]>
Commit | Line | Data |
---|---|---|
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 | 26 | class TClonesArray; |
27 | ||
28 | class AliESD; | |
29 | ||
571dda3d | 30 | class AliTOFcluster; |
0e46b9ae | 31 | class AliTOFGeometry; |
596a855f | 32 | |
596a855f | 33 | class AliTOFtracker : public AliTracker { |
74ea065c | 34 | |
35 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters | |
36 | ||
596a855f | 37 | public: |
38 | ||
74ea065c | 39 | AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]); |
40 | AliTOFtracker(const AliTOFtracker &t); //Copy Ctor | |
7aeeaf38 | 41 | AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op. |
42 | ||
596a855f | 43 | virtual ~AliTOFtracker() {delete fTOFpid;} |
44 | virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;}; | |
74ea065c | 45 | virtual Int_t PropagateBack(AliESD* event); |
596a855f | 46 | virtual Int_t RefitInward(AliESD* /*event*/) {return -1;}; |
7aeeaf38 | 47 | virtual Int_t LoadClusters(TTree * cTree); // Load Clusters |
74ea065c | 48 | virtual void UnloadClusters();// UnLoad Clusters |
582c6e46 | 49 | virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;}; |
d4754572 | 50 | Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const; |
596a855f | 51 | |
52 | private: | |
596a855f | 53 | |
74ea065c | 54 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index |
55 | void MatchTracks(Bool_t mLastStep); // Matching Algorithm | |
56 | void CollectESD(); // Select starting Set for Matching | |
74ea065c | 57 | |
58 | AliTOFGeometry* fGeom; // Pointer to TOF geometry | |
59 | AliTOFpidESD* fTOFpid; // Pointer to TOF PID | |
60 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters | |
61 | ||
d4754572 | 62 | Bool_t fHoles; // flag for Geometry Version(w/wo Holes) |
74ea065c | 63 | Int_t fN; // Number of Clusters |
64 | Int_t fNseeds; // Number of track seeds | |
65 | Int_t fNseedsTOF; // TPC BP tracks | |
66 | Int_t fngoodmatch; // Correctly matched tracks | |
67 | Int_t fnbadmatch; // Wrongly matched tracks | |
68 | Int_t fnunmatch; // Unmatched tracks | |
69 | Int_t fnmatch; // Total matched tracks | |
70 | ||
71 | Float_t fR; // Intermediate radius in TOF, used in matching | |
72 | Float_t fTOFHeigth; // Inner TOF radius for propagation | |
73 | Float_t fdCut; // Cut on minimum distance track-pad in matching | |
74 | Float_t fDx; // Pad Size in X | |
75 | Float_t fDy; // Pad Size in Y (== X TOF convention) | |
76 | Float_t fDz; // Pad Size in Z | |
c0545837 | 77 | Float_t fDzMax; // Upper limit in z for the size of the search window |
78 | Float_t fDyMax; // Upper limit in y for the size of the search window | |
74ea065c | 79 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks |
80 | TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks | |
81 | ||
82 | ClassDef(AliTOFtracker, 1) // TOF tracker | |
596a855f | 83 | }; |
84 | ||
85 | #endif |