]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFtrackerV2.h
Update of the TOF code, see the presentation at
[u/mrichter/AliRoot.git] / TOF / AliTOFtrackerV2.h
1 #ifndef ALITOFTRACKERV2_H
2 #define ALITOFTRACKERV2_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 // AliTOFtrackerV2 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 : A. De Caro (Centro Studi e Ricerche E.Fermi)        //
16 // -- Contacts: Annalisa.De.Caro@cern.ch                            //
17 //                                                                  //
18 //------------------------------------------------------------------//
19
20 #include "AliTracker.h"
21 #include "AliESDTOFcluster.h"
22
23 class TClonesArray;
24 class TObjArray;
25
26 class AliESDEvent;
27 class AliESDpid;
28
29 class AliTOFRecoParam;
30 class AliTOFGeometry;
31
32 class AliTOFtrackerV2 : public AliTracker {
33
34  public:
35
36  AliTOFtrackerV2(); 
37
38  virtual ~AliTOFtrackerV2();
39  virtual void GetPidSettings(AliESDpid *esdPID);
40  virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
41  virtual Int_t PropagateBack(AliESDEvent * const event);
42  virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
43  virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
44  virtual void  UnloadClusters();// UnLoad Clusters
45  virtual AliCluster *GetCluster(Int_t index) const
46    {if (index==-1 || index >= fN) return NULL;
47      return (AliCluster *) (&fClusters[index]);};
48  Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
49  Int_t GetNumberOfMatchedTOFtracks() const {return fnmatch;}
50  void FillClusterArray(TObjArray* arr) const;
51  void Clusterize();
52
53 private:
54
55  enum {kMaxCluster=77777}; //maximal number of the TOF clusters
56
57  AliTOFtrackerV2(const AliTOFtrackerV2 &t); //Copy Ctor 
58  AliTOFtrackerV2& operator=(const AliTOFtrackerV2 &source); // ass. op.
59
60  Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
61  void  MatchTracks(); // Matching Algorithm 
62  void  CollectESD(); // Select starting Set for Matching 
63  Float_t CorrectTimeWalk(Float_t dist,Float_t tof) const; // Time Walk correction
64
65  const AliTOFRecoParam* fkRecoParam;    // Pointer to TOF Recon. Pars
66  AliTOFGeometry*  fGeom;                // Pointer to TOF geometry
67  
68  Int_t fN;              // Number of Clusters
69  Int_t fNseeds;         // Number of track seeds  
70  Int_t fNseedsTOF;      // TPC BP tracks
71  Int_t fnunmatch;       // Unmatched tracks
72  Int_t fnmatch;         // Total matched tracks
73
74  TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
75  TObjArray* fSeeds;  //! pointer to the TObjArray with ESD tracks
76  AliESDTOFcluster *fClusters; // pointers to the TOF clusters
77
78  ClassDef(AliTOFtrackerV2, 1) // TOF tracker 
79 };
80
81 #endif