]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFtracker.h
Bug fix. Incorrect usage of types was corrected.
[u/mrichter/AliRoot.git] / TOF / AliTOFtracker.h
index a9c19b6e0f02d60d218483027f3aded8df96f8e3..844d603fb95fc69fb8d1e6034207c8e10bd895f5 100644 (file)
@@ -1,38 +1,85 @@
 #ifndef ALITOFTRACKER_H
 #define ALITOFTRACKER_H
+
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
 
+//----------------------------------------------------------------------//
+//                                                                      //
+// AliTOFtracker Class                                                  //
+// Task: Perform association of the ESD tracks to TOF Clusters          //
+// and Update ESD track with associated TOF Cluster parameters          //
+//                                                                      //
+// -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN)   //
+// -- Contacts: Annalisa.De.Caro@cern.ch                                //
+// --         : Chiara.Zampolli@bo.infn.it                              //
+// --         : Silvia.Arcelli@bo.infn.it                               //
+//                                                                      //
+//----------------------------------------------------------------------//
+
 #include "AliTracker.h"
+
 #include "AliTOFpidESD.h"
 
-class AliTOFGeometry;
+class TClonesArray;
 
+class AliESD;
+
+class AliTOFcluster;
+class AliTOFGeometry;
 
 class AliTOFtracker : public AliTracker {
+
+enum {kMaxCluster=77777}; //maximal number of the TOF clusters
+
 public:
 
-  AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]) 
-    {fGeom = geom; fTOFpid = new AliTOFpidESD(parPID);};
+ AliTOFtracker(AliTOFGeometry* geom, Double_t parPID[2]); 
+ AliTOFtracker(const AliTOFtracker &t); //Copy Ctor 
+ AliTOFtracker& operator=(const AliTOFtracker &source); // ass. op.
+
   virtual ~AliTOFtracker() {delete fTOFpid;}
   virtual Int_t Clusters2Tracks(AliESD* /*event*/) {return -1;};
-  virtual Int_t PropagateBack(AliESD* event) {return fTOFpid->MakePID(event);};
+  virtual Int_t PropagateBack(AliESD* event);
   virtual Int_t RefitInward(AliESD* /*event*/) {return -1;};
-
-  virtual Int_t LoadClusters(TTree* tree) 
-    {return fTOFpid->LoadClusters(tree, fGeom);};
-  virtual void UnloadClusters() {fTOFpid->UnloadClusters();};
-  virtual AliCluster *GetCluster(Int_t index) const {return NULL;};
+  virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
+  virtual void  UnloadClusters();// UnLoad Clusters
+  virtual AliCluster *GetCluster(Int_t /*index*/) const {return NULL;};
+  Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
 
 private:
-  AliTOFpidESD*    fTOFpid;  // TOF PID
-  AliTOFGeometry*  fGeom;    // TOF geometry
 
-  ClassDef(AliTOFtracker, 1) // TOF tracker (wrapper for AliTOFpidESD)
-};
+  Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
+  void  MatchTracks(Bool_t mLastStep); // Matching Algorithm 
+  void  CollectESD(); // Select starting Set for Matching 
 
-#endif
+  AliTOFGeometry*  fGeom;                 // Pointer to TOF geometry
+  AliTOFpidESD*    fTOFpid;               // 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
+  Int_t fngoodmatch;     // Correctly matched  tracks
+  Int_t fnbadmatch;      // Wrongly matched tracks
+  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
 
+  ClassDef(AliTOFtracker, 1) // TOF tracker 
+};
+
+#endif