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