LCOV - code coverage report
Current view: top level - TOF/TOFrec - AliTOFtrackerV1.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 5 20.0 %
Date: 2016-06-14 17:26:59 Functions: 1 8 12.5 %

          Line data    Source code
       1             : #ifndef ALITOFTRACKERV1_H
       2             : #define ALITOFTRACKERV1_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             : // AliTOFtrackerV1 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             : class TClonesArray;
      25             : class TObjArray;
      26             : class TH1F;
      27             : class TH2F;
      28             : 
      29             : class AliESDEvent;
      30             : 
      31             : class AliTOFcluster;
      32             : class AliTOFRecoParam;
      33             : class AliESDpid;
      34             : 
      35             : class AliTOFtrackerV1 : public AliTracker {
      36             : 
      37             : public:
      38             : 
      39             :  AliTOFtrackerV1(); 
      40             : 
      41             :  virtual ~AliTOFtrackerV1();
      42             :  virtual void GetPidSettings(AliESDpid *esdPID);
      43           0 :  virtual Int_t Clusters2Tracks(AliESDEvent* /*event*/) {return -1;};
      44             :  virtual Int_t PropagateBack(AliESDEvent * const event);
      45           0 :  virtual Int_t RefitInward(AliESDEvent* /*event*/) {return -1;};
      46             :  virtual Int_t LoadClusters(TTree * cTree); // Load Clusters
      47             :  virtual void  UnloadClusters();// UnLoad Clusters
      48             :  virtual AliCluster *GetCluster(Int_t index) const
      49           0 :    {if (index==-1 || index >= fN) return NULL;
      50           0 :    return (AliCluster *) fClusters[index];};
      51             :  Bool_t GetTrackPoint(Int_t index, AliTrackPoint& p) const;
      52             :  void InitCheckHists();
      53             :  void SaveCheckHists();
      54             :  void FillClusterArray(TObjArray* arr) const;
      55             : 
      56             : private:
      57             : 
      58             :  enum {kMaxCluster=77777}; //maximal number of the TOF clusters
      59             : 
      60             :  AliTOFtrackerV1(const AliTOFtrackerV1 &t); //Copy Ctor 
      61             :  AliTOFtrackerV1& operator=(const AliTOFtrackerV1 &source); // ass. op.
      62             : 
      63             :  Int_t FindClusterIndex(Double_t z) const; // Returns cluster index 
      64             :  void  MatchTracks(); // Matching Algorithm 
      65             :  void  CollectESD(); // Select starting Set for Matching 
      66             :  Float_t  GetTimeZerofromTOF(AliESDEvent* /*event*/) const; // T0 from TOF
      67             :  Float_t  GetTimeZerofromT0(const AliESDEvent * const event) const; // T0 from T0
      68             :  Float_t  CorrectTimeWalk(Float_t dist,Float_t tof) const; // Time Walk correction
      69             : 
      70             :  const AliTOFRecoParam* fkRecoParam;    // Pointer to TOF Recon. Pars
      71             :  AliTOFcluster *fClusters[kMaxCluster]; // pointers to the TOF clusters
      72             : 
      73             :  Int_t fN;              // Number of Clusters
      74             :  Int_t fNseeds;         // Number of track seeds  
      75             :  Int_t fNseedsTOF;      // TPC BP tracks
      76             :  Int_t fngoodmatch;     // Correctly matched  tracks
      77             :  Int_t fnbadmatch;      // Wrongly matched tracks
      78             :  Int_t fnunmatch;       // Unmatched tracks
      79             :  Int_t fnmatch;         // Total matched tracks
      80             :  
      81             :  TClonesArray* fTracks; //! pointer to the TClonesArray with TOF tracks
      82             :  TObjArray* fSeeds;  //! pointer to the TObjArray with ESD tracks
      83             :  //Digits/Reco QA histos
      84             : 
      85             :  TH2F * fHDigClusMap; //Digits QA, Cluster Map 
      86             :  TH1F * fHDigNClus;   //Digits QA, # of clusters on TOF/event
      87             :  TH1F * fHDigClusTime;//Digits QA, Cluster Time (ns)
      88             :  TH1F * fHDigClusToT; //Digits QA, Cluster ToT (ns)
      89             :  TH1F * fHRecNClus; //Reco QA, cluster occupancy in search window
      90             :  TH1F * fHRecChi2;//Reco QA, track-best TOF cluster chi2
      91             :  TH1F * fHRecDistZ;//Reco QA, track-TOF cluster closest distance (cm)
      92             :  TH2F * fHRecSigYVsP;//Reco QA, track error in Y at TOF inner surface (cm)
      93             :  TH2F * fHRecSigZVsP; //Reco QA, track error in Z at TOF inner surface (cm)
      94             :  TH2F * fHRecSigYVsPWin;//Reco QA, search window size in Y (cm)
      95             :  TH2F * fHRecSigZVsPWin;//Reco QA, search window size in X (cm)
      96             : 
      97          26 :  ClassDef(AliTOFtrackerV1, 3) // TOF tracker 
      98             : };
      99             : 
     100             : #endif

Generated by: LCOV version 1.11