Adding include path to allow compilation of CleanGeom task
[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)
a0945e6f 36
ee08edde 37TObjArray* AliEMCALRecParam::fgkMaps =0; //ALTRO mappings
1e7c9b89 38
413e6b81 39AliEMCALRecParam::AliEMCALRecParam() :
a0945e6f 40AliDetectorRecoParam(),
41fClusteringThreshold(0.1),
42fW0(4.5),
43fMinECut(0.05),
44fUnfold(kFALSE),
45fLocMaxCut(0.03),
46fTimeCut(1.),// high value, accept all
47fTimeMin(-1.),// small value, accept all
48fTimeMax(1.),// high value, accept all//clustering
49fClusterizerFlag(AliEMCALRecParam::kClusterizerv1),
50fNRowDiff(1),
51fNColDiff(1),
52fMthCutEta(0.025),
53fMthCutPhi(0.05),
54fStep(20),
55fTrkCutPt(0.0),
56fTrkCutNITS(1.0),
57fTrkCutNTPC(20.0), //track matching
58fHighLowGainFactor(16.0),
59fOrderParameter(2),
60fTau(2.35),
61fNoiseThreshold(3),
62fNPedSamples(5),
63fRemoveBadChannels(kFALSE),
64fFittingAlgorithm(0),
65fUseFALTRO(kTRUE),
b410dc6a 66fFitLEDEvents(kFALSE),//raw signal
67fRejectBelowThreshold(0)
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;
a0945e6f 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
65bec413 224 //unfolding
225 fSSPars[0] = 0.9262;
226 fSSPars[1] = 3.365;
227 fSSPars[2] = 1.548;
228 fSSPars[3] = 0.1625;
229 fSSPars[4] = -0.4195;
230 fSSPars[5] = 0.;
231 fSSPars[6] = 0.;
232 fSSPars[7] = 2.332;
233 fPar5[0] = 12.31;
234 fPar5[1] = -0.007381;
235 fPar5[2] = -0.06936;
236 fPar6[0] = 0.05452;
237 fPar6[1] = 0.0001228;
238 fPar6[2] = 0.001361;
a0945e6f 239
1e7c9b89 240}
8ba062b1 241
3a8be91c 242//-----------------------------------------------------------------------------
413e6b81 243AliEMCALRecParam::AliEMCALRecParam(const AliEMCALRecParam& rp) :
a0945e6f 244AliDetectorRecoParam(),
245fClusteringThreshold(rp.fClusteringThreshold),
246fW0(rp.fW0),
247fMinECut(rp.fMinECut),
248fUnfold(rp.fUnfold),
249fLocMaxCut(rp.fLocMaxCut),
250fTimeCut(rp.fTimeCut),
251fTimeMin(rp.fTimeMin),
252fTimeMax(rp.fTimeMax),//clustering
253fClusterizerFlag(rp.fClusterizerFlag),
254fNRowDiff(rp.fNRowDiff),
255fNColDiff(rp.fNColDiff),
256fMthCutEta(rp.fMthCutEta),
257fMthCutPhi(rp.fMthCutPhi),
258fStep(rp.fStep),
259fTrkCutPt(rp.fTrkCutPt),
260fTrkCutNITS(rp.fTrkCutNITS),
261fTrkCutNTPC(rp.fTrkCutNTPC), // track matching
262fHighLowGainFactor(rp.fHighLowGainFactor),
263fOrderParameter(rp.fOrderParameter),
264fTau(rp.fTau),
265fNoiseThreshold(rp.fNoiseThreshold),
266fNPedSamples(rp.fNPedSamples),
267fRemoveBadChannels(rp.fRemoveBadChannels),
268fFittingAlgorithm(rp.fFittingAlgorithm),
269fUseFALTRO(rp.fUseFALTRO),
b410dc6a 270fFitLEDEvents(rp.fFitLEDEvents), //raw signal
271fRejectBelowThreshold(rp.fRejectBelowThreshold)
413e6b81 272{
273 //copy constructor
1e7c9b89 274
413e6b81 275 //PID values
ee08edde 276 Int_t i=0, j=0;
413e6b81 277 for (i = 0; i < 6; i++) {
278 for (j = 0; j < 6; j++) {
9f467289 279 fGamma[i][j] = rp.fGamma[i][j];
280 fGamma1to10[i][j] = rp.fGamma1to10[i][j];
281 fHadron[i][j] = rp.fHadron[i][j];
1e7c9b89 282 fHadron1to10[i][j] = rp.fHadron1to10[i][j];
9f467289 283 fPiZero[i][j] = rp.fPiZero[i][j];
413e6b81 284 }
9f467289 285 fGammaEnergyProb[i] = rp.fGammaEnergyProb[i];
1e7c9b89 286 fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
287 fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
288
413e6b81 289 }
1e7c9b89 290
65bec413 291 //unfolding
292 for (i = 0; i < 8; i++) {
293 fSSPars[i] = rp.fSSPars[i];
294 }
295 for (i = 0; i < 3; i++) {
296 fPar5[i] = rp.fPar5[i];
297 fPar6[i] = rp.fPar6[i];
298 }
a0945e6f 299
413e6b81 300}
301
302//-----------------------------------------------------------------------------
303AliEMCALRecParam& AliEMCALRecParam::operator = (const AliEMCALRecParam& rp)
304{
305 //assignment operator
1e7c9b89 306
413e6b81 307 if(this != &rp) {
308 fClusteringThreshold = rp.fClusteringThreshold;
9f467289 309 fW0 = rp.fW0;
310 fMinECut = rp.fMinECut;
311 fUnfold = rp.fUnfold;
a435f763 312 fLocMaxCut = rp.fLocMaxCut;
64c98165 313 fTimeCut = rp.fTimeCut;
314 fTimeMax = rp.fTimeMax;
315 fTimeMin = rp.fTimeMin;//clustering
5970dfe2 316 fClusterizerFlag = rp.fClusterizerFlag;
3c56da8f 317 fNRowDiff = rp.fNRowDiff;
318 fNColDiff = rp.fNColDiff;
5970dfe2 319 fMthCutEta = rp.fMthCutEta;
320 fMthCutPhi = rp.fMthCutPhi;
321 fStep = rp.fStep;
322 fTrkCutPt = rp.fTrkCutPt;
323 fTrkCutNITS = rp.fTrkCutNITS;
324 fTrkCutNTPC = rp.fTrkCutNTPC; //track matching
413e6b81 325 fHighLowGainFactor = rp.fHighLowGainFactor;
9f467289 326 fOrderParameter = rp.fOrderParameter;
327 fTau = rp.fTau;
328 fNoiseThreshold = rp.fNoiseThreshold;
329 fNPedSamples = rp.fNPedSamples;
330 fRemoveBadChannels = rp.fRemoveBadChannels;
46f1d25f 331 fFittingAlgorithm = rp.fFittingAlgorithm;
e853f058 332 fUseFALTRO = rp.fUseFALTRO;
64c98165 333 fFitLEDEvents = rp.fFitLEDEvents;//raw signal
b410dc6a 334 fRejectBelowThreshold =rp.fRejectBelowThreshold;//unfolding
9f467289 335
413e6b81 336 //PID values
ee08edde 337 Int_t i=0, j=0;
413e6b81 338 for (i = 0; i < 6; i++) {
339 for (j = 0; j < 6; j++) {
a0945e6f 340 fGamma[i][j] = rp.fGamma[i][j];
341 fGamma1to10[i][j] = rp.fGamma1to10[i][j];
342 fHadron[i][j] = rp.fHadron[i][j];
343 fHadron1to10[i][j] = rp.fHadron1to10[i][j];
344 fPiZero[i][j] = rp.fPiZero[i][j];
413e6b81 345 }
9f467289 346 fGammaEnergyProb[i] = rp.fGammaEnergyProb[i];
1e7c9b89 347 fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
348 fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
413e6b81 349 }
65bec413 350 //unfolding
351 for (i = 0; i < 8; i++) {
352 fSSPars[i] = rp.fSSPars[i];
353 }
354 for (i = 0; i < 3; i++) {
355 fPar5[i] = rp.fPar5[i];
356 fPar6[i] = rp.fPar6[i];
357 }
a0945e6f 358
413e6b81 359 }
360
361 return *this;
1e7c9b89 362
413e6b81 363}
364
365//-----------------------------------------------------------------------------
366AliEMCALRecParam* AliEMCALRecParam::GetDefaultParameters()
367{
368 //default parameters for the reconstruction
88cf6bfb 369 AliEMCALRecParam* params = GetLowFluxParam();
370 params->SetName("Default - p+p");
371 params->SetTitle("Default - p+p");
f5fc991a 372 return params;
1e7c9b89 373
f5fc991a 374}
375
98cf874d 376//-----------------------------------------------------------------------------
377AliEMCALRecParam* AliEMCALRecParam::GetCalibParam()
378{
1e7c9b89 379 //parameters for the reconstruction of calibration runs
380 AliEMCALRecParam* params = GetLowFluxParam();
e658398a 381 //params->SetClusteringThreshold(0.1); // 100 MeV
1e7c9b89 382 //params->SetMinECut(0.01); //10 MeV
383 params->SetName("Calibration - LED");
384 params->SetTitle("Calibration - LED");
385 params->SetEventSpecie(AliRecoParam::kCalib);
386
387 return params;
388
98cf874d 389}
390
391//-----------------------------------------------------------------------------
392AliEMCALRecParam* AliEMCALRecParam::GetCosmicParam()
393{
1e7c9b89 394 //parameters for the reconstruction of cosmic runs
395 AliEMCALRecParam* params = GetLowFluxParam();
e658398a 396 //params->SetClusteringThreshold(0.1); // 100 MeV
1e7c9b89 397 //params->SetMinECut(0.01); //10 MeV
398 params->SetName("Cosmic");
399 params->SetTitle("Cosmic");
400 params->SetEventSpecie(AliRecoParam::kCosmic);
401
402 return params;
403
98cf874d 404}
f5fc991a 405
1e7c9b89 406
f5fc991a 407//-----------------------------------------------------------------------------
408AliEMCALRecParam* AliEMCALRecParam::GetLowFluxParam()
409{
410 //low flux/multiplicity ("p+p") parameters for the reconstruction
411 AliEMCALRecParam* params = new AliEMCALRecParam();
e658398a 412 params->SetClusteringThreshold(0.1); // 100 MeV
f5fc991a 413 params->SetMinECut(0.01); //10 MeV
414 params->SetName("Low Flux - p+p");
415 params->SetTitle("Low Flux - p+p");
416 params->SetEventSpecie(AliRecoParam::kLowMult);
8fc351e3 417 params->SetExtrapolateStep(1);
1e7c9b89 418
419
420 //PID parameters for pp implemented
421 // as a first step, all array elements are initialized to 0.0
ee08edde 422 Int_t i=0, j=0;
1e7c9b89 423 for (i = 0; i < 6; i++) {
424 for (j = 0; j < 6; j++) {
425 params->SetGamma(i,j,0.);
426 params->SetGamma1to10(i,j,0.);
427 params->SetHadron(i,j,0.);
428 params->SetHadron1to10(i,j,0.);
429 params->SetPiZero(i,j,0.);
430
431 }
432 params->SetGammaEnergyProb(i,0.); // not yet implemented
433 params->SetHadronEnergyProb(i,0.);
434 params->SetPiZeroEnergyProb(i,0.); // not yet implemented
435 }
436
437
438 params->SetGamma(0,0,-7.656908e-01);
439 params->SetGamma(0,1,2.352536e-01);
440 params->SetGamma(0,2,1.555996e-02);
441 params->SetGamma(0,3,2.243525e-04);
442 params->SetGamma(0,4,-2.560087e-06);
a0945e6f 443
1e7c9b89 444 params->SetGamma(1,0,6.500216e+00);
445 params->SetGamma(1,1,-2.564958e-01);
446 params->SetGamma(1,2,1.967894e-01);
447 params->SetGamma(1,3,-3.982273e-04);
448 params->SetGamma(1,4,2.797737e-06);
449
450 params->SetGamma(2,0,2.416489e+00);
451 params->SetGamma(2,1,-1.601258e-01);
452 params->SetGamma(2,2,3.126839e-02);
453 params->SetGamma(2,3,3.387532e-04);
454 params->SetGamma(2,4,-4.089145e-06);
a0945e6f 455
1e7c9b89 456 params->SetGamma(3,0,0.);
457 params->SetGamma(3,1,-2.696008e+00);
458 params->SetGamma(3,2, 6.920305e-01);
459 params->SetGamma(3,3,-2.281122e-03);
460 params->SetGamma(3,4,0.);
a0945e6f 461
1e7c9b89 462 params->SetGamma(4,0,2.281564e-01);
463 params->SetGamma(4,1,-7.575040e-02);
464 params->SetGamma(4,2,3.813423e-01);
465 params->SetGamma(4,3,-1.243854e-04);
466 params->SetGamma(4,4,1.232045e-06);
a0945e6f 467
1e7c9b89 468 params->SetGamma(5,0,-3.290107e-01);
469 params->SetGamma(5,1,3.707545e-02);
470 params->SetGamma(5,2,2.917397e-03);
471 params->SetGamma(5,3,4.695306e-05);
472 params->SetGamma(5,4,-3.572981e-07);
a0945e6f 473
1e7c9b89 474 params->SetHadron(0,0,9.482243e-01);
475 params->SetHadron(0,1,-2.780896e-01);
476 params->SetHadron(0,2, 2.223507e-02);
477 params->SetHadron(0,3,7.294263e-04);
478 params->SetHadron(0,4,-5.665872e-06);
a0945e6f 479
1e7c9b89 480 params->SetHadron(1,0,0.);
481 params->SetHadron(1,1,0.);
482 params->SetHadron(1,2,2.483298e-01);
483 params->SetHadron(1,3,0.);
484 params->SetHadron(1,4,0.);
a0945e6f 485
1e7c9b89 486 params->SetHadron(2,0,-5.601199e+00);
487 params->SetHadron(2,1,2.097382e+00);
488 params->SetHadron(2,2,-2.307965e-01);
489 params->SetHadron(2,3,9.206871e-03);
490 params->SetHadron(2,4,-8.887548e-05);
a0945e6f 491
1e7c9b89 492 params->SetHadron(3,0,6.543101e+00);
493 params->SetHadron(3,1,-2.305203e+00);
494 params->SetHadron(3,2,2.761673e-01);
495 params->SetHadron(3,3,-5.465855e-03);
496 params->SetHadron(3,4,2.784329e-05);
a0945e6f 497
1e7c9b89 498 params->SetHadron(4,0,-2.443530e+01);
499 params->SetHadron(4,1,8.902578e+00);
500 params->SetHadron(4,2,-5.265901e-01);
501 params->SetHadron(4,3,2.549111e-02);
502 params->SetHadron(4,4,-2.196801e-04);
a0945e6f 503
1e7c9b89 504 params->SetHadron(5,0,2.102007e-01);
505 params->SetHadron(5,1,-3.844418e-02);
506 params->SetHadron(5,2,1.234682e-01);
507 params->SetHadron(5,3,-3.866733e-03);
508 params->SetHadron(5,4,3.362719e-05);
a0945e6f 509
1e7c9b89 510 params->SetPiZero(0,0,5.07215e-01);
511 params->SetPiZero(0,1,-5.35274e-01);
512 params->SetPiZero(0,2,8.49925e-02);
513 params->SetPiZero(0,3,-3.68740e-03);
514 params->SetPiZero(0,4,5.48228e-05);
a0945e6f 515
1e7c9b89 516 params->SetPiZero(1,0,4.590137e+02);
517 params->SetPiZero(1,1,-7.079341e+01);
518 params->SetPiZero(1,2,4.990735e+00);
519 params->SetPiZero(1,3,-1.241302e-01);
520 params->SetPiZero(1,4,1.065772e-03);
a0945e6f 521
1e7c9b89 522 params->SetPiZero(2,0,1.376415e+02);
523 params->SetPiZero(2,1,-3.031577e+01);
524 params->SetPiZero(2,2,2.474338e+00);
525 params->SetPiZero(2,3,-6.903410e-02);
526 params->SetPiZero(2,4,6.244089e-04);
a0945e6f 527
1e7c9b89 528 params->SetPiZero(3,0,0.);
529 params->SetPiZero(3,1,1.145983e+00);
530 params->SetPiZero(3,2,-2.476052e-01);
531 params->SetPiZero(3,3,1.367373e-02);
532 params->SetPiZero(3,4,0.);
a0945e6f 533
1e7c9b89 534 params->SetPiZero(4,0,-2.09758e+02);
535 params->SetPiZero(4,1,6.30080e+01);
536 params->SetPiZero(4,2,-4.03890e+00);
537 params->SetPiZero(4,3,1.08854e-01);
538 params->SetPiZero(4,4,-9.36248e-04);
a0945e6f 539
1e7c9b89 540 params->SetPiZero(5,0,-1.671477e+01);
541 params->SetPiZero(5,1,2.995415e+00);
542 params->SetPiZero(5,2,-6.040360e-02);
543 params->SetPiZero(5,3,-6.137459e-04);
544 params->SetPiZero(5,4,1.847328e-05);
a0945e6f 545
546
547 // params->SetHadronEnergyProb(0,0.);
548 // params->SetHadronEnergyProb(1,0.);
549 // params->SetHadronEnergyProb(2,1.);
550 // params->SetHadronEnergyProb(3,0.);
551 // params->SetHadronEnergyProb(4,0.);
552
1e7c9b89 553 params->SetHadronEnergyProb(0, 4.767543e-02);
554 params->SetHadronEnergyProb(1,-1.537523e+00);
555 params->SetHadronEnergyProb(2,2.956727e-01);
556 params->SetHadronEnergyProb(3,-3.051022e+01);
557 params->SetHadronEnergyProb(4,-6.036931e-02);
a0945e6f 558
559 // Int_t ii= 0;
560 // Int_t jj= 3;
561 // AliDebug(1,Form("PID parameters (%d, %d): fGamma=%.3f, fPi=%.3f, fHadron=%.3f",
562 // ii,jj, params->GetGamma(ii,jj), params->GetPiZero(ii,jj), params->GetHadron(ii,jj)));
563 // cout << " Low Flux Parameters fGamma [2][2] = " << params->GetGamma(2,2) << endl;
564 // cout << " Low Flux Parameters fHadron [2][2] = " << params->GetHadron(2,2) << endl;
565
f5fc991a 566 return params;
a0945e6f 567
f5fc991a 568}
569
570
571//-----------------------------------------------------------------------------
572AliEMCALRecParam* AliEMCALRecParam::GetHighFluxParam()
573{
574 //high flux/multiplicity ("Pb+Pb") parameters for the reconstruction
575 AliEMCALRecParam* params = new AliEMCALRecParam();
576 //For now, same as default
577 //if later these need to be modified, here's where it is done
578 params->SetName("High Flux - Pb+Pb");
579 params->SetTitle("High Flux - Pb+Pb");
580 params->SetEventSpecie(AliRecoParam::kHighMult);
5970dfe2 581 params->SetTrkCutPt(0.15);//This value can be higher if necessary
1e7c9b89 582
413e6b81 583 return params;
1e7c9b89 584
413e6b81 585}
586
587//-----------------------------------------------------------------------------
798a3f92 588void AliEMCALRecParam::Print(Option_t * opt) const
3a8be91c 589{
3a8be91c 590 // Print reconstruction parameters to stdout
798a3f92 591 // if nothing is specified print all, if "reco" just clusterization/track matching
592 // if "pid", just PID parameters, if "raw", just raw utils parameters.
593 if(!strcmp("",opt) || !strcmp("reco",opt)){
ee08edde 594 AliInfo(Form("Clusterizer selected: %d", fClusterizerFlag));
9dce5a21 595 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",
a0945e6f 596 fClusteringThreshold,fW0,fMinECut,fUnfold,fLocMaxCut,fTimeCut*1.e9,fTimeMin*1e9,fTimeMax*1e9));
798a3f92 597
5970dfe2 598 AliInfo(Form("Track-matching cuts :\n dEta<%f, dPhi<%f, step=%f[cm], pT>%f, NITS>%f, NTPC>%f\n",
a0945e6f 599 fMthCutEta, fMthCutPhi, fStep, fTrkCutPt, fTrkCutNITS,fTrkCutNTPC));
600
65bec413 601 AliInfo(Form("Unfolding parameters, Shower shape function :\n"));
602 for(Int_t i = 0; i < 8; i++){
a0945e6f 603 printf(" %f, ", fSSPars[i]);
65bec413 604 }
605 printf("\n Parameter 5 : ");
606 for(Int_t i = 0; i < 3; i++){
607 printf(" %f, ", fPar5[i]);
608 }
609 printf("\n Parameter 6 : ");
610 for(Int_t i = 0; i < 3; i++){
611 printf(" %f, ", fPar6[i]);
612 }
613 printf("\n");
b410dc6a 614 AliInfo(Form("Unfolding fRejectBelowThreshold, 0-split,1-reject: %d\n",fRejectBelowThreshold));
8ba062b1 615 }
1e7c9b89 616
798a3f92 617 if(!strcmp("",opt) || !strcmp("pid",opt)){
618 AliInfo(Form("PID parameters, Gamma :\n"));
619 for(Int_t i = 0; i < 6; i++){
620 for(Int_t j = 0; j < 6; j++){
a0945e6f 621 printf(" %f, ", fGamma[i][j]);
798a3f92 622 }
623 printf("\n");
8ba062b1 624 }
798a3f92 625
626
627 AliInfo(Form("PID parameters, Hadron :\n"));
628 for(Int_t i = 0; i < 6; i++){
629 for(Int_t j = 0; j < 6; j++){
a0945e6f 630 printf(" %f, ", fHadron[i][j]);
798a3f92 631 }
632 printf("\n");
633 }
634
8ba062b1 635 printf("\n");
798a3f92 636
637 AliInfo(Form("PID parameters, Pi0zero :\n"));
638 for(Int_t i = 0; i < 6; i++){
639 for(Int_t j = 0; j < 6; j++){
a0945e6f 640 printf(" %f, ", fPiZero[i][j]);
798a3f92 641 }
642 printf("\n");
8ba062b1 643 }
798a3f92 644
8ba062b1 645 printf("\n");
798a3f92 646
647 }
a0945e6f 648
798a3f92 649 if(!strcmp("",opt) || !strcmp("raw",opt)){
650 AliInfo(Form("Raw signal parameters: \n gain factor=%f, order=%d, tau=%f, noise threshold=%d, nped samples=%d \n",
a0945e6f 651 fHighLowGainFactor,fOrderParameter,fTau,fNoiseThreshold,fNPedSamples));
64c98165 652 AliInfo(Form("Raw signal: remove bad channels? %d, \n \t with fitting algorithm %d, \n \t Use FALTRO %d, Fit LED events %d \n",
a0945e6f 653 fRemoveBadChannels, fFittingAlgorithm, fUseFALTRO, fFitLEDEvents));
8ba062b1 654 }
3a8be91c 655}
8ba062b1 656
413e6b81 657//-----------------------------------------------------------------------------
feedcab9 658const TObjArray* AliEMCALRecParam::GetMappings()
659{
413e6b81 660 //Returns array of AliAltroMappings for RCU0..RCUX.
661 //If not found, read it from OCDB.
1e7c9b89 662
413e6b81 663 //Quick check as follows:
1e7c9b89 664 // root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"
413e6b81 665 // root [1] AliCDBManager::Instance()->SetRun(1);
666 // root [2] TObjArray* maps = AliEMCALRecParam::GetMappings();
667 // root [3] maps->Print();
1e7c9b89 668
feedcab9 669 if(fgkMaps) return fgkMaps;
1e7c9b89 670
feedcab9 671 AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
672 if(entry)
673 fgkMaps = (TObjArray*)entry->GetObject();
1e7c9b89 674
feedcab9 675 return fgkMaps;
1e7c9b89 676
feedcab9 677}
678