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