]>
Commit | Line | Data |
---|---|---|
d88fbf15 | 1 | #ifndef ALITOFTRACKERMI_H |
2 | #define ALITOFTRACKERMI_H | |
0e46b9ae | 3 | |
d88fbf15 | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
d88fbf15 | 6 | |
7 | /* $Id$ */ | |
8 | ||
0e46b9ae | 9 | //-----------------------------------------------------------------// |
10 | // // | |
11 | // AliTOFtrackerMI Class // | |
12 | // Task: Perform association of the ESD tracks to TOF Clusters // | |
13 | // and Update ESD track with associated TOF Cluster parameters // | |
14 | // // | |
15 | //-----------------------------------------------------------------// | |
16 | ||
d88fbf15 | 17 | #include "AliTracker.h" |
0e46b9ae | 18 | |
0e46b9ae | 19 | class TTreeSRedirector; |
20 | class TClonesArray; | |
0841bd02 | 21 | class TObjArray; |
0e46b9ae | 22 | |
af885e0f | 23 | class AliESDEvent; |
10d100d4 | 24 | class AliESDpid; |
0e46b9ae | 25 | |
26 | class AliTOFcluster; | |
e0ddb533 | 27 | class AliTOFRecoParam; |
d88fbf15 | 28 | class AliTOFGeometry; |
29 | class AliTOFtrack; | |
d88fbf15 | 30 | |
31 | class AliTOFtrackerMI : public AliTracker { | |
32 | ||
d88fbf15 | 33 | public: |
34 | ||
e0ddb533 | 35 | AliTOFtrackerMI(); |
7aeeaf38 | 36 | |
d88fbf15 | 37 | // virtual ~AliTOFtrackerMI() {delete fTOFpid;} |
38 | virtual ~AliTOFtrackerMI(); | |
10d100d4 | 39 | virtual void GetPidSettings(AliESDpid *esdPID); |
af885e0f | 40 | virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;}; |
26acf84d | 41 | virtual Int_t PropagateBack(AliESDEvent * const event); |
af885e0f | 42 | virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;}; |
7aeeaf38 | 43 | virtual Int_t LoadClusters(TTree *dTree); // Loading Clusters from Digits |
44 | virtual void UnloadClusters();// UnLoad Clusters | |
21a8ed8d | 45 | virtual AliCluster *GetCluster(Int_t index) const |
46 | {if (index==-1 || index >= fN) return NULL; | |
47 | return (AliCluster *) fClusters[index];}; | |
069bb393 | 48 | void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz) const; |
128563f6 | 49 | void FillClusterArray(TObjArray* arr) const; |
d88fbf15 | 50 | |
51 | private: | |
52 | ||
de60fa8a | 53 | enum {kMaxCluster=77777}; //maximal number of the TOF clusters |
54 | ||
8a190ba2 | 55 | AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor |
56 | AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op. | |
57 | ||
5c7c93fa | 58 | Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array |
59 | Int_t FindClusterIndex(Double_t z) const; // Returns cluster index | |
069bb393 | 60 | void MatchTracks(Bool_t mLastStep) const; // Matching Algorithm |
5c7c93fa | 61 | void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm |
62 | void CollectESD(); // Select starting Set for Matching | |
63 | //void Init(); | |
64 | Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]); | |
3a646035 | 65 | |
069bb393 | 66 | const AliTOFRecoParam* fkRecoParam; // Pointer to TOF Recon. Pars |
3a646035 | 67 | AliTOFGeometry* fGeom; // Pointer to TOF geometry |
3a646035 | 68 | AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters |
5c7c93fa | 69 | |
70 | Int_t fN; // Number of Clusters | |
71 | Int_t fNseeds; // Number of track seeds | |
72 | Int_t fNseedsTOF; // TPC BP tracks | |
73 | Int_t fngoodmatch; // Correctly matched tracks | |
74 | Int_t fnbadmatch; // Wrongly matched tracks | |
75 | Int_t fnunmatch; // Unmatched tracks | |
76 | Int_t fnmatch; // Total matched tracks | |
d88fbf15 | 77 | |
5c7c93fa | 78 | Float_t fR; // Intermediate radius in TOF, used in matching |
79 | Float_t fTOFHeigth; // Inner TOF radius for propagation | |
80 | Float_t fdCut; // Cut on minimum distance track-pad in matching | |
81 | Float_t fDx; // Pad Size in X | |
82 | Float_t fDy; // Pad Size in Y (== X TOF convention) | |
83 | Float_t fDz; // Pad Size in Z | |
84 | TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks | |
0841bd02 | 85 | TObjArray* fSeeds; //! pointer to the TObjArray with ESD tracks |
5c7c93fa | 86 | TTreeSRedirector *fDebugStreamer; //!debug streamer |
0841bd02 | 87 | ClassDef(AliTOFtrackerMI, 3) // TOF trackerMI |
d88fbf15 | 88 | }; |
89 | ||
90 | #endif |