SDD DDL maps for June 2008 data taking
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerMI.h
CommitLineData
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 19class TTreeSRedirector;
20class TClonesArray;
21
af885e0f 22class AliESDEvent;
0e46b9ae 23
24class AliTOFcluster;
e0ddb533 25class AliTOFRecoParam;
d88fbf15 26class AliTOFGeometry;
27class AliTOFtrack;
5c7c93fa 28class AliTOFpidESD;
d88fbf15 29
30class AliTOFtrackerMI : public AliTracker {
31
32enum {kMaxCluster=77777}; //maximal number of the TOF clusters
33
34public:
35
e0ddb533 36 AliTOFtrackerMI();
d88fbf15 37 AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor
7aeeaf38 38 AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op.
39
d88fbf15 40 // virtual ~AliTOFtrackerMI() {delete fTOFpid;}
41 virtual ~AliTOFtrackerMI();
af885e0f 42 virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
43 virtual Int_t PropagateBack(AliESDEvent* event);
44 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
7aeeaf38 45 virtual Int_t LoadClusters(TTree *dTree); // Loading Clusters from Digits
46 virtual void UnloadClusters();// UnLoad Clusters
47 virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
48 void GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz);
128563f6 49 void FillClusterArray(TObjArray* arr) const;
d88fbf15 50
51private:
52
5c7c93fa 53 Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array
54 Int_t FindClusterIndex(Double_t z) const; // Returns cluster index
55 void MatchTracks(Bool_t mLastStep); // Matching Algorithm
56 void MatchTracksMI(Bool_t mLastStep); // Matching Algorithm
57 void CollectESD(); // Select starting Set for Matching
58 //void Init();
59 Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]);
60 AliTOFRecoParam* fRecoParam; // Pointer to TOF Recontr. Params
61 AliTOFGeometry* fGeom; // Pointer to TOF geometry
62 AliTOFpidESD* fPid; // Pointer to TOF PID
63 AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
64
65 Int_t fN; // Number of Clusters
66 Int_t fNseeds; // Number of track seeds
67 Int_t fNseedsTOF; // TPC BP tracks
68 Int_t fngoodmatch; // Correctly matched tracks
69 Int_t fnbadmatch; // Wrongly matched tracks
70 Int_t fnunmatch; // Unmatched tracks
71 Int_t fnmatch; // Total matched tracks
d88fbf15 72
5c7c93fa 73 Float_t fR; // Intermediate radius in TOF, used in matching
74 Float_t fTOFHeigth; // Inner TOF radius for propagation
75 Float_t fdCut; // Cut on minimum distance track-pad in matching
76 Float_t fDx; // Pad Size in X
77 Float_t fDy; // Pad Size in Y (== X TOF convention)
78 Float_t fDz; // Pad Size in Z
79 TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
80 TClonesArray* fSeeds; //! pointer to the TClonesArray with ESD tracks
81 TTreeSRedirector *fDebugStreamer; //!debug streamer
82 ClassDef(AliTOFtrackerMI, 1) // TOF trackerMI
d88fbf15 83};
84
85#endif