]>
Commit | Line | Data |
---|---|---|
596a855f | 1 | #ifndef ALITOFTRACKER_H |
2 | #define ALITOFTRACKER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
74ea065c | 5 | // AliTOFtracker Class |
6 | // Task: Perform association of the ESD tracks to TOF Clusters | |
7 | // and Update ESD track with associated TOF Cluster parameters | |
8 | // | |
9 | // -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN) | |
10 | // -- Contacts: Annalisa.De.Caro@cern.ch | |
11 | // -- : Chiara.Zampolli@bo.infn.it | |
12 | // -- : Silvia.Arcelli@bo.infn.it | |
13 | //-------------------------------------------------------------------- | |
596a855f | 14 | |
15 | /* $Id$ */ | |
16 | ||
571dda3d | 17 | #include "TClonesArray.h" |
18 | ||
19 | #include "AliESD.h" | |
596a855f | 20 | #include "AliTracker.h" |
571dda3d | 21 | |
596a855f | 22 | #include "AliTOFpidESD.h" |
23 | ||
24 | class AliTOFGeometry; | |
571dda3d | 25 | class AliTOFcluster; |
596a855f | 26 | |
596a855f | 27 | class AliTOFtracker : public AliTracker { |
74ea065c | 28 | |
29 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters | |
30 | ||
596a855f | 31 | public: |
32 | ||
74ea065c | 33 | AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]); |
34 | AliTOFtracker(const AliTOFtracker &t); //Copy Ctor | |
596a855f | 35 | virtual ~AliTOFtracker() {delete fTOFpid;} |
36 | virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;}; | |
74ea065c | 37 | virtual Int_t PropagateBack(AliESD* event); |
596a855f | 38 | virtual Int_t RefitInward(AliESD* /*event*/) {return -1;}; |
7b61cd9c | 39 | virtual Int_t LoadClusters(TTree * /*cTree*/); // Load Clusters |
74ea065c | 40 | virtual void UnloadClusters();// UnLoad Clusters |
582c6e46 | 41 | virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;}; |
596a855f | 42 | |
43 | private: | |
596a855f | 44 | |
7b61cd9c | 45 | //Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array |
74ea065c | 46 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index |
47 | void MatchTracks(Bool_t mLastStep); // Matching Algorithm | |
48 | void CollectESD(); // Select starting Set for Matching | |
49 | void Init(); | |
50 | ||
51 | AliTOFGeometry* fGeom; // Pointer to TOF geometry | |
52 | AliTOFpidESD* fTOFpid; // Pointer to TOF PID | |
53 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters | |
54 | ||
55 | Bool_t fHoles; // flag for Geometry Version(w/wo Holes) temporary! | |
56 | Int_t fN; // Number of Clusters | |
57 | Int_t fNseeds; // Number of track seeds | |
58 | Int_t fNseedsTOF; // TPC BP tracks | |
59 | Int_t fngoodmatch; // Correctly matched tracks | |
60 | Int_t fnbadmatch; // Wrongly matched tracks | |
61 | Int_t fnunmatch; // Unmatched tracks | |
62 | Int_t fnmatch; // Total matched tracks | |
63 | ||
64 | Float_t fR; // Intermediate radius in TOF, used in matching | |
65 | Float_t fTOFHeigth; // Inner TOF radius for propagation | |
66 | Float_t fdCut; // Cut on minimum distance track-pad in matching | |
67 | Float_t fDx; // Pad Size in X | |
68 | Float_t fDy; // Pad Size in Y (== X TOF convention) | |
69 | Float_t fDz; // Pad Size in Z | |
70 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks | |
71 | TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks | |
72 | ||
73 | ClassDef(AliTOFtracker, 1) // TOF tracker | |
596a855f | 74 | }; |
75 | ||
76 | #endif | |
77 | ||
78 |