]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/hfe/AliHFEtrdPIDqaV1.cxx
Updates to run with deltas (L. Cunqueiro)
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEtrdPIDqaV1.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 // Class AliHFEtrdPIDqaV1
17 // Monitoring TRD PID in the HFE PID montioring framework. The following
18 // quantities are monitored:
19 //   TRD electron likelihood
20 //   TRD dE/dx (Absolute values)
21 //   TPC dE/dx (Number of sigmas, control histogram)
22 // (Always as function of momentum, particle species and centrality 
23 // before and after cut)
24 // More information about the PID monitoring framework can be found in
25 // AliHFEpidQAmanager.cxx and AliHFEdetPIDqa.cxx
26 //
27 // Author:
28 //    Markus Fasel <M.Fasel@gsi.de>
29 //
30
31 #include <TAxis.h>
32 #include <TBrowser.h>
33 #include <TH2.h>
34 #include <THnSparse.h>
35 #include <TString.h>
36
37 #include "AliESDtrack.h"
38 #include "AliLog.h"
39 #include "AliPID.h"
40 #include "AliPIDResponse.h"
41
42 #include "AliHFEcollection.h"
43 #include "AliHFEpidBase.h"
44 #include "AliHFEpidQAmanager.h"
45 #include "AliHFEpidTPC.h"
46 #include "AliHFEpidTRD.h"
47 #include "AliHFEtrdPIDqaV1.h"
48
49 ClassImp(AliHFEtrdPIDqaV1)
50
51 //____________________________________________________________
52 AliHFEtrdPIDqaV1::AliHFEtrdPIDqaV1():
53     AliHFEdetPIDqa(),
54     fHistos(NULL)
55 {
56   //
57   // Dummy constructor
58   //
59 }
60
61 //____________________________________________________________
62 AliHFEtrdPIDqaV1::AliHFEtrdPIDqaV1(const Char_t *name):
63     AliHFEdetPIDqa(name, "QA for TRD"),
64     fHistos(NULL)
65 {
66   //
67   // Default constructor
68   //
69 }
70
71 //____________________________________________________________
72 AliHFEtrdPIDqaV1::AliHFEtrdPIDqaV1(const AliHFEtrdPIDqaV1 &o):
73     AliHFEdetPIDqa(o),
74     fHistos(NULL)
75 {
76   //
77   // Copy constructor
78   //
79 }
80
81 //____________________________________________________________
82 AliHFEtrdPIDqaV1 &AliHFEtrdPIDqaV1::operator=(const AliHFEtrdPIDqaV1 &o){
83   //
84   // Make assignment
85   //
86   if(this == &o) return *this;
87   AliHFEdetPIDqa::operator=(o);
88   fHistos = o.fHistos;
89   
90   return *this;
91 }
92
93 //_________________________________________________________
94 Long64_t AliHFEtrdPIDqaV1::Merge(TCollection *coll){
95   //
96   // Merge with other objects
97   //
98   if(!coll) return 0;
99   if(coll->IsEmpty()) return 1;
100
101   TIter it(coll);
102   AliHFEtrdPIDqaV1 *refQA = NULL;
103   TObject *o = NULL;
104   Long64_t count = 0;
105   TList listHistos;
106   while((o = it())){
107     refQA = dynamic_cast<AliHFEtrdPIDqaV1 *>(o);
108     if(!refQA) continue;
109
110     listHistos.Add(refQA->fHistos);
111     count++; 
112   }
113   fHistos->Merge(&listHistos);
114   return count + 1;
115 }
116
117 //_________________________________________________________
118 void AliHFEtrdPIDqaV1::Browse(TBrowser *b){
119   //
120   // Browse the PID QA
121   //
122   if(b){
123     if(fHistos){
124       b->Add(fHistos, fHistos->GetName());
125
126       // Make Projections of the dE/dx Spectra and add them to a new Folder
127       TString specnames[4] = {"All", "Electrons", "Pions", "Protons"};
128       Int_t specind[4] = {-1, AliPID::kElectron, AliPID::kPion, AliPID::kProton};
129       TList *listTM = new TList;
130       listTM->SetOwner();
131       TList *listLike = new TList;
132       listLike->SetOwner();
133       TList *listCharge = new TList;
134       listCharge->SetOwner();
135       TList *listTPCnsigma = new TList;
136       listTPCnsigma->SetOwner();
137
138       TH2 *hptr = NULL; 
139       TList *lctm, *lclike, *lccharge, *lcTPCsig;
140       for(Int_t icent = -1; icent < 11; icent++){
141         lctm = new TList;
142         lctm->SetName(icent < 0 ? "MinBias" : Form("Centrality%d", icent));
143         lctm->SetOwner();
144         listTM->Add(lctm);
145         lclike = new TList;
146         lclike->SetName(icent < 0 ? "MinBias" : Form("Centrality%d", icent));
147         lclike->SetOwner();
148         listLike->Add(lclike);
149         lccharge = new TList;
150         lccharge->SetName(icent < 0 ? "MinBias" : Form("Centrality%d", icent));
151         lccharge->SetOwner();
152         listCharge->Add(lccharge);
153         lcTPCsig = new TList;
154         lcTPCsig->SetName(icent < 0 ? "MinBias" : Form("Centrality%d", icent));
155         lcTPCsig->SetOwner();
156         listTPCnsigma->Add(lcTPCsig);
157         for(Int_t ispec = 0; ispec < 4; ispec++){
158           for(Int_t istep = 0; istep < 2; istep++){
159             hptr = MakeTRDspectrumTM(static_cast<AliHFEdetPIDqa::EStep_t>(istep), specind[ispec], icent);
160             if(hptr){
161               hptr->SetName(Form("hTRDtm%s%s", specnames[ispec].Data(), istep == 0 ? "Before" : "After"));
162               lctm->Add(hptr);
163             }
164             hptr = MakeTRDlikelihoodDistribution(static_cast<AliHFEdetPIDqa::EStep_t>(istep), specind[ispec], icent);
165             hptr->SetName(Form("hTRDlike%s%s", specnames[ispec].Data(), istep == 0 ? "Before" : "After"));
166             lclike->Add(hptr);
167             hptr = MakeTRDchargeDistribution(static_cast<AliHFEdetPIDqa::EStep_t>(istep), specind[ispec], icent);
168             hptr->SetName(Form("hTRDcharge%s%s", specnames[ispec].Data(), istep == 0 ? "Before" : "After"));
169             lccharge->Add(hptr);
170             hptr = MakeTPCspectrumNsigma(static_cast<AliHFEdetPIDqa::EStep_t>(istep), specind[ispec], icent);
171             hptr->SetName(Form("hTPCspectrum%s%s", specnames[ispec].Data(), istep == 0 ? "Before" : "After"));
172             lcTPCsig->Add(hptr);
173           }
174         }
175       }
176         
177       b->Add(listTM, "Projections Truncated Mean");
178       b->Add(listLike, "Projections Likelihood distribution");
179       b->Add(listCharge, "Projections Tracklet Charge");
180       b->Add(listTPCnsigma, "Projections TPC spectra");
181     }
182   }
183 }
184
185 //____________________________________________________________
186 void AliHFEtrdPIDqaV1::Initialize(){
187   //
188   // Initialize QA histos for TRD PID
189   //
190
191   AliDebug(1, "Initializing PID QA for TRD");
192   // Make common binning
193   const Int_t kPIDbins = AliPID::kSPECIES + 1;
194   const Int_t kSteps = 2;
195   const Double_t kMinPID = -1;
196   const Double_t kMinP = 0.;
197   const Double_t kMaxPID = (Double_t)AliPID::kSPECIES;
198   const Double_t kMaxP = 20.;
199   const Int_t kCentralityBins = 11;
200
201   // Define number of bins 
202   Int_t kPbins = fQAmanager->HasHighResolutionHistos() ? 1000 : 100;
203   Int_t tpcSigmaBins = fQAmanager->HasHighResolutionHistos() ? 1400 : 140;
204   Int_t trdLikelihoodBins = fQAmanager->HasHighResolutionHistos() ? 200 : 100;
205
206   fHistos = new AliHFEcollection("trdqahistos", "Collection of TRD QA histograms");
207   
208   // Create Control Histogram monitoring the TPC sigma between the selection steps
209   Int_t nBinsTPCSigma[5] = {kPIDbins, kPbins, tpcSigmaBins, kSteps, kCentralityBins};
210   Double_t minTPCSigma[5] = {kMinPID, kMinP, -12., 0., 0.};
211   Double_t maxTPCSigma[5] = {kMaxPID, kMaxP, 12., 2., 11.};
212   fHistos->CreateTHnSparse("hTPCsigma", "TPC sigma; species p [GeV/c]; TPC dEdx - <dE/dx>|_{el} [#sigma]; selection step", 5, nBinsTPCSigma, minTPCSigma, maxTPCSigma);
213   fHistos->Sumw2("hTPCsigma");
214   // Create Monitoring histogram for the Likelihood distribution
215   Int_t nBinsTRDlike[5] = {kPIDbins, kPbins, trdLikelihoodBins, kSteps, kCentralityBins};
216   Double_t minTRDlike[5] = {kMinPID, kMinP, 0., 0., 0.};
217   Double_t maxTRDlike[5] = {kMaxPID, kMaxP, 1., 2., 11.};
218   fHistos->CreateTHnSparse("hTRDlikelihood", "TRD Likelihood Distribution; species; p [GeV/c]; TRD electron Likelihood; selection step", 5, nBinsTRDlike, minTRDlike, maxTRDlike);
219   fHistos->Sumw2("hTRDlikelihood");
220   // Create Monitoring histogram for the TRD total charge
221   const Int_t kTRDchargeBins = 1000;
222   Int_t nBinsTRDcharge[5] = {kPIDbins, kPbins, kTRDchargeBins, kSteps, kCentralityBins};
223   Double_t minTRDcharge[5] = {kMinPID, kMinP, 0., 0., 0.};
224   Double_t maxTRDcharge[5] = {kMaxPID, kMaxP, 100000., 2., 11.};
225   fHistos->CreateTHnSparse("hTRDcharge", "Total TRD charge; species; p [GeV/c]; TRD charge [a.u.]; selection step", 5, nBinsTRDcharge, minTRDcharge, maxTRDcharge);
226   fHistos->Sumw2("hTRDcharge");
227   // Monitoring of the TRD truncated mean according to version 1
228   const Int_t kTRDtmBins = 1000;
229   Int_t nBinsTRDtm[5] = {kPIDbins, kPbins, kTRDtmBins, kSteps, kCentralityBins};
230   Double_t minTRDtm[5] = {kMinPID, kMinP, 0., 0., 0.};
231   Double_t maxTRDtm[5] = {kMaxPID, kMaxP, 20000., 2., 11.};
232   fHistos->CreateTHnSparse("hTRDtruncatedMean", "TRD truncated Mean; species; p [GeV/c]; TRD signal [a.u.]; selection step", 5, nBinsTRDtm, minTRDtm, maxTRDtm);
233   fHistos->Sumw2("hTRDtruncatedMean");
234 }
235
236 //____________________________________________________________
237 void AliHFEtrdPIDqaV1::ProcessTrack(const AliHFEpidObject *track, AliHFEdetPIDqa::EStep_t step){
238   //
239   // Process the track, fill the containers 
240   //
241   AliDebug(1, Form("QA started for TRD PID for step %d", (Int_t)step));
242   Int_t species = track->GetAbInitioPID();
243   if(species >= AliPID::kSPECIES) species = -1;
244   AliHFEpidObject::AnalysisType_t anatype = track->IsESDanalysis() ? AliHFEpidObject::kESDanalysis : AliHFEpidObject::kAODanalysis;
245
246   AliHFEpidTRD *trdpid = dynamic_cast<AliHFEpidTRD *>(fQAmanager->GetDetectorPID(AliHFEpid::kTRDpid));
247   const AliPIDResponse *pidResponse = trdpid ? trdpid->GetPIDResponse() : NULL;
248  
249   Double_t container[5];
250   container[0] = species;
251   container[1] = trdpid ? trdpid->GetP(track->GetRecTrack(), anatype) : 0.;
252   container[2] = pidResponse ? pidResponse->NumberOfSigmasTPC(track->GetRecTrack(), AliPID::kElectron) : 0.;
253   container[3] = step;
254   container[4] = track->GetCentrality();
255   fHistos->Fill("hTPCsigma", container);
256
257   container[2] = trdpid ? trdpid->GetElectronLikelihood(static_cast<const AliVTrack*>(track->GetRecTrack()), anatype) : 0;
258   fHistos->Fill("hTRDlikelihood", container);
259
260   if(track->IsESDanalysis()){
261     const AliESDtrack *esdtrack = dynamic_cast<const AliESDtrack *>(track->GetRecTrack());
262     if(esdtrack){
263       container[2] = trdpid ? trdpid->GetTRDSignalV1(esdtrack) : 0;
264       fHistos->Fill("hTRDtruncatedMean", container);
265     }
266   }
267   for(UInt_t ily = 0; ily < 6; ily++){
268     container[2] = trdpid ? trdpid->GetChargeLayer(track->GetRecTrack(), ily, anatype) : 0;
269     if(container[2] < 1e-3) continue; // Filter out 0 entries
270     fHistos->Fill("hTRDcharge", container);
271   }
272 }
273
274 //_________________________________________________________
275 TH2 *AliHFEtrdPIDqaV1::MakeTPCspectrumNsigma(AliHFEdetPIDqa::EStep_t step, Int_t species, Int_t centralityClass){
276   //
277   // Get the TPC control histogram for the TRD selection step (either before or after PID)
278   //
279   THnSparseF *histo = dynamic_cast<THnSparseF *>(fHistos->Get("hTPCsigma"));
280   if(!histo){
281     AliError("QA histogram monitoring TPC nSigma not available");
282     return NULL;
283   }
284   if(species > -1 && species < AliPID::kSPECIES){
285     // cut on species (if available)
286     histo->GetAxis(0)->SetRange(species + 2, species + 2); // undef + underflow
287   }
288   TString centname, centtitle;
289   Bool_t hasCentralityInfo = kTRUE;
290   if(centralityClass > -1){
291     if(histo->GetNdimensions() < 5){
292       AliError("Centrality Information not available");
293       centname = centtitle = "MinBias";
294       hasCentralityInfo = kFALSE;
295     } else {
296       // Project centrality classes
297       // -1 is Min. Bias
298       histo->GetAxis(4)->SetRange(centralityClass+1, centralityClass+1);
299       centname = Form("Cent%d", centralityClass);
300       centtitle = Form("Centrality %d", centralityClass);
301     }
302   } else {
303     histo->GetAxis(4)->SetRange(1, histo->GetAxis(4)->GetNbins()-1);
304     centname = centtitle = "MinBias";
305     hasCentralityInfo = kTRUE;
306   }
307   histo->GetAxis(3)->SetRange(step + 1, step + 1); 
308
309   TH2 *hSpec = histo->Projection(2, 1);
310   // construct title and name
311   TString stepname = step == AliHFEdetPIDqa::kBeforePID ? "before" : "after";
312   TString speciesname = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "all Particles";
313   TString specID = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "unid";
314   TString histname = Form("hSigmaTPC%s%s%s", specID.Data(), stepname.Data(), centname.Data());
315   TString histtitle = Form("TPC Sigma for %s %s PID %s", speciesname.Data(), stepname.Data(), centtitle.Data());
316   hSpec->SetName(histname.Data());
317   hSpec->SetTitle(histtitle.Data());
318
319   // Unset range on the original histogram
320   histo->GetAxis(0)->SetRange(0, histo->GetAxis(0)->GetNbins());
321   histo->GetAxis(3)->SetRange(0, histo->GetAxis(3)->GetNbins());
322   if(hasCentralityInfo)histo->GetAxis(4)->SetRange(0, histo->GetAxis(4)->GetNbins());
323   return hSpec; 
324 }
325
326 //_________________________________________________________
327 TH2 *AliHFEtrdPIDqaV1::MakeTRDspectrumTM(AliHFEdetPIDqa::EStep_t step, Int_t species, Int_t centralityClass){
328   //
329   // Get the TPC control histogram for the TRD selection step (either before or after PID)
330   //
331   THnSparseF *histo = dynamic_cast<THnSparseF *>(fHistos->Get("hTRDtruncatedMean"));
332   if(!histo){
333     AliError("QA histogram monitoring TPC nSigma not available");
334     return NULL;
335   }
336   if(species > -1 && species < AliPID::kSPECIES){
337     // cut on species (if available)
338     histo->GetAxis(0)->SetRange(species + 2, species + 2); // undef + underflow
339   }
340   TString centname, centtitle;
341   Bool_t hasCentralityInfo = kTRUE;
342   if(centralityClass > -1){
343      if(histo->GetNdimensions() < 5){
344       AliError("Centrality Information not available");
345       centname = centtitle = "MinBias";
346       hasCentralityInfo= kFALSE;
347     } else {
348       // Project centrality classes
349       // -1 is Min. Bias
350       histo->GetAxis(4)->SetRange(centralityClass+1, centralityClass+1);
351       centname = Form("Cent%d", centralityClass);
352       centtitle = Form("Centrality %d", centralityClass);
353     }
354   } else {
355     histo->GetAxis(4)->SetRange(1, histo->GetAxis(4)->GetNbins()-1);
356     centname = centtitle = "MinBias";
357     hasCentralityInfo= kFALSE;
358   }
359   histo->GetAxis(3)->SetRange(step + 1, step + 1); 
360
361   TH2 *hSpec = histo->Projection(2, 1);
362   // construct title and name
363   TString stepname = step == AliHFEdetPIDqa::kBeforePID ? "before" : "after";
364   TString speciesname = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "all Particles";
365   TString specID = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "unid";
366   TString histname = Form("hTMTRD%s%s%s", specID.Data(), stepname.Data(), centname.Data());
367   TString histtitle = Form("TRD Truncated Mean for %s %s PID %s", speciesname.Data(), stepname.Data(), centtitle.Data());
368   hSpec->SetName(histname.Data());
369   hSpec->SetTitle(histtitle.Data());
370
371   // Unset range on the original histogram
372   histo->GetAxis(0)->SetRange(0, histo->GetAxis(0)->GetNbins());
373   histo->GetAxis(2)->SetRange(0, histo->GetAxis(2)->GetNbins());
374   if(hasCentralityInfo)histo->GetAxis(4)->SetRange(0, histo->GetAxis(4)->GetNbins());
375   return hSpec; 
376 }
377
378 //_________________________________________________________
379 TH2 *AliHFEtrdPIDqaV1::MakeTRDlikelihoodDistribution(AliHFEdetPIDqa::EStep_t step, Int_t species, Int_t centralityClass){
380   //
381   // Make Histogram for TRD Likelihood distribution
382   //
383   THnSparseF *histo = dynamic_cast<THnSparseF *>(fHistos->Get("hTRDlikelihood"));
384   if(!histo){
385     AliError("QA histogram monitoring TRD Electron Likelihood not available");
386     return NULL;
387   }
388   if(species > -1 && species < AliPID::kSPECIES){
389     // cut on species (if available)
390     histo->GetAxis(0)->SetRange(species + 2, species + 2); // undef + underflow
391   }
392   TString centname, centtitle;
393   Bool_t hasCentralityInfo = kTRUE;
394   if(centralityClass > -1){
395     if(histo->GetNdimensions() < 5){
396       AliError("Centrality Information not available");
397       centname = centtitle = "MinBias";
398       hasCentralityInfo= kFALSE;
399     } else {
400       // Project centrality classes
401       // -1 is Min. Bias
402       histo->GetAxis(4)->SetRange(centralityClass+1, centralityClass+1);
403       centname = Form("Cent%d", centralityClass);
404       centtitle = Form("Centrality %d", centralityClass);
405     }
406   } else {
407     histo->GetAxis(4)->SetRange(1, histo->GetAxis(4)->GetNbins()-1);
408     centname = centtitle = "MinBias";
409     hasCentralityInfo= kTRUE;
410   }
411   histo->GetAxis(3)->SetRange(step + 1, step + 1);
412
413   TH2 *hSpec = histo->Projection(2, 1);
414   // construct title and name
415   TString stepname = step == AliHFEdetPIDqa::kBeforePID ? "before" : "after";
416   TString speciesname = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "all Particles";
417   TString specID = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "unid";
418   TString histname = Form("hLikeElTRD%s%s%s", specID.Data(), stepname.Data(),centname.Data());
419   TString histtitle = Form("TRD electron Likelihood for %s %s PID %s", speciesname.Data(), stepname.Data(),centtitle.Data());
420   hSpec->SetName(histname.Data());
421   hSpec->SetTitle(histtitle.Data());
422
423   // Unset range on the original histogram
424   histo->GetAxis(0)->SetRange(0, histo->GetAxis(0)->GetNbins());
425   histo->GetAxis(2)->SetRange(0, histo->GetAxis(2)->GetNbins());
426   if(hasCentralityInfo)histo->GetAxis(4)->SetRange(0, histo->GetAxis(4)->GetNbins());
427   return hSpec; 
428 }
429
430 //_________________________________________________________
431 TH2 *AliHFEtrdPIDqaV1::MakeTRDchargeDistribution(AliHFEdetPIDqa::EStep_t step, Int_t species, Int_t centralityClass){
432   //
433   // Make Histogram for TRD Likelihood distribution
434   //
435   THnSparseF *histo = dynamic_cast<THnSparseF *>(fHistos->Get("hTRDcharge"));
436   if(!histo){
437     AliError("QA histogram monitoring TRD total charge not available");
438     return NULL;
439   }
440   if(species > -1 && species < AliPID::kSPECIES){
441     // cut on species (if available)
442     histo->GetAxis(0)->SetRange(species + 2, species + 2); // undef + underflow
443   }
444   TString centname, centtitle;
445   Bool_t hasCentralityInfo = kTRUE;
446   if(centralityClass > -1){
447     if(histo->GetNdimensions() < 5){
448       AliError("Centrality Information not available");
449       centname = centtitle = "MinBias";
450       hasCentralityInfo= kFALSE;
451     } else {
452       // Project centrality classes
453       // -1 is Min. Bias
454       histo->GetAxis(4)->SetRange(centralityClass+1, centralityClass+1);
455       centname = Form("Cent%d", centralityClass);
456       centtitle = Form("Centrality %d", centralityClass);
457     }
458   } else {
459     histo->GetAxis(4)->SetRange(1, histo->GetAxis(4)->GetNbins()-1);
460     centname = centtitle = "MinBias";
461     hasCentralityInfo= kTRUE;
462   }
463   histo->GetAxis(3)->SetRange(step + 1, step + 1);
464
465   TH2 *hSpec = histo->Projection(2, 1);
466   // construct title and name
467   TString stepname = step == AliHFEdetPIDqa::kBeforePID ? "before" : "after";
468   TString speciesname = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "all Particles";
469   TString specID = species > -1 && species < AliPID::kSPECIES ? AliPID::ParticleName(species) : "unid";
470   TString histname = Form("hChargeTRD%s%s%s", specID.Data(), stepname.Data(), centname.Data());
471   TString histtitle = Form("TRD total charge for %s %s PID %s", speciesname.Data(), stepname.Data(), centtitle.Data());
472   hSpec->SetName(histname.Data());
473   hSpec->SetTitle(histtitle.Data());
474
475   // Unset range on the original histogram
476   histo->GetAxis(0)->SetRange(0, histo->GetAxis(0)->GetNbins());
477   histo->GetAxis(2)->SetRange(0, histo->GetAxis(2)->GetNbins());
478   if(hasCentralityInfo)histo->GetAxis(4)->SetRange(0, histo->GetAxis(4)->GetNbins());
479   return hSpec; 
480 }
481