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