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 | |
45a69ca6 |
15 | #include "AliTOFGeometry.h" |
16 | |
93ed261e |
17 | class AliTOFRecoParam : public AliDetectorRecoParam |
52ffea62 |
18 | { |
19 | public: |
20 | AliTOFRecoParam(); |
15ed3d4f |
21 | AliTOFRecoParam(const AliTOFRecoParam &p); //Copy Ctor |
22 | AliTOFRecoParam& operator=(const AliTOFRecoParam &p); // ass. op. |
52ffea62 |
23 | virtual ~AliTOFRecoParam(); |
90b234fe |
24 | |
25 | virtual void PrintParameters() const; |
26 | |
52ffea62 |
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;} |
45a69ca6 |
41 | Double_t GetMaxChi2TRD() const { return fMaxChi2TRD;} |
52ffea62 |
42 | Double_t GetTimeResolution() const { return fTimeResolution;} |
43 | Double_t GetTimeNSigma() const { return fTimeNSigma;} |
45a69ca6 |
44 | Int_t GetMaxDeltaTime() const { return fMaxDeltaTime;} |
52ffea62 |
45 | |
46 | //Setters |
47 | |
48 | void SetTimeZero( Bool_t flag) {fTimeZero=flag;} |
49 | void SetTimeZerofromT0( Bool_t flag) {fTimeZerofromT0=flag;} |
50 | void SetTimeZerofromTOF(Bool_t flag) {fTimeZerofromTOF=flag;} |
51 | void SetTimeWalkCorr(Bool_t flag) {fTimeWalkCorr=flag;} |
52 | void SetApplyPbPbCuts(Bool_t flag) {fApplyPbPbCuts=flag;} |
53 | |
54 | void SetWindowSizeMaxY(Float_t in) {fWindowSizeMaxY=in;} |
55 | void SetWindowSizeMaxZ(Float_t in) {fWindowSizeMaxZ=in;} |
56 | void SetWindowScaleFact(Float_t in) {fWindowScaleFact=in;} |
57 | void SetDistanceCut(Float_t in) {fDistanceCut=in;} |
58 | void SetSensRadius(Float_t in) {fSensRadius=in;} |
59 | void SetStepSize(Float_t in) {fStepSize=in;} |
60 | void SetMaxChi2(Double_t in) {fMaxChi2=in;} |
15ed3d4f |
61 | void SetMaxChi2TRD(Double_t in) {fMaxChi2TRD=in;} |
52ffea62 |
62 | void SetTimeResolution(Double_t in) {fTimeResolution=in;} |
63 | void SetTimeNSigma(Double_t in) {fTimeNSigma=in;} |
45a69ca6 |
64 | void SetMaxDeltaTime(Int_t a) {fMaxDeltaTime = a;}; // to set deltaTime [bin number] |
65 | void SetMaxDeltaTime(Float_t a) {fMaxDeltaTime = (Int_t)(a/AliTOFGeometry::TdcBinWidth());}; // to set deltaTime [ps] |
52ffea62 |
66 | |
90b234fe |
67 | static AliTOFRecoParam *GetPbPbparam(); // reco param for PbPb. |
68 | static AliTOFRecoParam *GetPPparam(); // reco param for PP |
52ffea62 |
69 | private: |
70 | |
71 | Bool_t fTimeZero; //use Time Zero info in Pid |
72 | Bool_t fTimeZerofromT0; // Use Time Zero as determined by T0 |
73 | Bool_t fTimeZerofromTOF; //Use Time Zero as determined from TOF |
74 | Bool_t fTimeWalkCorr; // Correct for signal time walk in z |
75 | Bool_t fApplyPbPbCuts; //apply "high flux" cuts |
76 | |
77 | Float_t fWindowSizeMaxY; // cluster search window size, Y (cm) |
78 | Float_t fWindowSizeMaxZ; // cluster search window size, Z (cm) |
79 | Float_t fWindowScaleFact; // cluster search window, scale factor |
80 | Float_t fDistanceCut; // cut on the closest approach distance |
81 | Float_t fSensRadius; // Average radius of sensitive volumes (cm) |
82 | Float_t fStepSize; // Propagation step size (cm) |
15ed3d4f |
83 | Double_t fMaxChi2; // maximum X2 track-tof clusters |
90b234fe |
84 | Double_t fMaxChi2TRD; // maximum X2 track-tof clusters (TRD) |
52ffea62 |
85 | Double_t fTimeResolution; // Time resolution for resp. function in PID (ps) |
86 | Double_t fTimeNSigma; // N-Sigma Range used for resp. function in PID |
45a69ca6 |
87 | Int_t fMaxDeltaTime; // max time difference in between two tof |
88 | // measurements for two neighbouring pads |
89 | // [number of bins] |
52ffea62 |
90 | |
45a69ca6 |
91 | ClassDef(AliTOFRecoParam, 4) |
52ffea62 |
92 | }; |
93 | |
94 | #endif |