]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALRecParam.cxx
put back also the maximum foreseen ALTRO DDL, not only the number of super modules
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecParam.cxx
1 /**************************************************************************
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$ */
17
18 //-----------------------------------------------------------------------------
19 // Container of EMCAL reconstruction parameters
20 // The purpose of this object is to store it to OCDB
21 // and retrieve it in the corresponding reconstruction class:
22 // AliEMCALClusterizer, AliEMCALPID, AliEMCALTracker ...
23 //
24 // Author: Yuri Kharlov
25 //-----------------------------------------------------------------------------
26
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
35 ClassImp(AliEMCALRecParam)
36
37 TObjArray* AliEMCALRecParam::fgkMaps =0; //ALTRO mappings 
38
39 AliEMCALRecParam::AliEMCALRecParam() :
40 AliDetectorRecoParam(),
41 fClusteringThreshold(0.1), 
42 fW0(4.5),
43 fMinECut(0.05), 
44 fUnfold(kFALSE), 
45 fLocMaxCut(0.03), 
46 fTimeCut(1.),// high value, accept all
47 fTimeMin(-1.),// small value, accept all
48 fTimeMax(1.),// high value, accept all//clustering
49 fClusterizerFlag(AliEMCALRecParam::kClusterizerv1),
50 fNRowDiff(1),
51 fNColDiff(1),
52 fMthCutEta(0.025), 
53 fMthCutPhi(0.05),
54 fStep(20),
55 fTrkCutPt(0.0),
56 fTrkCutNITS(1.0),
57 fTrkCutNTPC(20.0), //track matching
58 fHighLowGainFactor(16.0), 
59 fOrderParameter(2), 
60 fTau(2.35), 
61 fNoiseThreshold(3), 
62 fNPedSamples(5), 
63 fRemoveBadChannels(kFALSE),
64 fFittingAlgorithm(0), 
65 fUseFALTRO(kTRUE), 
66 fFitLEDEvents(kFALSE),//raw signal
67 fRejectBelowThreshold(0)
68 {
69   // default reco values
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   
89   // as a first step, all array elements are initialized to 0.0
90   Int_t i=0, j=0;
91   for (i = 0; i < 6; i++) {
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.;
95     }
96     fGammaEnergyProb[i] =0.; // not yet implemented
97     fHadronEnergyProb[i]=0.; 
98     fPiZeroEnergyProb[i]=0.; // not yet implemented
99     
100     
101   }
102   // Set here default parameters for Pb+Pb (high flux)
103   
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   
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   
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;
217   
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   
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   
240 }
241
242 //-----------------------------------------------------------------------------
243 AliEMCALRecParam::AliEMCALRecParam(const AliEMCALRecParam& rp) :
244 AliDetectorRecoParam(),
245 fClusteringThreshold(rp.fClusteringThreshold),
246 fW0(rp.fW0),
247 fMinECut(rp.fMinECut), 
248 fUnfold(rp.fUnfold), 
249 fLocMaxCut(rp.fLocMaxCut), 
250 fTimeCut(rp.fTimeCut), 
251 fTimeMin(rp.fTimeMin),
252 fTimeMax(rp.fTimeMax),//clustering
253 fClusterizerFlag(rp.fClusterizerFlag),
254 fNRowDiff(rp.fNRowDiff),
255 fNColDiff(rp.fNColDiff),
256 fMthCutEta(rp.fMthCutEta), 
257 fMthCutPhi(rp.fMthCutPhi),
258 fStep(rp.fStep),
259 fTrkCutPt(rp.fTrkCutPt),
260 fTrkCutNITS(rp.fTrkCutNITS),
261 fTrkCutNTPC(rp.fTrkCutNTPC), // track matching
262 fHighLowGainFactor(rp.fHighLowGainFactor), 
263 fOrderParameter(rp.fOrderParameter), 
264 fTau(rp.fTau), 
265 fNoiseThreshold(rp.fNoiseThreshold), 
266 fNPedSamples(rp.fNPedSamples),  
267 fRemoveBadChannels(rp.fRemoveBadChannels),
268 fFittingAlgorithm(rp.fFittingAlgorithm),  
269 fUseFALTRO(rp.fUseFALTRO),
270 fFitLEDEvents(rp.fFitLEDEvents), //raw signal
271 fRejectBelowThreshold(rp.fRejectBelowThreshold)
272 {
273   //copy constructor
274   
275   //PID values
276   Int_t i=0, j=0;
277   for (i = 0; i < 6; i++) {
278     for (j = 0; j < 6; j++) {
279       fGamma[i][j]       = rp.fGamma[i][j];
280       fGamma1to10[i][j]  = rp.fGamma1to10[i][j];
281       fHadron[i][j]      = rp.fHadron[i][j];
282       fHadron1to10[i][j] = rp.fHadron1to10[i][j];
283       fPiZero[i][j]      = rp.fPiZero[i][j];
284     }
285     fGammaEnergyProb[i]  = rp.fGammaEnergyProb[i];
286     fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
287     fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
288     
289   }
290   
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   
300 }
301
302 //-----------------------------------------------------------------------------
303 AliEMCALRecParam& AliEMCALRecParam::operator = (const AliEMCALRecParam& rp)
304 {
305   //assignment operator
306   
307   if(this != &rp) {
308     fClusteringThreshold = rp.fClusteringThreshold;
309     fW0        = rp.fW0;
310     fMinECut   = rp.fMinECut;
311     fUnfold    = rp.fUnfold;
312     fLocMaxCut = rp.fLocMaxCut; 
313     fTimeCut   = rp.fTimeCut;
314     fTimeMax   = rp.fTimeMax;
315     fTimeMin   = rp.fTimeMin;//clustering
316     fClusterizerFlag   = rp.fClusterizerFlag;
317     fNRowDiff  = rp.fNRowDiff;
318     fNColDiff  = rp.fNColDiff;
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
325     fHighLowGainFactor = rp.fHighLowGainFactor; 
326     fOrderParameter    = rp.fOrderParameter;
327     fTau               = rp.fTau;
328     fNoiseThreshold    = rp.fNoiseThreshold;
329     fNPedSamples       = rp.fNPedSamples; 
330     fRemoveBadChannels = rp.fRemoveBadChannels;
331     fFittingAlgorithm  = rp.fFittingAlgorithm;
332     fUseFALTRO         = rp.fUseFALTRO;
333     fFitLEDEvents      = rp.fFitLEDEvents;//raw signal
334     fRejectBelowThreshold =rp.fRejectBelowThreshold;//unfolding
335           
336     //PID values
337     Int_t i=0, j=0;
338     for (i = 0; i < 6; i++) {
339       for (j = 0; j < 6; j++) {
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];
345       }
346       fGammaEnergyProb[i]  = rp.fGammaEnergyProb[i];
347       fPiZeroEnergyProb[i] = rp.fPiZeroEnergyProb[i];
348       fHadronEnergyProb[i] = rp.fHadronEnergyProb[i];
349     }
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     
359   }    
360   
361   return *this;
362   
363 }
364
365 //-----------------------------------------------------------------------------
366 AliEMCALRecParam* AliEMCALRecParam::GetDefaultParameters()
367 {
368   //default parameters for the reconstruction
369   AliEMCALRecParam* params = GetLowFluxParam();
370   params->SetName("Default - p+p");
371   params->SetTitle("Default - p+p");
372   return params;
373   
374 }
375
376 //-----------------------------------------------------------------------------
377 AliEMCALRecParam* AliEMCALRecParam::GetCalibParam()
378 {
379   //parameters for the reconstruction of calibration runs
380   AliEMCALRecParam* params = GetLowFluxParam();
381   //params->SetClusteringThreshold(0.1); // 100 MeV                                             
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   
389 }
390
391 //-----------------------------------------------------------------------------
392 AliEMCALRecParam* AliEMCALRecParam::GetCosmicParam()
393 {
394   //parameters for the reconstruction of cosmic runs
395   AliEMCALRecParam* params = GetLowFluxParam();
396   //params->SetClusteringThreshold(0.1); // 100 MeV                                             
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   
404 }
405
406
407 //-----------------------------------------------------------------------------
408 AliEMCALRecParam* AliEMCALRecParam::GetLowFluxParam()
409 {
410   //low flux/multiplicity ("p+p") parameters for the reconstruction
411   AliEMCALRecParam* params = new AliEMCALRecParam();
412   params->SetClusteringThreshold(0.1); // 100 MeV                                             
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);
417   params->SetExtrapolateStep(1);
418   
419   
420   //PID parameters for pp  implemented 
421   // as a first step, all array elements are initialized to 0.0
422   Int_t i=0, j=0;
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);
443   
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);
455   
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.);
461   
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);
467   
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);
473   
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); 
479   
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.);
485   
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);
491   
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);
497   
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);
503   
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);
509   
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);
515   
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);
521   
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);
527   
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.);
533   
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);
539   
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);
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   
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);
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   
566   return params;
567   
568 }
569
570
571 //-----------------------------------------------------------------------------
572 AliEMCALRecParam* 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);
581   params->SetTrkCutPt(0.15);//This value can be higher if necessary
582   
583   return params;
584   
585 }
586
587 //-----------------------------------------------------------------------------
588 void AliEMCALRecParam::Print(Option_t * opt) const
589 {
590   // Print reconstruction parameters to stdout
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)){
594     AliInfo(Form("Clusterizer selected: %d", fClusterizerFlag));
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",
596                  fClusteringThreshold,fW0,fMinECut,fUnfold,fLocMaxCut,fTimeCut*1.e9,fTimeMin*1e9,fTimeMax*1e9));
597     
598     AliInfo(Form("Track-matching cuts :\n dEta<%f, dPhi<%f, step=%f[cm], pT>%f, NITS>%f, NTPC>%f\n", 
599                  fMthCutEta, fMthCutPhi, fStep, fTrkCutPt, fTrkCutNITS,fTrkCutNTPC));
600     
601     AliInfo(Form("Unfolding parameters, Shower shape function :\n")); 
602     for(Int_t i = 0; i < 8; i++){
603       printf(" %f, ", fSSPars[i]);
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");
614     AliInfo(Form("Unfolding fRejectBelowThreshold, 0-split,1-reject: %d\n",fRejectBelowThreshold)); 
615   }
616   
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++){
621         printf(" %f, ", fGamma[i][j]);
622       }
623       printf("\n");
624     }
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++){
630         printf(" %f, ", fHadron[i][j]);
631       }
632       printf("\n");
633     }
634     
635     printf("\n");
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++){
640         printf(" %f, ", fPiZero[i][j]);
641       }
642       printf("\n");
643     }
644     
645     printf("\n");
646     
647   }
648   
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",
651                  fHighLowGainFactor,fOrderParameter,fTau,fNoiseThreshold,fNPedSamples));
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",
653                  fRemoveBadChannels, fFittingAlgorithm, fUseFALTRO, fFitLEDEvents));
654   }
655 }
656
657 //-----------------------------------------------------------------------------
658 const TObjArray* AliEMCALRecParam::GetMappings()
659 {
660   //Returns array of AliAltroMappings for RCU0..RCUX.
661   //If not found, read it from OCDB.                                           
662   
663   //Quick check as follows:                                                   
664   //  root [0] AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT"
665   //  root [1] AliCDBManager::Instance()->SetRun(1);                             
666   //  root [2] TObjArray* maps = AliEMCALRecParam::GetMappings();                
667   //  root [3] maps->Print();                                                    
668   
669   if(fgkMaps) return fgkMaps;
670   
671   AliCDBEntry* entry = AliCDBManager::Instance()->Get("EMCAL/Calib/Mapping");
672   if(entry)
673     fgkMaps = (TObjArray*)entry->GetObject();
674   
675   return fgkMaps;
676   
677 }
678