LCOV - code coverage report
Current view: top level - TOF/TOFrec - AliTOFtrackerV2.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 6 16.7 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.1 %

          Line data    Source code
       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 "AliTOFcluster.h"
      22             : #include "AliESDTOFCluster.h"
      23             : 
      24             : class TClonesArray;
      25             : class TObjArray;
      26             : 
      27             : class AliESDEvent;
      28             : class AliESDpid;
      29             : class AliTOFRecoParam;
      30             : 
      31             : class AliTOFtrackerV2 : public AliTracker {
      32             : 
      33             :  public:
      34             : 
      35             :  AliTOFtrackerV2(); 
      36             : 
      37             :  virtual ~AliTOFtrackerV2();
      38             :  virtual void GetPidSettings(AliESDpid *esdPID);
      39           0 :  virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
      40             :  virtual Int_t PropagateBack(AliESDEvent * const event);
      41           0 :  virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
      42             :  virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
      43             :  virtual void  UnloadClusters();// UnLoad Clusters
      44             :  Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
      45           0 :  Int_t GetNumberOfMatchedTOFtracks() const {return fnmatch;}
      46             :  virtual AliCluster *GetCluster(Int_t index) const
      47             :  {//Int_t index = fWrittenInPos[indexOr]; // indexOr should refer to the clusters written in ESD
      48           0 :    if (index==-1 || index >= fN) return NULL;
      49           0 :    return (AliCluster *) &(fClusters[index]);};
      50             : 
      51             : private:
      52             :  void Clusterize();
      53             :  void MergeClusters(Int_t i,Int_t j);
      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             :  
      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 fnunmatch;       // Unmatched tracks
      71             :  Int_t fnmatch;         // Total matched tracks
      72             : 
      73             :  TObjArray* fSeeds;  //! pointer to the TObjArray with ESD tracks
      74             :  AliTOFcluster    *fClusters[kMaxCluster];     //! pointers to the TOF cluster
      75             :  TClonesArray     *fClustersESD;  //! base line for ESD clusters
      76             :  TClonesArray     *fHitsESD;       //! filter list of TOF hits for ESD
      77             :  Int_t            fWrittenInPos[kMaxCluster]; //! the position where the cluster is already written
      78             :  
      79             :  AliESDEvent      *fEvent;    //! pointer to the event
      80             : 
      81             :  Int_t fNsteps;                         //! number of propagation steps
      82             :  Double_t *fTimesAr[AliPID::kSPECIESC]; //! array to compute expected times for each propagation step
      83             :  Float_t  *fTrackPos[4];                //! array to compute pos for each propation step
      84             : 
      85          26 :  ClassDef(AliTOFtrackerV2, 2) // TOF tracker 
      86             : };
      87             : 
      88             : #endif

Generated by: LCOV version 1.11