Modifications required for handling dots in HLT trigger names.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecParam.cxx
CommitLineData
1e7c9b89 1/**************************************************************************
3a8be91c 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/* $Id$ */
feedcab9 17
3a8be91c 18//-----------------------------------------------------------------------------
19// Container of EMCAL reconstruction parameters
20// The purpose of this object is to store it to OCDB
1e7c9b89 21// and retrieve it in the corresponding reconstruction class:
22// AliEMCALClusterizer, AliEMCALPID, AliEMCALTracker ...
23//
3a8be91c 24// Author: Yuri Kharlov
25//-----------------------------------------------------------------------------
26
1e7c9b89 27// --- Root header files
28//#include "TObjArray.h"
29
30// --- AliRoot header files ---
31#include "AliCDBManager.h"
32#include "AliCDBEntry.h"
33#include "AliEMCALRecParam.h"
34
35ClassImp(AliEMCALRecParam)
36
ee08edde 37TObjArray* AliEMCALRecParam::fgkMaps =0; //ALTRO mappings
1e7c9b89 38
413e6b81 39AliEMCALRecParam::AliEMCALRecParam() :
40 AliDetectorRecoParam(),
41 fClusteringThreshold(0.5),
42 fW0(4.5),
43 fMinECut(0.45),
44 fUnfold(kFALSE),
a435f763 45 fLocMaxCut(0.03),
829ba234 46 fTimeCut(1.),// high value, accept all
47 fTimeMin(-1.),// small value, accept all
48 fTimeMax(1.),// high value, accept all//clustering
ee08edde 49 fClusterizerFlag(AliEMCALRecParam::kClusterizerv1),
413e6b81 50 fTrkCutX(6.0),
51 fTrkCutY(6.0),
52 fTrkCutZ(6.0),
53 fTrkCutR(10.0),
54 fTrkCutAlphaMin(-50.0),
55 fTrkCutAlphaMax(50.0),
dcd86c5d 56 fTrkCutAngle(10000.0),
57 fTrkCutNITS(3.0),
58 fTrkCutNTPC(20.0), //track matching
413e6b81 59 fHighLowGainFactor(16.0),
60 fOrderParameter(2),
61 fTau(2.35),
62 fNoiseThreshold(3),
9f467289 63 fNPedSamples(5),
46f1d25f 64 fRemoveBadChannels(kFALSE),
65 fFittingAlgorithm(0),
e853f058 66 fUseFALTRO(kTRUE),
67 fFitLEDEvents(kFALSE)//raw signal
c47157cd 68{
69 // default reco values
1e7c9b89 70
71 // PID parameters for Pb Pb from Lambda0 distributions fitted by
72 // a landau inverted + Gaussian for Gammas
73 // and a Landau +Gaussian for Pi0 and hadrons
74 // New parametrisation for
75 // lambda0^2 (=x): f(x) = normLandau*TMath::Landau(((1-mpvlandau)-x),mpvLandau,widthLandau)+normgaus*TMath::Gaus(x,meangaus,sigmagaus) for gammas
76 // lambda0^2 (=x): f(x) = normLandau*TMath::Landau(x,mpvLandau,widthLandau)+normgaus*TMath::Gaus(x,meangaus,sigmagaus) for pi0 & hadrons
77
78 // See AliEMCALPid
79 // (index i) refers to each parameters of the f(lambda0^2)
80 // i=0: normGaus
81 // i=1: meanGaus
82 // i=2: sigmaGaus
83 // i=3: normLandau
84 // i=4: mpvLandau
85 // i=5: sigmaLanda
86 // (index j) refers to the polynomial parameters of the fit of each parameter vs energy
87 // Pb Pb
88
8ba062b1 89 // as a first step, all array elements are initialized to 0.0
ee08edde 90 Int_t i=0, j=0;
8ba062b1 91 for (i = 0; i < 6; i++) {
1e7c9b89 92 for (j = 0; j < 6; j++) {
93 fGamma[i][j] = fPiZero[i][j] = fHadron[i][j] = 0.;
94 fGamma1to10[i][j] = fHadron1to10[i][j]= 0.;
8ba062b1 95 }
9f467289 96 fGammaEnergyProb[i] =0.; // not yet implemented
1e7c9b89 97 fHadronEnergyProb[i]=0.;
98 fPiZeroEnergyProb[i]=0.; // not yet implemented
99
100
8ba062b1 101 }
88cf6bfb 102 // Set here default parameters for Pb+Pb (high flux)
8ba062b1 103
1e7c9b89 104 fGamma[0][0] = -7.656908e-01;
105 fGamma[0][1] = 2.352536e-01;
106 fGamma[0][2] = 1.555996e-02;
107 fGamma[0][3] = 2.243525e-04;
108 fGamma[0][4] = -2.560087e-06;
109
110 fGamma[1][0] = 6.500216e+00;
111 fGamma[1][1] = -2.564958e-01;
112 fGamma[1][2] = 1.967894e-01;
113 fGamma[1][3] = -3.982273e-04;
114 fGamma[1][4] = 2.797737e-06;
115
116 fGamma[2][0] = 2.416489e+00;
117 fGamma[2][1] = -1.601258e-01;
118 fGamma[2][2] = 3.126839e-02;
119 fGamma[2][3] = 3.387532e-04;
120 fGamma[2][4] = -4.089145e-06;
121
122
123 fGamma[3][0] = 0.;
124 fGamma[3][1] = -2.696008e+00;
125 fGamma[3][2] = 6.920305e-01;
126 fGamma[3][3] = -2.281122e-03;
127 fGamma[3][4] = 0.;
128
129 fGamma[4][0] = 2.281564e-01;
130 fGamma[4][1] = -7.575040e-02;
131 fGamma[4][2] = 3.813423e-01;
132 fGamma[4][3] = -1.243854e-04;
133 fGamma[4][4] = 1.232045e-06;
134
135 fGamma[5][0] = -3.290107e-01;
136 fGamma[5][1] = 3.707545e-02;
137 fGamma[5][2] = 2.917397e-03;
138 fGamma[5][3] = 4.695306e-05;
139 fGamma[5][4] = -3.572981e-07;
140
141
142 fHadron[0][0] = 1.519112e-01;
143 fHadron[0][1] = -8.267603e-02;
144 fHadron[0][2] = 1.914574e-02;
145 fHadron[0][3] = -2.677921e-04;
146 fHadron[0][4] = 5.447939e-06;
147
148
149 fHadron[1][0] = 0.;
150 fHadron[1][1] = -7.549870e-02;
151 fHadron[1][2] = 3.930087e-01;
152 fHadron[1][3] = -2.368500e-03;
153 fHadron[1][4] = 0.;
154
1e7c9b89 155 fHadron[2][0] = 0.;
156 fHadron[2][1] = -2.463152e-02;
157 fHadron[2][2] = 1.349257e-01;
158 fHadron[2][3] = -1.089440e-03;
159 fHadron[2][4] = 0.;
160
1e7c9b89 161 fHadron[3][0] = 0.;
162 fHadron[3][1] = 5.101560e-01;
163 fHadron[3][2] = 1.458679e-01;
164 fHadron[3][3] = 4.903068e-04;
165 fHadron[3][4] = 0.;
166
167 fHadron[4][0] = 0.;
168 fHadron[4][1] = -6.693943e-03;
169 fHadron[4][2] = 2.444753e-01;
170 fHadron[4][3] = -5.553749e-05;
171 fHadron[4][4] = 0.;
172
173 fHadron[5][0] = -4.414030e-01;
174 fHadron[5][1] = 2.292277e-01;
175 fHadron[5][2] = -2.433737e-02;
176 fHadron[5][3] = 1.758422e-03;
177 fHadron[5][4] = -3.001493e-05;
178
179
180 fPiZero[0][0] = 5.072157e-01;
181 fPiZero[0][1] = -5.352747e-01;
182 fPiZero[0][2] = 8.499259e-02;
183 fPiZero[0][3] = -3.687401e-03;
184 fPiZero[0][4] = 5.482280e-05;
185
186
187 fPiZero[1][0] = 4.590137e+02;
188 fPiZero[1][1] = -7.079341e+01;
189 fPiZero[1][2] = 4.990735e+00;
190 fPiZero[1][3] = -1.241302e-01;
191 fPiZero[1][4] = 1.065772e-03;
192
193
194 fPiZero[2][0] = 1.376415e+02;
195 fPiZero[2][1] = -3.031577e+01;
196 fPiZero[2][2] = 2.474338e+00;
197 fPiZero[2][3] = -6.903410e-02;
198 fPiZero[2][4] = 6.244089e-04;
199
200 fPiZero[3][0] = 0.;
201 fPiZero[3][1] = 1.145983e+00;
202 fPiZero[3][2] = -2.476052e-01;
203 fPiZero[3][3] = 1.367373e-02;
204 fPiZero[3][4] = 0.;
205
206 fPiZero[4][0] = -2.097586e+02;
207 fPiZero[4][1] = 6.300800e+01;
208 fPiZero[4][2] = -4.038906e+00;
209 fPiZero[4][3] = 1.088543e-01;
210 fPiZero[4][4] = -9.362485e-04;
211
212 fPiZero[5][0] = -1.671477e+01;
213 fPiZero[5][1] = 2.995415e+00;
214 fPiZero[5][2] = -6.040360e-02;
215 fPiZero[5][3] = -6.137459e-04;
216 fPiZero[5][4] = 1.847328e-05;
88cf6bfb 217
1e7c9b89 218 fHadronEnergyProb[0]= 0.;
219 fHadronEnergyProb[1]= 0.;
220 fHadronEnergyProb[2]= 6.188452e-02;
221 fHadronEnergyProb[3]= 2.030230e+00;
222 fHadronEnergyProb[4]= -6.402242e-02;
223
224
225}
8ba062b1 226
3a8be91c 227//-----------------------------------------------------------------------------
413e6b81 228AliEMCALRecParam::AliEMCALRecParam(const AliEMCALRecParam& rp) :
229 AliDetectorRecoParam(),
230 fClusteringThreshold(rp.fClusteringThreshold),
231 fW0(rp.fW0),
232 fMinECut(rp.fMinECut),
233 fUnfold(rp.fUnfold),
a435f763 234 fLocMaxCut(rp.fLocMaxCut),
829ba234 235 fTimeCut(rp.fTimeCut),
236 fTimeMin(rp.fTimeMin),
237 fTimeMax(rp.fTimeMax),//clustering
ee08edde 238 fClusterizerFlag(rp.fClusterizerFlag),
413e6b81 239 fTrkCutX(rp.fTrkCutX),
240 fTrkCutY(rp.fTrkCutY),
241 fTrkCutZ(rp.fTrkCutZ),
242 fTrkCutR(rp.fTrkCutR),
243 fTrkCutAlphaMin(rp.fTrkCutAlphaMin),
244 fTrkCutAlphaMax(rp.fTrkCutAlphaMax),
1e7c9b89 245 fTrkCutAngle(rp.fTrkCutAngle),
dcd86c5d 246 fTrkCutNITS(rp.fTrkCutNITS),
247 fTrkCutNTPC(rp.fTrkCutNTPC), // track matching
413e6b81 248 fHighLowGainFactor(rp.fHighLowGainFactor),
249 fOrderParameter(rp.fOrderParameter),
250 fTau(rp.fTau),
251 fNoiseThreshold(rp.fNoiseThreshold),
9f467289 252 fNPedSamples(rp.fNPedSamples),
253 fRemoveBadChannels(rp.fRemoveBadChannels),
46f1d25f 254 fFittingAlgorithm(rp.fFittingAlgorithm),
e853f058 255 fUseFALTRO(rp.fUseFALTRO),
256 fFitLEDEvents(rp.fFitLEDEvents) //raw signal
413e6b81 257{
258 //copy constructor
1e7c9b89 259
413e6b81 260 //PID values
ee08edde 261 Int_t i=0, j=0;
413e6b81 262 for (i = 0; i < 6; i++) {
263 for (j = 0; j < 6; j++) {
9f467289 264 fGamma[i][j] = rp.fGamma[i][j];
265 fGamma1to10[i][j] = rp.fGamma1to10[i][j];
266 fHadron[i][j] = rp.fHadron[i][j];
1e7c9b89 267 fHadron1to10[i][j] = rp.fHadron1to10[i][j];
9f467289 268 fPiZero[i][j] = rp.fPiZero[i][j];
413e6b81 269 }
9f467289 270 fGammaEnergyProb[i] = rp.fGammaEnergyProb[i];
1e7c9b89 271 fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
272 fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
273
413e6b81 274 }
1e7c9b89 275
413e6b81 276}
277
278//-----------------------------------------------------------------------------
279AliEMCALRecParam& AliEMCALRecParam::operator = (const AliEMCALRecParam& rp)
280{
281 //assignment operator
1e7c9b89 282
413e6b81 283 if(this != &rp) {
284 fClusteringThreshold = rp.fClusteringThreshold;
9f467289 285 fW0 = rp.fW0;
286 fMinECut = rp.fMinECut;
287 fUnfold = rp.fUnfold;
a435f763 288 fLocMaxCut = rp.fLocMaxCut;
64c98165 289 fTimeCut = rp.fTimeCut;
290 fTimeMax = rp.fTimeMax;
291 fTimeMin = rp.fTimeMin;//clustering
ee08edde 292 fClusterizerFlag = rp.fClusterizerFlag;
9f467289 293 fTrkCutX = rp.fTrkCutX;
294 fTrkCutY = rp.fTrkCutY;
295 fTrkCutZ = rp.fTrkCutZ;
296 fTrkCutR = rp.fTrkCutR;
413e6b81 297 fTrkCutAlphaMin = rp.fTrkCutAlphaMin;
298 fTrkCutAlphaMax = rp.fTrkCutAlphaMax;
9f467289 299 fTrkCutAngle = rp.fTrkCutAngle;
300 fTrkCutNITS = rp.fTrkCutNITS;
301 fTrkCutNTPC = rp.fTrkCutNTPC; //track matching
413e6b81 302 fHighLowGainFactor = rp.fHighLowGainFactor;
9f467289 303 fOrderParameter = rp.fOrderParameter;
304 fTau = rp.fTau;
305 fNoiseThreshold = rp.fNoiseThreshold;
306 fNPedSamples = rp.fNPedSamples;
307 fRemoveBadChannels = rp.fRemoveBadChannels;
46f1d25f 308 fFittingAlgorithm = rp.fFittingAlgorithm;
e853f058 309 fUseFALTRO = rp.fUseFALTRO;
64c98165 310 fFitLEDEvents = rp.fFitLEDEvents;//raw signal
9f467289 311
413e6b81 312 //PID values
ee08edde 313 Int_t i=0, j=0;
413e6b81 314 for (i = 0; i < 6; i++) {
315 for (j = 0; j < 6; j++) {
9f467289 316 fGamma[i][j] = rp.fGamma[i][j];
317 fGamma1to10[i][j] = rp.fGamma1to10[i][j];
318 fHadron[i][j] = rp.fHadron[i][j];
1e7c9b89 319 fHadron1to10[i][j] = rp.fHadron1to10[i][j];
9f467289 320 fPiZero[i][j] = rp.fPiZero[i][j];
413e6b81 321 }
9f467289 322 fGammaEnergyProb[i] = rp.fGammaEnergyProb[i];
1e7c9b89 323 fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
324 fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
413e6b81 325 }
1e7c9b89 326
413e6b81 327 }
328
329 return *this;
1e7c9b89 330
413e6b81 331}
332
333//-----------------------------------------------------------------------------
334AliEMCALRecParam* AliEMCALRecParam::GetDefaultParameters()
335{
336 //default parameters for the reconstruction
88cf6bfb 337 AliEMCALRecParam* params = GetLowFluxParam();
338 params->SetName("Default - p+p");
339 params->SetTitle("Default - p+p");
f5fc991a 340 return params;
1e7c9b89 341
f5fc991a 342}
343
98cf874d 344//-----------------------------------------------------------------------------
345AliEMCALRecParam* AliEMCALRecParam::GetCalibParam()
346{
1e7c9b89 347 //parameters for the reconstruction of calibration runs
348 AliEMCALRecParam* params = GetLowFluxParam();
e658398a 349 //params->SetClusteringThreshold(0.1); // 100 MeV
1e7c9b89 350 //params->SetMinECut(0.01); //10 MeV
351 params->SetName("Calibration - LED");
352 params->SetTitle("Calibration - LED");
353 params->SetEventSpecie(AliRecoParam::kCalib);
354
355 return params;
356
98cf874d 357}
358
359//-----------------------------------------------------------------------------
360AliEMCALRecParam* AliEMCALRecParam::GetCosmicParam()
361{
1e7c9b89 362 //parameters for the reconstruction of cosmic runs
363 AliEMCALRecParam* params = GetLowFluxParam();
e658398a 364 //params->SetClusteringThreshold(0.1); // 100 MeV
1e7c9b89 365 //params->SetMinECut(0.01); //10 MeV
366 params->SetName("Cosmic");
367 params->SetTitle("Cosmic");
368 params->SetEventSpecie(AliRecoParam::kCosmic);
369
370 return params;
371
98cf874d 372}
f5fc991a 373
1e7c9b89 374
f5fc991a 375//-----------------------------------------------------------------------------
376AliEMCALRecParam* AliEMCALRecParam::GetLowFluxParam()
377{
378 //low flux/multiplicity ("p+p") parameters for the reconstruction
379 AliEMCALRecParam* params = new AliEMCALRecParam();
e658398a 380 params->SetClusteringThreshold(0.1); // 100 MeV
f5fc991a 381 params->SetMinECut(0.01); //10 MeV
382 params->SetName("Low Flux - p+p");
383 params->SetTitle("Low Flux - p+p");
384 params->SetEventSpecie(AliRecoParam::kLowMult);
1e7c9b89 385
386
387 //PID parameters for pp implemented
388 // as a first step, all array elements are initialized to 0.0
ee08edde 389 Int_t i=0, j=0;
1e7c9b89 390 for (i = 0; i < 6; i++) {
391 for (j = 0; j < 6; j++) {
392 params->SetGamma(i,j,0.);
393 params->SetGamma1to10(i,j,0.);
394 params->SetHadron(i,j,0.);
395 params->SetHadron1to10(i,j,0.);
396 params->SetPiZero(i,j,0.);
397
398 }
399 params->SetGammaEnergyProb(i,0.); // not yet implemented
400 params->SetHadronEnergyProb(i,0.);
401 params->SetPiZeroEnergyProb(i,0.); // not yet implemented
402 }
403
404
405 params->SetGamma(0,0,-7.656908e-01);
406 params->SetGamma(0,1,2.352536e-01);
407 params->SetGamma(0,2,1.555996e-02);
408 params->SetGamma(0,3,2.243525e-04);
409 params->SetGamma(0,4,-2.560087e-06);
410
411 params->SetGamma(1,0,6.500216e+00);
412 params->SetGamma(1,1,-2.564958e-01);
413 params->SetGamma(1,2,1.967894e-01);
414 params->SetGamma(1,3,-3.982273e-04);
415 params->SetGamma(1,4,2.797737e-06);
416
417 params->SetGamma(2,0,2.416489e+00);
418 params->SetGamma(2,1,-1.601258e-01);
419 params->SetGamma(2,2,3.126839e-02);
420 params->SetGamma(2,3,3.387532e-04);
421 params->SetGamma(2,4,-4.089145e-06);
422
423 params->SetGamma(3,0,0.);
424 params->SetGamma(3,1,-2.696008e+00);
425 params->SetGamma(3,2, 6.920305e-01);
426 params->SetGamma(3,3,-2.281122e-03);
427 params->SetGamma(3,4,0.);
428
429 params->SetGamma(4,0,2.281564e-01);
430 params->SetGamma(4,1,-7.575040e-02);
431 params->SetGamma(4,2,3.813423e-01);
432 params->SetGamma(4,3,-1.243854e-04);
433 params->SetGamma(4,4,1.232045e-06);
434
435 params->SetGamma(5,0,-3.290107e-01);
436 params->SetGamma(5,1,3.707545e-02);
437 params->SetGamma(5,2,2.917397e-03);
438 params->SetGamma(5,3,4.695306e-05);
439 params->SetGamma(5,4,-3.572981e-07);
440
441 params->SetHadron(0,0,9.482243e-01);
442 params->SetHadron(0,1,-2.780896e-01);
443 params->SetHadron(0,2, 2.223507e-02);
444 params->SetHadron(0,3,7.294263e-04);
445 params->SetHadron(0,4,-5.665872e-06);
446
447 params->SetHadron(1,0,0.);
448 params->SetHadron(1,1,0.);
449 params->SetHadron(1,2,2.483298e-01);
450 params->SetHadron(1,3,0.);
451 params->SetHadron(1,4,0.);
452
453 params->SetHadron(2,0,-5.601199e+00);
454 params->SetHadron(2,1,2.097382e+00);
455 params->SetHadron(2,2,-2.307965e-01);
456 params->SetHadron(2,3,9.206871e-03);
457 params->SetHadron(2,4,-8.887548e-05);
458
459 params->SetHadron(3,0,6.543101e+00);
460 params->SetHadron(3,1,-2.305203e+00);
461 params->SetHadron(3,2,2.761673e-01);
462 params->SetHadron(3,3,-5.465855e-03);
463 params->SetHadron(3,4,2.784329e-05);
464
465 params->SetHadron(4,0,-2.443530e+01);
466 params->SetHadron(4,1,8.902578e+00);
467 params->SetHadron(4,2,-5.265901e-01);
468 params->SetHadron(4,3,2.549111e-02);
469 params->SetHadron(4,4,-2.196801e-04);
470
471 params->SetHadron(5,0,2.102007e-01);
472 params->SetHadron(5,1,-3.844418e-02);
473 params->SetHadron(5,2,1.234682e-01);
474 params->SetHadron(5,3,-3.866733e-03);
475 params->SetHadron(5,4,3.362719e-05);
476
477 params->SetPiZero(0,0,5.07215e-01);
478 params->SetPiZero(0,1,-5.35274e-01);
479 params->SetPiZero(0,2,8.49925e-02);
480 params->SetPiZero(0,3,-3.68740e-03);
481 params->SetPiZero(0,4,5.48228e-05);
482
483 params->SetPiZero(1,0,4.590137e+02);
484 params->SetPiZero(1,1,-7.079341e+01);
485 params->SetPiZero(1,2,4.990735e+00);
486 params->SetPiZero(1,3,-1.241302e-01);
487 params->SetPiZero(1,4,1.065772e-03);
488
489 params->SetPiZero(2,0,1.376415e+02);
490 params->SetPiZero(2,1,-3.031577e+01);
491 params->SetPiZero(2,2,2.474338e+00);
492 params->SetPiZero(2,3,-6.903410e-02);
493 params->SetPiZero(2,4,6.244089e-04);
494
495 params->SetPiZero(3,0,0.);
496 params->SetPiZero(3,1,1.145983e+00);
497 params->SetPiZero(3,2,-2.476052e-01);
498 params->SetPiZero(3,3,1.367373e-02);
499 params->SetPiZero(3,4,0.);
500
501 params->SetPiZero(4,0,-2.09758e+02);
502 params->SetPiZero(4,1,6.30080e+01);
503 params->SetPiZero(4,2,-4.03890e+00);
504 params->SetPiZero(4,3,1.08854e-01);
505 params->SetPiZero(4,4,-9.36248e-04);
506
507 params->SetPiZero(5,0,-1.671477e+01);
508 params->SetPiZero(5,1,2.995415e+00);
509 params->SetPiZero(5,2,-6.040360e-02);
510 params->SetPiZero(5,3,-6.137459e-04);
511 params->SetPiZero(5,4,1.847328e-05);
512
513
514// params->SetHadronEnergyProb(0,0.);
515// params->SetHadronEnergyProb(1,0.);
516// params->SetHadronEnergyProb(2,1.);
517// params->SetHadronEnergyProb(3,0.);
518// params->SetHadronEnergyProb(4,0.);
519
520 params->SetHadronEnergyProb(0, 4.767543e-02);
521 params->SetHadronEnergyProb(1,-1.537523e+00);
522 params->SetHadronEnergyProb(2,2.956727e-01);
523 params->SetHadronEnergyProb(3,-3.051022e+01);
524 params->SetHadronEnergyProb(4,-6.036931e-02);
525
526// Int_t ii= 0;
527// Int_t jj= 3;
528// AliDebug(1,Form("PID parameters (%d, %d): fGamma=%.3f, fPi=%.3f, fHadron=%.3f",
529// ii,jj, params->GetGamma(ii,jj), params->GetPiZero(ii,jj), params->GetHadron(ii,jj)));
530// cout << " Low Flux Parameters fGamma [2][2] = " << params->GetGamma(2,2) << endl;
531// cout << " Low Flux Parameters fHadron [2][2] = " << params->GetHadron(2,2) << endl;
532
f5fc991a 533 return params;
534
535}
536
537
538//-----------------------------------------------------------------------------
539AliEMCALRecParam* AliEMCALRecParam::GetHighFluxParam()
540{
541 //high flux/multiplicity ("Pb+Pb") parameters for the reconstruction
542 AliEMCALRecParam* params = new AliEMCALRecParam();
543 //For now, same as default
544 //if later these need to be modified, here's where it is done
545 params->SetName("High Flux - Pb+Pb");
546 params->SetTitle("High Flux - Pb+Pb");
547 params->SetEventSpecie(AliRecoParam::kHighMult);
1e7c9b89 548
413e6b81 549 return params;
1e7c9b89 550
413e6b81 551}
552
553//-----------------------------------------------------------------------------
798a3f92 554void AliEMCALRecParam::Print(Option_t * opt) const
3a8be91c 555{
3a8be91c 556 // Print reconstruction parameters to stdout
798a3f92 557 // if nothing is specified print all, if "reco" just clusterization/track matching
558 // if "pid", just PID parameters, if "raw", just raw utils parameters.
559 if(!strcmp("",opt) || !strcmp("reco",opt)){
ee08edde 560 AliInfo(Form("Clusterizer selected: %d", fClusterizerFlag));
9dce5a21 561 AliInfo(Form("Clusterization parameters :\n fClusteringThreshold=%.3f,\n fW0=%.3f,\n fMinECut=%.3f,\n fUnfold=%d,\n fLocMaxCut=%.3f,\n fTimeCut=%2.1f ns\n fTimeMin=%2.1f ns\n fTimeMax=%2.1f ns\n",
562 fClusteringThreshold,fW0,fMinECut,fUnfold,fLocMaxCut,fTimeCut*1.e9,fTimeMin*1e9,fTimeMax*1e9));
798a3f92 563
29b7e56e 564 AliInfo(Form("Track-matching cuts :\n x %f, y %f, z %f, R %f \n alphaMin %f, alphaMax %f, Angle %f, NITS %f, NTPC %f\n",
565 fTrkCutX, fTrkCutY, fTrkCutZ, fTrkCutR,fTrkCutAlphaMin,fTrkCutAlphaMax, fTrkCutAngle,fTrkCutNITS,fTrkCutNTPC));
8ba062b1 566 }
1e7c9b89 567
798a3f92 568 if(!strcmp("",opt) || !strcmp("pid",opt)){
569 AliInfo(Form("PID parameters, Gamma :\n"));
570 for(Int_t i = 0; i < 6; i++){
571 for(Int_t j = 0; j < 6; j++){
572 printf(" %f, ", fGamma[i][j]);
573 }
574 printf("\n");
8ba062b1 575 }
798a3f92 576
577
578 AliInfo(Form("PID parameters, Hadron :\n"));
579 for(Int_t i = 0; i < 6; i++){
580 for(Int_t j = 0; j < 6; j++){
581 printf(" %f, ", fHadron[i][j]);
582 }
583 printf("\n");
584 }
585
8ba062b1 586 printf("\n");
798a3f92 587
588 AliInfo(Form("PID parameters, Pi0zero :\n"));
589 for(Int_t i = 0; i < 6; i++){
590 for(Int_t j = 0; j < 6; j++){
591 printf(" %f, ", fPiZero[i][j]);
592 }
593 printf("\n");
8ba062b1 594 }
798a3f92 595
8ba062b1 596 printf("\n");
798a3f92 597
598 }
599
600 if(!strcmp("",opt) || !strcmp("raw",opt)){
601 AliInfo(Form("Raw signal parameters: \n gain factor=%f, order=%d, tau=%f, noise threshold=%d, nped samples=%d \n",
602 fHighLowGainFactor,fOrderParameter,fTau,fNoiseThreshold,fNPedSamples));
64c98165 603 AliInfo(Form("Raw signal: remove bad channels? %d, \n \t with fitting algorithm %d, \n \t Use FALTRO %d, Fit LED events %d \n",
604 fRemoveBadChannels, fFittingAlgorithm, fUseFALTRO, fFitLEDEvents));
8ba062b1 605 }
3a8be91c 606}
8ba062b1 607
413e6b81 608//-----------------------------------------------------------------------------
feedcab9 609const TObjArray* AliEMCALRecParam::GetMappings()
610{
413e6b81 611 //Returns array of AliAltroMappings for RCU0..RCUX.
612 //If not found, read it from OCDB.
1e7c9b89 613
413e6b81 614 //Quick check as follows:
1e7c9b89 615 // root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"
413e6b81 616 // root [1] AliCDBManager::Instance()->SetRun(1);
617 // root [2] TObjArray* maps = AliEMCALRecParam::GetMappings();
618 // root [3] maps->Print();
1e7c9b89 619
feedcab9 620 if(fgkMaps) return fgkMaps;
1e7c9b89 621
feedcab9 622 AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
623 if(entry)
624 fgkMaps = (TObjArray*)entry->GetObject();
1e7c9b89 625
feedcab9 626 return fgkMaps;
1e7c9b89 627
feedcab9 628}
629