LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFRecoParam.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 11 36 30.6 %
Date: 2016-06-14 17:26:59 Functions: 12 40 30.0 %

          Line data    Source code
       1             : #ifndef ALITOFRECOPARAM_H
       2             : #define ALITOFRECOPARAM_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : ///////////////////////////////////////////////////////////////////////////////
       7             : //                                                                           //
       8             : // Class with TOF reconstruction parameters                                  //
       9             : //                                                                           //
      10             : ///////////////////////////////////////////////////////////////////////////////
      11             : 
      12             : 
      13             : #include "AliDetectorRecoParam.h"
      14             : 
      15             : #include "AliTOFGeometry.h"
      16             : 
      17             : class AliTOFRecoParam : public AliDetectorRecoParam
      18             : {
      19             :  public: 
      20             :   AliTOFRecoParam();
      21             :   AliTOFRecoParam(const AliTOFRecoParam &p); //Copy Ctor 
      22             :   AliTOFRecoParam& operator=(const AliTOFRecoParam &p); // ass. op.
      23             :   virtual ~AliTOFRecoParam();
      24             : 
      25             :   virtual void PrintParameters() const;
      26             : 
      27             :   //Getters
      28           0 :   Bool_t   UseTimeZero()           const  { return fTimeZero;}
      29           0 :   Bool_t   GetTimeZerofromT0()     const  { return fTimeZerofromT0;}
      30           0 :   Bool_t   GetTimeZerofromTOF()    const  { return fTimeZerofromTOF;}
      31          48 :   Bool_t   GetTimeWalkCorr()       const  { return fTimeWalkCorr;}
      32           0 :   Bool_t   GetApplyPbPbCuts()      const  { return fApplyPbPbCuts;}
      33             : 
      34          48 :   Float_t  GetWindowSizeMaxY()     const  { return fWindowSizeMaxY;}
      35          48 :   Float_t  GetWindowSizeMaxZ()     const  { return fWindowSizeMaxZ;}
      36          48 :   Float_t  GetWindowScaleFact()    const  { return fWindowScaleFact;}
      37          48 :   Float_t  GetDistanceCut()        const  { return fDistanceCut;}
      38          48 :   Float_t  GetSensRadius()         const  { return fSensRadius;}
      39          48 :   Float_t  GetStepSize()           const  { return fStepSize;}
      40           0 :   Double_t  GetMaxChi2()           const  { return fMaxChi2;}
      41          48 :   Double_t  GetMaxChi2TRD()        const  { return fMaxChi2TRD;}
      42          18 :   Double_t  GetTimeResolution()    const  { return fTimeResolution;}
      43           0 :   Double_t  GetTimeNSigma()        const  { return fTimeNSigma;}
      44           0 :   Int_t     GetMaxDeltaTime()      const  { return fMaxDeltaTime;}
      45          16 :   Int_t     GetStartTimeType()     const  { return fStartTimeType;}
      46             : 
      47             :   //Setters
      48             : 
      49           0 :   void   SetTimeZero( Bool_t flag)        {fTimeZero=flag;}
      50           0 :   void   SetTimeZerofromT0( Bool_t flag)  {fTimeZerofromT0=flag;}
      51           0 :   void   SetTimeZerofromTOF(Bool_t flag)  {fTimeZerofromTOF=flag;}
      52           0 :   void   SetTimeWalkCorr(Bool_t flag)     {fTimeWalkCorr=flag;}
      53           0 :   void   SetApplyPbPbCuts(Bool_t flag)    {fApplyPbPbCuts=flag;}
      54             : 
      55           0 :   void  SetWindowSizeMaxY(Float_t in)   {fWindowSizeMaxY=in;}
      56           0 :   void  SetWindowSizeMaxZ(Float_t in)   {fWindowSizeMaxZ=in;}
      57           0 :   void  SetWindowScaleFact(Float_t in) {fWindowScaleFact=in;}
      58           0 :   void  SetDistanceCut(Float_t in)  {fDistanceCut=in;}
      59           0 :   void  SetSensRadius(Float_t in)  {fSensRadius=in;}
      60           0 :   void  SetStepSize(Float_t in)  {fStepSize=in;}
      61           0 :   void  SetMaxChi2(Double_t in)  {fMaxChi2=in;}
      62           0 :   void  SetMaxChi2TRD(Double_t in)  {fMaxChi2TRD=in;}
      63           0 :   void  SetTimeResolution(Double_t in)  {fTimeResolution=in;}
      64           0 :   void  SetTimeNSigma(Double_t in)  {fTimeNSigma=in;}
      65           0 :   void  SetMaxDeltaTime(Int_t a)   {fMaxDeltaTime = a;}; // to set deltaTime [bin number]
      66           0 :   void  SetMaxDeltaTime(Float_t a) {fMaxDeltaTime = (Int_t)(a/AliTOFGeometry::TdcBinWidth());}; // to set deltaTime [ps]
      67           0 :   void  SetStartTimeType(Int_t a) {fStartTimeType = a;};
      68             : 
      69             :   static   AliTOFRecoParam *GetPbPbparam();       // reco param for PbPb.
      70             :   static   AliTOFRecoParam *GetPPparam();         // reco param for PP
      71             :  private:
      72             : 
      73             :   Bool_t fTimeZero; //use Time Zero info in Pid
      74             :   Bool_t fTimeZerofromT0; // Use Time Zero as determined by T0
      75             :   Bool_t fTimeZerofromTOF; //Use Time Zero as determined from TOF
      76             :   Bool_t fTimeWalkCorr; // Correct for signal time walk in z
      77             :   Bool_t fApplyPbPbCuts; //apply "high flux" cuts
      78             : 
      79             :   Float_t fWindowSizeMaxY;  // cluster search window size, Y (cm)
      80             :   Float_t fWindowSizeMaxZ;  // cluster search window size, Z (cm)
      81             :   Float_t fWindowScaleFact;  // cluster search window, scale factor
      82             :   Float_t fDistanceCut;  // cut on the closest approach distance
      83             :   Float_t fSensRadius;  // Average radius of sensitive volumes (cm)
      84             :   Float_t fStepSize;  // Propagation step size (cm)
      85             :   Double_t fMaxChi2;  // maximum X2 track-tof clusters
      86             :   Double_t fMaxChi2TRD;  // maximum X2 track-tof clusters (TRD)
      87             :   Double_t fTimeResolution;  // Time resolution for resp. function in PID (ps)
      88             :   Double_t fTimeNSigma;  // N-Sigma Range used for resp. function in PID 
      89             :   Int_t    fMaxDeltaTime; // max time difference in between two tof
      90             :                           // measurements for two neighbouring pads
      91             :                           // [number of bins]
      92             :   Int_t fStartTimeType; // flag to set start_time to be used for TOF PID
      93             : 
      94          44 :   ClassDef(AliTOFRecoParam, 5)
      95             : };
      96             : 
      97             : #endif

Generated by: LCOV version 1.11