Keep only digits from active TRU to compute trigger response (only relevant for MC)
[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
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;
239
1e7c9b89 240}
8ba062b1 241
3a8be91c 242//-----------------------------------------------------------------------------
413e6b81 243AliEMCALRecParam::AliEMCALRecParam(const AliEMCALRecParam& rp) :
244 AliDetectorRecoParam(),
245 fClusteringThreshold(rp.fClusteringThreshold),
246 fW0(rp.fW0),
247 fMinECut(rp.fMinECut),
248 fUnfold(rp.fUnfold),
a435f763 249 fLocMaxCut(rp.fLocMaxCut),
829ba234 250 fTimeCut(rp.fTimeCut),
251 fTimeMin(rp.fTimeMin),
252 fTimeMax(rp.fTimeMax),//clustering
ee08edde 253 fClusterizerFlag(rp.fClusterizerFlag),
413e6b81 254 fTrkCutX(rp.fTrkCutX),
255 fTrkCutY(rp.fTrkCutY),
256 fTrkCutZ(rp.fTrkCutZ),
257 fTrkCutR(rp.fTrkCutR),
258 fTrkCutAlphaMin(rp.fTrkCutAlphaMin),
259 fTrkCutAlphaMax(rp.fTrkCutAlphaMax),
1e7c9b89 260 fTrkCutAngle(rp.fTrkCutAngle),
dcd86c5d 261 fTrkCutNITS(rp.fTrkCutNITS),
262 fTrkCutNTPC(rp.fTrkCutNTPC), // track matching
413e6b81 263 fHighLowGainFactor(rp.fHighLowGainFactor),
264 fOrderParameter(rp.fOrderParameter),
265 fTau(rp.fTau),
266 fNoiseThreshold(rp.fNoiseThreshold),
9f467289 267 fNPedSamples(rp.fNPedSamples),
268 fRemoveBadChannels(rp.fRemoveBadChannels),
46f1d25f 269 fFittingAlgorithm(rp.fFittingAlgorithm),
e853f058 270 fUseFALTRO(rp.fUseFALTRO),
271 fFitLEDEvents(rp.fFitLEDEvents) //raw signal
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 }
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
ee08edde 316 fClusterizerFlag = rp.fClusterizerFlag;
9f467289 317 fTrkCutX = rp.fTrkCutX;
318 fTrkCutY = rp.fTrkCutY;
319 fTrkCutZ = rp.fTrkCutZ;
320 fTrkCutR = rp.fTrkCutR;
413e6b81 321 fTrkCutAlphaMin = rp.fTrkCutAlphaMin;
322 fTrkCutAlphaMax = rp.fTrkCutAlphaMax;
9f467289 323 fTrkCutAngle = rp.fTrkCutAngle;
324 fTrkCutNITS = rp.fTrkCutNITS;
325 fTrkCutNTPC = rp.fTrkCutNTPC; //track matching
413e6b81 326 fHighLowGainFactor = rp.fHighLowGainFactor;
9f467289 327 fOrderParameter = rp.fOrderParameter;
328 fTau = rp.fTau;
329 fNoiseThreshold = rp.fNoiseThreshold;
330 fNPedSamples = rp.fNPedSamples;
331 fRemoveBadChannels = rp.fRemoveBadChannels;
46f1d25f 332 fFittingAlgorithm = rp.fFittingAlgorithm;
e853f058 333 fUseFALTRO = rp.fUseFALTRO;
64c98165 334 fFitLEDEvents = rp.fFitLEDEvents;//raw signal
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++) {
9f467289 340 fGamma[i][j] = rp.fGamma[i][j];
341 fGamma1to10[i][j] = rp.fGamma1to10[i][j];
342 fHadron[i][j] = rp.fHadron[i][j];
1e7c9b89 343 fHadron1to10[i][j] = rp.fHadron1to10[i][j];
9f467289 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 }
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);
1e7c9b89 417
418
419 //PID parameters for pp implemented
420 // as a first step, all array elements are initialized to 0.0
ee08edde 421 Int_t i=0, j=0;
1e7c9b89 422 for (i = 0; i < 6; i++) {
423 for (j = 0; j < 6; j++) {
424 params->SetGamma(i,j,0.);
425 params->SetGamma1to10(i,j,0.);
426 params->SetHadron(i,j,0.);
427 params->SetHadron1to10(i,j,0.);
428 params->SetPiZero(i,j,0.);
429
430 }
431 params->SetGammaEnergyProb(i,0.); // not yet implemented
432 params->SetHadronEnergyProb(i,0.);
433 params->SetPiZeroEnergyProb(i,0.); // not yet implemented
434 }
435
436
437 params->SetGamma(0,0,-7.656908e-01);
438 params->SetGamma(0,1,2.352536e-01);
439 params->SetGamma(0,2,1.555996e-02);
440 params->SetGamma(0,3,2.243525e-04);
441 params->SetGamma(0,4,-2.560087e-06);
442
443 params->SetGamma(1,0,6.500216e+00);
444 params->SetGamma(1,1,-2.564958e-01);
445 params->SetGamma(1,2,1.967894e-01);
446 params->SetGamma(1,3,-3.982273e-04);
447 params->SetGamma(1,4,2.797737e-06);
448
449 params->SetGamma(2,0,2.416489e+00);
450 params->SetGamma(2,1,-1.601258e-01);
451 params->SetGamma(2,2,3.126839e-02);
452 params->SetGamma(2,3,3.387532e-04);
453 params->SetGamma(2,4,-4.089145e-06);
454
455 params->SetGamma(3,0,0.);
456 params->SetGamma(3,1,-2.696008e+00);
457 params->SetGamma(3,2, 6.920305e-01);
458 params->SetGamma(3,3,-2.281122e-03);
459 params->SetGamma(3,4,0.);
460
461 params->SetGamma(4,0,2.281564e-01);
462 params->SetGamma(4,1,-7.575040e-02);
463 params->SetGamma(4,2,3.813423e-01);
464 params->SetGamma(4,3,-1.243854e-04);
465 params->SetGamma(4,4,1.232045e-06);
466
467 params->SetGamma(5,0,-3.290107e-01);
468 params->SetGamma(5,1,3.707545e-02);
469 params->SetGamma(5,2,2.917397e-03);
470 params->SetGamma(5,3,4.695306e-05);
471 params->SetGamma(5,4,-3.572981e-07);
472
473 params->SetHadron(0,0,9.482243e-01);
474 params->SetHadron(0,1,-2.780896e-01);
475 params->SetHadron(0,2, 2.223507e-02);
476 params->SetHadron(0,3,7.294263e-04);
477 params->SetHadron(0,4,-5.665872e-06);
478
479 params->SetHadron(1,0,0.);
480 params->SetHadron(1,1,0.);
481 params->SetHadron(1,2,2.483298e-01);
482 params->SetHadron(1,3,0.);
483 params->SetHadron(1,4,0.);
484
485 params->SetHadron(2,0,-5.601199e+00);
486 params->SetHadron(2,1,2.097382e+00);
487 params->SetHadron(2,2,-2.307965e-01);
488 params->SetHadron(2,3,9.206871e-03);
489 params->SetHadron(2,4,-8.887548e-05);
490
491 params->SetHadron(3,0,6.543101e+00);
492 params->SetHadron(3,1,-2.305203e+00);
493 params->SetHadron(3,2,2.761673e-01);
494 params->SetHadron(3,3,-5.465855e-03);
495 params->SetHadron(3,4,2.784329e-05);
496
497 params->SetHadron(4,0,-2.443530e+01);
498 params->SetHadron(4,1,8.902578e+00);
499 params->SetHadron(4,2,-5.265901e-01);
500 params->SetHadron(4,3,2.549111e-02);
501 params->SetHadron(4,4,-2.196801e-04);
502
503 params->SetHadron(5,0,2.102007e-01);
504 params->SetHadron(5,1,-3.844418e-02);
505 params->SetHadron(5,2,1.234682e-01);
506 params->SetHadron(5,3,-3.866733e-03);
507 params->SetHadron(5,4,3.362719e-05);
508
509 params->SetPiZero(0,0,5.07215e-01);
510 params->SetPiZero(0,1,-5.35274e-01);
511 params->SetPiZero(0,2,8.49925e-02);
512 params->SetPiZero(0,3,-3.68740e-03);
513 params->SetPiZero(0,4,5.48228e-05);
514
515 params->SetPiZero(1,0,4.590137e+02);
516 params->SetPiZero(1,1,-7.079341e+01);
517 params->SetPiZero(1,2,4.990735e+00);
518 params->SetPiZero(1,3,-1.241302e-01);
519 params->SetPiZero(1,4,1.065772e-03);
520
521 params->SetPiZero(2,0,1.376415e+02);
522 params->SetPiZero(2,1,-3.031577e+01);
523 params->SetPiZero(2,2,2.474338e+00);
524 params->SetPiZero(2,3,-6.903410e-02);
525 params->SetPiZero(2,4,6.244089e-04);
526
527 params->SetPiZero(3,0,0.);
528 params->SetPiZero(3,1,1.145983e+00);
529 params->SetPiZero(3,2,-2.476052e-01);
530 params->SetPiZero(3,3,1.367373e-02);
531 params->SetPiZero(3,4,0.);
532
533 params->SetPiZero(4,0,-2.09758e+02);
534 params->SetPiZero(4,1,6.30080e+01);
535 params->SetPiZero(4,2,-4.03890e+00);
536 params->SetPiZero(4,3,1.08854e-01);
537 params->SetPiZero(4,4,-9.36248e-04);
538
539 params->SetPiZero(5,0,-1.671477e+01);
540 params->SetPiZero(5,1,2.995415e+00);
541 params->SetPiZero(5,2,-6.040360e-02);
542 params->SetPiZero(5,3,-6.137459e-04);
543 params->SetPiZero(5,4,1.847328e-05);
544
545
546// params->SetHadronEnergyProb(0,0.);
547// params->SetHadronEnergyProb(1,0.);
548// params->SetHadronEnergyProb(2,1.);
549// params->SetHadronEnergyProb(3,0.);
550// params->SetHadronEnergyProb(4,0.);
551
552 params->SetHadronEnergyProb(0, 4.767543e-02);
553 params->SetHadronEnergyProb(1,-1.537523e+00);
554 params->SetHadronEnergyProb(2,2.956727e-01);
555 params->SetHadronEnergyProb(3,-3.051022e+01);
556 params->SetHadronEnergyProb(4,-6.036931e-02);
557
558// Int_t ii= 0;
559// Int_t jj= 3;
560// AliDebug(1,Form("PID parameters (%d, %d): fGamma=%.3f, fPi=%.3f, fHadron=%.3f",
561// ii,jj, params->GetGamma(ii,jj), params->GetPiZero(ii,jj), params->GetHadron(ii,jj)));
562// cout << " Low Flux Parameters fGamma [2][2] = " << params->GetGamma(2,2) << endl;
563// cout << " Low Flux Parameters fHadron [2][2] = " << params->GetHadron(2,2) << endl;
564
f5fc991a 565 return params;
566
567}
568
569
570//-----------------------------------------------------------------------------
571AliEMCALRecParam* AliEMCALRecParam::GetHighFluxParam()
572{
573 //high flux/multiplicity ("Pb+Pb") parameters for the reconstruction
574 AliEMCALRecParam* params = new AliEMCALRecParam();
575 //For now, same as default
576 //if later these need to be modified, here's where it is done
577 params->SetName("High Flux - Pb+Pb");
578 params->SetTitle("High Flux - Pb+Pb");
579 params->SetEventSpecie(AliRecoParam::kHighMult);
1e7c9b89 580
413e6b81 581 return params;
1e7c9b89 582
413e6b81 583}
584
585//-----------------------------------------------------------------------------
798a3f92 586void AliEMCALRecParam::Print(Option_t * opt) const
3a8be91c 587{
3a8be91c 588 // Print reconstruction parameters to stdout
798a3f92 589 // if nothing is specified print all, if "reco" just clusterization/track matching
590 // if "pid", just PID parameters, if "raw", just raw utils parameters.
591 if(!strcmp("",opt) || !strcmp("reco",opt)){
ee08edde 592 AliInfo(Form("Clusterizer selected: %d", fClusterizerFlag));
9dce5a21 593 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",
594 fClusteringThreshold,fW0,fMinECut,fUnfold,fLocMaxCut,fTimeCut*1.e9,fTimeMin*1e9,fTimeMax*1e9));
798a3f92 595
29b7e56e 596 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",
597 fTrkCutX, fTrkCutY, fTrkCutZ, fTrkCutR,fTrkCutAlphaMin,fTrkCutAlphaMax, fTrkCutAngle,fTrkCutNITS,fTrkCutNTPC));
65bec413 598
599 AliInfo(Form("Unfolding parameters, Shower shape function :\n"));
600 for(Int_t i = 0; i < 8; i++){
601 printf(" %f, ", fSSPars[i]);
602 }
603 printf("\n Parameter 5 : ");
604 for(Int_t i = 0; i < 3; i++){
605 printf(" %f, ", fPar5[i]);
606 }
607 printf("\n Parameter 6 : ");
608 for(Int_t i = 0; i < 3; i++){
609 printf(" %f, ", fPar6[i]);
610 }
611 printf("\n");
8ba062b1 612 }
1e7c9b89 613
798a3f92 614 if(!strcmp("",opt) || !strcmp("pid",opt)){
615 AliInfo(Form("PID parameters, Gamma :\n"));
616 for(Int_t i = 0; i < 6; i++){
617 for(Int_t j = 0; j < 6; j++){
618 printf(" %f, ", fGamma[i][j]);
619 }
620 printf("\n");
8ba062b1 621 }
798a3f92 622
623
624 AliInfo(Form("PID parameters, Hadron :\n"));
625 for(Int_t i = 0; i < 6; i++){
626 for(Int_t j = 0; j < 6; j++){
627 printf(" %f, ", fHadron[i][j]);
628 }
629 printf("\n");
630 }
631
8ba062b1 632 printf("\n");
798a3f92 633
634 AliInfo(Form("PID parameters, Pi0zero :\n"));
635 for(Int_t i = 0; i < 6; i++){
636 for(Int_t j = 0; j < 6; j++){
637 printf(" %f, ", fPiZero[i][j]);
638 }
639 printf("\n");
8ba062b1 640 }
798a3f92 641
8ba062b1 642 printf("\n");
798a3f92 643
644 }
645
646 if(!strcmp("",opt) || !strcmp("raw",opt)){
647 AliInfo(Form("Raw signal parameters: \n gain factor=%f, order=%d, tau=%f, noise threshold=%d, nped samples=%d \n",
648 fHighLowGainFactor,fOrderParameter,fTau,fNoiseThreshold,fNPedSamples));
64c98165 649 AliInfo(Form("Raw signal: remove bad channels? %d, \n \t with fitting algorithm %d, \n \t Use FALTRO %d, Fit LED events %d \n",
650 fRemoveBadChannels, fFittingAlgorithm, fUseFALTRO, fFitLEDEvents));
8ba062b1 651 }
3a8be91c 652}
8ba062b1 653
413e6b81 654//-----------------------------------------------------------------------------
feedcab9 655const TObjArray* AliEMCALRecParam::GetMappings()
656{
413e6b81 657 //Returns array of AliAltroMappings for RCU0..RCUX.
658 //If not found, read it from OCDB.
1e7c9b89 659
413e6b81 660 //Quick check as follows:
1e7c9b89 661 // root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"
413e6b81 662 // root [1] AliCDBManager::Instance()->SetRun(1);
663 // root [2] TObjArray* maps = AliEMCALRecParam::GetMappings();
664 // root [3] maps->Print();
1e7c9b89 665
feedcab9 666 if(fgkMaps) return fgkMaps;
1e7c9b89 667
feedcab9 668 AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
669 if(entry)
670 fgkMaps = (TObjArray*)entry->GetObject();
1e7c9b89 671
feedcab9 672 return fgkMaps;
1e7c9b89 673
feedcab9 674}
675