Line data Source code
1 : /**************************************************************************
2 : * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 : * *
4 : * Author: The ALICE Off-line Project. *
5 : * Contributors are mentioned in the code where appropriate. *
6 : * *
7 : * Permission to use, copy, modify and distribute this software and its *
8 : * documentation strictly for non-commercial purposes is hereby granted *
9 : * without fee, provided that the above copyright notice appears in all *
10 : * copies and that both the copyright notice and this permission notice *
11 : * appear in the supporting documentation. The authors make no claims *
12 : * about the suitability of this software for any purpose. It is *
13 : * provided "as is" without express or implied warranty. *
14 : **************************************************************************/
15 :
16 :
17 : ///////////////////////////////////////////////////////////////////////////////
18 : // //
19 : // Class with TOF reconstruction parameters //
20 : // //
21 : // //
22 : ///////////////////////////////////////////////////////////////////////////////
23 :
24 :
25 : #include "AliLog.h"
26 :
27 : #include "AliTOFRecoParam.h"
28 :
29 26 : ClassImp(AliTOFRecoParam)
30 :
31 : //_____________________________________________________________________________
32 : AliTOFRecoParam::AliTOFRecoParam():
33 6 : AliDetectorRecoParam(),
34 6 : fTimeZero(kFALSE),
35 6 : fTimeZerofromT0(kFALSE),
36 6 : fTimeZerofromTOF(kFALSE),
37 6 : fTimeWalkCorr(kFALSE),
38 6 : fApplyPbPbCuts(kFALSE),
39 6 : fWindowSizeMaxY(50.),
40 6 : fWindowSizeMaxZ(35.),
41 6 : fWindowScaleFact(5.),
42 6 : fDistanceCut(3.),
43 6 : fSensRadius(379.5),
44 6 : fStepSize(0.1),
45 6 : fMaxChi2(10.),
46 6 : fMaxChi2TRD(150.),
47 6 : fTimeResolution(80.),
48 6 : fTimeNSigma(5.),
49 6 : fMaxDeltaTime(2),
50 6 : fStartTimeType(1)// 1 -> AliESDpid::kTOF_T0
51 30 : {
52 : //
53 : // constructor
54 : //
55 6 : SetNameTitle("TOF","TOF");
56 12 : }
57 : //_____________________________________________________________________________
58 : AliTOFRecoParam::AliTOFRecoParam(const AliTOFRecoParam &p):
59 0 : AliDetectorRecoParam(p),
60 0 : fTimeZero(p.fTimeZero),
61 0 : fTimeZerofromT0(p.fTimeZerofromT0),
62 0 : fTimeZerofromTOF(p.fTimeZerofromTOF),
63 0 : fTimeWalkCorr(p.fTimeWalkCorr),
64 0 : fApplyPbPbCuts(p.fApplyPbPbCuts),
65 0 : fWindowSizeMaxY(p.fWindowSizeMaxY),
66 0 : fWindowSizeMaxZ(p.fWindowSizeMaxZ),
67 0 : fWindowScaleFact(p.fWindowScaleFact),
68 0 : fDistanceCut(p.fDistanceCut),
69 0 : fSensRadius(p.fSensRadius),
70 0 : fStepSize(p.fStepSize),
71 0 : fMaxChi2(p.fMaxChi2),
72 0 : fMaxChi2TRD(p.fMaxChi2TRD),
73 0 : fTimeResolution(p.fTimeResolution),
74 0 : fTimeNSigma(p.fTimeNSigma),
75 0 : fMaxDeltaTime(p.fMaxDeltaTime),
76 0 : fStartTimeType(p.fStartTimeType)
77 0 : {
78 : //copy Ctor
79 :
80 :
81 0 : }
82 : //_____________________________________________________________________________
83 : AliTOFRecoParam& AliTOFRecoParam::operator=(const AliTOFRecoParam &p)
84 : {
85 : //
86 : // assign. operator
87 : //
88 :
89 0 : if (this == &p)
90 0 : return *this;
91 :
92 0 : AliDetectorRecoParam::operator=(p);
93 0 : fTimeZero=p.fTimeZero;
94 0 : fTimeZerofromT0=p.fTimeZerofromT0;
95 0 : fTimeZerofromTOF=p.fTimeZerofromTOF;
96 0 : fTimeWalkCorr=p.fTimeWalkCorr;
97 0 : fApplyPbPbCuts=p.fApplyPbPbCuts;
98 0 : fWindowSizeMaxY=p.fWindowSizeMaxY;
99 0 : fWindowSizeMaxZ=p.fWindowSizeMaxZ;
100 0 : fDistanceCut=p.fDistanceCut;
101 0 : fWindowScaleFact=p.fWindowScaleFact;
102 0 : fStepSize=p.fStepSize;
103 0 : fSensRadius=p.fSensRadius;
104 0 : fMaxChi2=p.fMaxChi2;
105 0 : fMaxChi2TRD=p.fMaxChi2TRD;
106 0 : fTimeResolution=p.fTimeResolution;
107 0 : fTimeNSigma=p.fTimeNSigma;
108 0 : fMaxDeltaTime=p.fMaxDeltaTime;
109 0 : fStartTimeType=p.fStartTimeType;
110 0 : return *this;
111 0 : }
112 : //_____________________________________________________________________________
113 : AliTOFRecoParam::~AliTOFRecoParam()
114 16 : {
115 : //
116 : // destructor
117 : //
118 16 : }
119 :
120 : //_____________________________________________________________________________
121 : AliTOFRecoParam *AliTOFRecoParam::GetPbPbparam(){
122 : //
123 : // set default reconstruction parameters for PbPb.
124 : //
125 0 : AliTOFRecoParam *param = new AliTOFRecoParam();
126 0 : param->fApplyPbPbCuts = kTRUE;
127 0 : param->fWindowScaleFact = 5.;
128 0 : param->fDistanceCut = 3.;
129 0 : param->fMaxDeltaTime = 2;
130 0 : return param;
131 0 : }
132 :
133 : //_____________________________________________________________________________
134 : AliTOFRecoParam *AliTOFRecoParam::GetPPparam(){
135 : //
136 : // set default reconstruction parameters for PP.
137 : //
138 0 : AliTOFRecoParam *param = new AliTOFRecoParam();
139 0 : param->fApplyPbPbCuts = kFALSE;
140 0 : param->fWindowScaleFact = 5.;
141 0 : param->fDistanceCut = 10.;
142 0 : param->fMaxDeltaTime = 2;
143 0 : return param;
144 0 : }
145 :
146 : //_____________________________________________________________________________
147 : void AliTOFRecoParam::PrintParameters() const
148 : {
149 : //
150 : // Printing of the used TOF reconstruction parameters
151 : //
152 :
153 0 : AliInfo(Form(" Use Time Zero info in Pid: %i", fTimeZero));
154 0 : AliInfo(Form(" Use Time Zero as determined by T0: %i", fTimeZerofromT0));
155 0 : AliInfo(Form(" Use Time Zero as determined from TOF: %i",
156 : fTimeZerofromTOF));
157 0 : AliInfo(Form(" Correct for signal time walk in z: %i", fTimeWalkCorr));
158 0 : AliInfo(Form(" Apply high flux cuts: %i", fApplyPbPbCuts));
159 :
160 0 : AliInfo(Form(" Cluster search window - size, Y: %f cm", fWindowSizeMaxY));
161 0 : AliInfo(Form(" Cluster search window - size, Z: %f cm", fWindowSizeMaxZ));
162 0 : AliInfo(Form(" Cluster search window - scale factor: %f",
163 : fWindowScaleFact));
164 :
165 0 : AliInfo(Form(" Cut on the closest approach distance: %f", fDistanceCut));
166 0 : AliInfo(Form(" Average radius of sensitive volumes: %f cm", fSensRadius));
167 0 : AliInfo(Form(" Propagation step size: %f cm", fStepSize));
168 0 : AliInfo(Form(" Maximum X2 track-tof clusters: %f", fMaxChi2));
169 :
170 0 : AliInfo(Form(" Maximum X2 track-tof clusters (TRD): %f", fMaxChi2TRD));
171 0 : AliInfo(Form(" Time resolution for responce function in PID: %f ps",
172 : fTimeResolution));
173 0 : AliInfo(Form(" N-Sigma Range used for responce function in PID: %f",
174 : fTimeNSigma));
175 0 : AliInfo(Form(" Max time difference between two (or more) time measurements"
176 : " coming from two (or more) neighbouring pads"
177 : " to define if they are coming from the same ionization event"
178 : " or not: %2d bins -> %f ps",
179 : fMaxDeltaTime, fMaxDeltaTime*AliTOFGeometry::TdcBinWidth()));
180 :
181 0 : }
|