Small bug fix (A.Marin)
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 09:13:57 +0000 (09:13 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Mar 2011 09:13:57 +0000 (09:13 +0000)
ANALYSIS/AliCollisionNormalization.cxx

index 159280f..be3121e 100644 (file)
@@ -417,10 +417,9 @@ Double_t AliCollisionNormalization::ComputeNint() {
                                fAllEventsInBin0ZRange,
                                fAllEventsZRangeMult1,
                                fAllEventsZRange));
-
+  Int_t nbin = histVzMCTrg->GetNbinsX();
+  fTrigEffBin0 =  histVzMCTrg->Integral(0,nbin+1,1,1)/histVzMCGen->Integral(0,nbin+1,1,1);
   if(fVerbose > 1) {    
-    Int_t nbin = histVzMCTrg->GetNbinsX();
-    fTrigEffBin0 =  histVzMCTrg->Integral(0,nbin+1,1,1)/histVzMCGen->Integral(0,nbin+1,1,1);
     AliInfo(Form("Trigger Efficiency in the zero bin: %3.3f", fTrigEffBin0 ));
   }