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