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