Corrected protection
[u/mrichter/AliRoot.git] / TOF / AliTOFRecoParam.h
CommitLineData
52ffea62 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
93ed261e 13#include "AliDetectorRecoParam.h"
52ffea62 14
93ed261e 15class AliTOFRecoParam : public AliDetectorRecoParam
52ffea62 16{
17 public:
18 AliTOFRecoParam();
15ed3d4f 19 AliTOFRecoParam(const AliTOFRecoParam &p); //Copy Ctor
20 AliTOFRecoParam& operator=(const AliTOFRecoParam &p); // ass. op.
52ffea62 21 virtual ~AliTOFRecoParam();
90b234fe 22
23 virtual void PrintParameters() const;
24
52ffea62 25 //Getters
26 Bool_t UseTimeZero() const { return fTimeZero;}
27 Bool_t GetTimeZerofromT0() const { return fTimeZerofromT0;}
28 Bool_t GetTimeZerofromTOF() const { return fTimeZerofromTOF;}
29 Bool_t GetTimeWalkCorr() const { return fTimeWalkCorr;}
30 Bool_t GetApplyPbPbCuts() const { return fApplyPbPbCuts;}
31
32 Float_t GetWindowSizeMaxY() const { return fWindowSizeMaxY;}
33 Float_t GetWindowSizeMaxZ() const { return fWindowSizeMaxZ;}
34 Float_t GetWindowScaleFact() const { return fWindowScaleFact;}
35 Float_t GetDistanceCut() const { return fDistanceCut;}
36 Float_t GetSensRadius() const { return fSensRadius;}
37 Float_t GetStepSize() const { return fStepSize;}
38 Double_t GetMaxChi2() const { return fMaxChi2;}
15ed3d4f 39 Double_t GetMaxChi2TRD() const { return fMaxChi2TRD;}
52ffea62 40 Double_t GetTimeResolution() const { return fTimeResolution;}
41 Double_t GetTimeNSigma() const { return fTimeNSigma;}
42
43 //Setters
44
45 void SetTimeZero( Bool_t flag) {fTimeZero=flag;}
46 void SetTimeZerofromT0( Bool_t flag) {fTimeZerofromT0=flag;}
47 void SetTimeZerofromTOF(Bool_t flag) {fTimeZerofromTOF=flag;}
48 void SetTimeWalkCorr(Bool_t flag) {fTimeWalkCorr=flag;}
49 void SetApplyPbPbCuts(Bool_t flag) {fApplyPbPbCuts=flag;}
50
51 void SetWindowSizeMaxY(Float_t in) {fWindowSizeMaxY=in;}
52 void SetWindowSizeMaxZ(Float_t in) {fWindowSizeMaxZ=in;}
53 void SetWindowScaleFact(Float_t in) {fWindowScaleFact=in;}
54 void SetDistanceCut(Float_t in) {fDistanceCut=in;}
55 void SetSensRadius(Float_t in) {fSensRadius=in;}
56 void SetStepSize(Float_t in) {fStepSize=in;}
57 void SetMaxChi2(Double_t in) {fMaxChi2=in;}
15ed3d4f 58 void SetMaxChi2TRD(Double_t in) {fMaxChi2TRD=in;}
52ffea62 59 void SetTimeResolution(Double_t in) {fTimeResolution=in;}
60 void SetTimeNSigma(Double_t in) {fTimeNSigma=in;}
61
90b234fe 62 static AliTOFRecoParam *GetPbPbparam(); // reco param for PbPb.
63 static AliTOFRecoParam *GetPPparam(); // reco param for PP
64 static AliTOFRecoParam *GetCosmicMuonParam(); // reco param for cosmic muons
52ffea62 65 private:
66
67 Bool_t fTimeZero; //use Time Zero info in Pid
68 Bool_t fTimeZerofromT0; // Use Time Zero as determined by T0
69 Bool_t fTimeZerofromTOF; //Use Time Zero as determined from TOF
70 Bool_t fTimeWalkCorr; // Correct for signal time walk in z
71 Bool_t fApplyPbPbCuts; //apply "high flux" cuts
72
73 Float_t fWindowSizeMaxY; // cluster search window size, Y (cm)
74 Float_t fWindowSizeMaxZ; // cluster search window size, Z (cm)
75 Float_t fWindowScaleFact; // cluster search window, scale factor
76 Float_t fDistanceCut; // cut on the closest approach distance
77 Float_t fSensRadius; // Average radius of sensitive volumes (cm)
78 Float_t fStepSize; // Propagation step size (cm)
15ed3d4f 79 Double_t fMaxChi2; // maximum X2 track-tof clusters
90b234fe 80 Double_t fMaxChi2TRD; // maximum X2 track-tof clusters (TRD)
52ffea62 81 Double_t fTimeResolution; // Time resolution for resp. function in PID (ps)
82 Double_t fTimeNSigma; // N-Sigma Range used for resp. function in PID
83
90b234fe 84 ClassDef(AliTOFRecoParam, 3)
52ffea62 85};
86
87#endif