]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFtracker.h
Avoid mixing up trigger and tracks replacing the option "CP" by
[u/mrichter/AliRoot.git] / TOF / AliTOFtracker.h
1 #ifndef ALITOFTRACKER_H
2 #define ALITOFTRACKER_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 // 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 //----------------------------------------------------------------------//
21
22 #include "AliTracker.h"
23
24 #include "AliTOFpidESD.h"
25
26 class TClonesArray;
27
28 class AliESD;
29
30 class AliTOFcluster;
31 class AliTOFGeometry;
32
33 class AliTOFtracker : public AliTracker {
34
35 enum {kMaxCluster=77777}; //maximal number of the TOF clusters
36
37 public:
38
39  AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]); 
40  AliTOFtracker(const AliTOFtracker &t); //Copy Ctor 
41  AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
42
43   virtual ~AliTOFtracker() {delete fTOFpid;}
44   virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;};
45   virtual Int_t PropagateBack(AliESD* event);
46   virtual Int_t RefitInward(AliESD* /*event*/) {return -1;};
47   virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
48   virtual void  UnloadClusters();// UnLoad Clusters
49   virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
50   Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
51
52 private:
53
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 
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
62   Bool_t fHoles;         // flag for Geometry Version(w/wo Holes) 
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 
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 
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 
83 };
84
85 #endif