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