]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFRecoParam.h
Xcode project file addded to .gitignore
[u/mrichter/AliRoot.git] / TOF / AliTOFRecoParam.h
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   Bool_t   UseTimeZero()           const  { return fTimeZero;}
29   Bool_t   GetTimeZerofromT0()     const  { return fTimeZerofromT0;}
30   Bool_t   GetTimeZerofromTOF()    const  { return fTimeZerofromTOF;}
31   Bool_t   GetTimeWalkCorr()       const  { return fTimeWalkCorr;}
32   Bool_t   GetApplyPbPbCuts()      const  { return fApplyPbPbCuts;}
33
34   Float_t  GetWindowSizeMaxY()     const  { return fWindowSizeMaxY;}
35   Float_t  GetWindowSizeMaxZ()     const  { return fWindowSizeMaxZ;}
36   Float_t  GetWindowScaleFact()    const  { return fWindowScaleFact;}
37   Float_t  GetDistanceCut()        const  { return fDistanceCut;}
38   Float_t  GetSensRadius()         const  { return fSensRadius;}
39   Float_t  GetStepSize()           const  { return fStepSize;}
40   Double_t  GetMaxChi2()           const  { return fMaxChi2;}
41   Double_t  GetMaxChi2TRD()        const  { return fMaxChi2TRD;}
42   Double_t  GetTimeResolution()    const  { return fTimeResolution;}
43   Double_t  GetTimeNSigma()        const  { return fTimeNSigma;}
44   Int_t     GetMaxDeltaTime()      const  { return fMaxDeltaTime;}
45   Int_t     GetStartTimeType()     const  { return fStartTimeType;}
46
47   //Setters
48
49   void   SetTimeZero( Bool_t flag)        {fTimeZero=flag;}
50   void   SetTimeZerofromT0( Bool_t flag)  {fTimeZerofromT0=flag;}
51   void   SetTimeZerofromTOF(Bool_t flag)  {fTimeZerofromTOF=flag;}
52   void   SetTimeWalkCorr(Bool_t flag)     {fTimeWalkCorr=flag;}
53   void   SetApplyPbPbCuts(Bool_t flag)    {fApplyPbPbCuts=flag;}
54
55   void  SetWindowSizeMaxY(Float_t in)   {fWindowSizeMaxY=in;}
56   void  SetWindowSizeMaxZ(Float_t in)   {fWindowSizeMaxZ=in;}
57   void  SetWindowScaleFact(Float_t in) {fWindowScaleFact=in;}
58   void  SetDistanceCut(Float_t in)  {fDistanceCut=in;}
59   void  SetSensRadius(Float_t in)  {fSensRadius=in;}
60   void  SetStepSize(Float_t in)  {fStepSize=in;}
61   void  SetMaxChi2(Double_t in)  {fMaxChi2=in;}
62   void  SetMaxChi2TRD(Double_t in)  {fMaxChi2TRD=in;}
63   void  SetTimeResolution(Double_t in)  {fTimeResolution=in;}
64   void  SetTimeNSigma(Double_t in)  {fTimeNSigma=in;}
65   void  SetMaxDeltaTime(Int_t a)   {fMaxDeltaTime = a;}; // to set deltaTime [bin number]
66   void  SetMaxDeltaTime(Float_t a) {fMaxDeltaTime = (Int_t)(a/AliTOFGeometry::TdcBinWidth());}; // to set deltaTime [ps]
67   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   ClassDef(AliTOFRecoParam, 5)
95 };
96
97 #endif