]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFtracker.h
New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[u/mrichter/AliRoot.git] / TOF / AliTOFtracker.h
index e50ff82e4ed284739f9ac9a74999bdc1dac0cea1..ce15729c576157cd1ba2e6b33be0bf3e8f85d321 100644 (file)
 //----------------------------------------------------------------------//
 
 #include "AliTracker.h"
-
 #include "AliTOFpidESD.h"
 
 class TClonesArray;
 
-class AliESD;
+class AliESDEvent;
 
 class AliTOFcluster;
+class AliTOFRecoParam;
 class AliTOFGeometry;
 class TH1F;
 class TH2F;
@@ -38,15 +38,14 @@ enum {kMaxCluster=77777}; //maximal number of the TOF clusters
 
 public:
 
- AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]); 
+ AliTOFtracker(); 
  AliTOFtracker(const AliTOFtracker &t); //Copy Ctor 
  AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
 
  virtual ~AliTOFtracker();
-  //  virtual ~AliTOFtracker() {delete fTOFpid; SaveCheckHists();}
-  virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;};
-  virtual Int_t PropagateBack(AliESD* event);
-  virtual Int_t RefitInward(AliESD* /*event*/) {return -1;};
+  virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
+  virtual Int_t PropagateBack(AliESDEvent* event);
+  virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
   virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
   virtual void  UnloadClusters();// UnLoad Clusters
   virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
@@ -59,12 +58,15 @@ private:
   Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
   void  MatchTracks(Bool_t mLastStep); // Matching Algorithm 
   void  CollectESD(); // Select starting Set for Matching 
+  Float_t  GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF
+  Float_t  GetTimeZerofromT0(AliESDEvent* event) const; // T0 from T0
+  Float_t  CorrectTimeWalk(Float_t dist,Float_t tof); // Time Walk correction
 
+  AliTOFRecoParam* fRecoParam;           // Pointer to TOF Recon. Pars
   AliTOFGeometry*  fGeom;                 // Pointer to TOF geometry
-  AliTOFpidESD*    fTOFpid;               // Pointer to TOF PID
+  AliTOFpidESD*    fPid;               // Pointer to TOF PID
   AliTOFcluster *fClusters[kMaxCluster];  // pointers to the TOF clusters
 
-  Bool_t fHoles;         // flag for Geometry Version(w/wo Holes) 
   Int_t fN;              // Number of Clusters
   Int_t fNseeds;         // Number of track seeds  
   Int_t fNseedsTOF;      // TPC BP tracks
@@ -73,14 +75,6 @@ private:
   Int_t fnunmatch;       // Unmatched tracks
   Int_t fnmatch;         // Total matched tracks
  
-  Float_t fR;            // Intermediate radius in TOF, used in matching
-  Float_t fTOFHeigth;    // Inner TOF radius for propagation
-  Float_t fdCut;         // Cut on minimum distance track-pad in matching 
-  Float_t fDx;           // Pad Size in X   
-  Float_t fDy;           // Pad Size in Y (== X  TOF convention)
-  Float_t fDz;           // Pad Size in Z 
-  Float_t fDzMax;        // Upper limit in z for the size of the search window 
-  Float_t fDyMax;        // Upper limit in y for the size of the search window 
   TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
   TClonesArray* fSeeds;  //! pointer to the TClonesArray with ESD tracks
   //Digits/Reco QA histos
@@ -98,14 +92,14 @@ private:
   TTree * fCalTree; // Tree for on-the-fly offline Calibration
   // internal variables in tree for on-the-fly TOF Calibration
 
-  Int_t fIch; //TOF channel number
+  Int_t   fIch; //TOF channel number
   Float_t fToT; // Time over Threshold, ns
   Float_t fTime; //TOF time, ps
   Float_t fExpTimePi; // exp time, Pions
   Float_t fExpTimeKa; // exp time, Kaons
   Float_t fExpTimePr; // exp time, Protons
 
-  ClassDef(AliTOFtracker, 1) // TOF tracker 
+  ClassDef(AliTOFtracker, 2) // TOF tracker 
 };
 
 #endif