]>
Commit | Line | Data |
---|---|---|
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;} |
d486a5ef | 45 | Int_t GetStartTimeType() const { return fStartTimeType;} |
52ffea62 | 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;} | |
15ed3d4f | 62 | void SetMaxChi2TRD(Double_t in) {fMaxChi2TRD=in;} |
52ffea62 | 63 | void SetTimeResolution(Double_t in) {fTimeResolution=in;} |
64 | void SetTimeNSigma(Double_t in) {fTimeNSigma=in;} | |
45a69ca6 | 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] | |
d486a5ef | 67 | void SetStartTimeType(Int_t a) {fStartTimeType = a;}; |
52ffea62 | 68 | |
90b234fe | 69 | static AliTOFRecoParam *GetPbPbparam(); // reco param for PbPb. |
70 | static AliTOFRecoParam *GetPPparam(); // reco param for PP | |
52ffea62 | 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) | |
15ed3d4f | 85 | Double_t fMaxChi2; // maximum X2 track-tof clusters |
90b234fe | 86 | Double_t fMaxChi2TRD; // maximum X2 track-tof clusters (TRD) |
52ffea62 | 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 | |
45a69ca6 | 89 | Int_t fMaxDeltaTime; // max time difference in between two tof |
90 | // measurements for two neighbouring pads | |
91 | // [number of bins] | |
d486a5ef | 92 | Int_t fStartTimeType; // flag to set start_time to be used for TOF PID |
52ffea62 | 93 | |
d486a5ef | 94 | ClassDef(AliTOFRecoParam, 5) |
52ffea62 | 95 | }; |
96 | ||
97 | #endif |