]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFtrackerMI.h
To correclty visualize the not-assigned/assigned/shared TOF clusters
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerMI.h
1 #ifndef ALITOFTRACKERMI_H
2 #define ALITOFTRACKERMI_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
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
17 #include "AliTracker.h"
18
19 class TTreeSRedirector;
20 class TClonesArray;
21
22 class AliESDEvent;
23
24 class AliTOFcluster;
25 class AliTOFRecoParam;
26 class AliTOFGeometry;
27 class AliTOFtrack;
28 class AliTOFpidESD;
29
30 class AliTOFtrackerMI : public AliTracker {
31
32 enum {kMaxCluster=77777}; //maximal number of the TOF clusters
33
34 public:
35
36  AliTOFtrackerMI(); 
37  AliTOFtrackerMI(const AliTOFtrackerMI &t); //Copy Ctor 
38  AliTOFtrackerMI& operator=(const AliTOFtrackerMI &source); // ass. op.
39
40  //  virtual ~AliTOFtrackerMI() {delete fTOFpid;}
41  virtual ~AliTOFtrackerMI();
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;};
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
48    {if (index==-1 || index >= fN) return NULL;
49    return (AliCluster *) fClusters[index];};
50  void    GetLikelihood(Float_t dy, Float_t dz, const Double_t *cov, AliTOFtrack * track, Float_t & py, Float_t &pz);
51  void FillClusterArray(TObjArray* arr) const;
52
53 private:
54
55  Int_t InsertCluster(AliTOFcluster *c); // Fills TofClusters Array
56  Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
57  void  MatchTracks(Bool_t mLastStep); // Matching Algorithm 
58  void  MatchTracksMI(Bool_t mLastStep); // Matching Algorithm 
59  void  CollectESD(); // Select starting Set for Matching 
60  //void  Init();
61  Float_t GetLinearDistances(AliTOFtrack * track, AliTOFcluster *cluster, Float_t distances[5]);
62  AliTOFRecoParam*  fRecoParam;           // Pointer to TOF Recontr. Params
63  AliTOFGeometry*  fGeom;                 // Pointer to TOF geometry
64  AliTOFpidESD*    fPid;               // Pointer to TOF PID
65  AliTOFcluster *fClusters[kMaxCluster];  // pointers to the TOF clusters
66
67  Int_t fN;              // Number of Clusters
68  Int_t fNseeds;         // Number of track seeds  
69  Int_t fNseedsTOF;      // TPC BP tracks
70  Int_t fngoodmatch;     // Correctly matched  tracks
71  Int_t fnbadmatch;      // Wrongly matched tracks
72  Int_t fnunmatch;       // Unmatched tracks
73  Int_t fnmatch;         // Total matched tracks
74  
75  Float_t fR;            // Intermediate radius in TOF, used in matching
76  Float_t fTOFHeigth;    // Inner TOF radius for propagation
77  Float_t fdCut;         // Cut on minimum distance track-pad in matching 
78  Float_t fDx;           // Pad Size in X   
79  Float_t fDy;           // Pad Size in Y (== X  TOF convention)
80  Float_t fDz;           // Pad Size in Z 
81  TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
82  TClonesArray* fSeeds;  //! pointer to the TClonesArray with ESD tracks
83  TTreeSRedirector *fDebugStreamer;     //!debug streamer
84  ClassDef(AliTOFtrackerMI, 1) // TOF trackerMI 
85 };
86
87 #endif