]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerChamberEfficiency.cxx
small fix
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerChamberEfficiency.cxx
index c0796d0ce6432651d2d849b311ea3a83e0ec1bf8..34f3cfd6918c46232716d54bca1ae6b65c3f9dc9 100755 (executable)
@@ -242,9 +242,13 @@ AliMUONTriggerChamberEfficiency::FillFromList(Bool_t useMeanValues)
        histoName.ReplaceAll("Count","Eff");
        effGraph->SetName(histoName.Data());
        fEfficiencyObjects->AddAt(effGraph, index);
-       AliDebug(5,Form("Adding object %s (%s/%s) at index %i",effGraph->GetName(),histoNum->GetName(),histoDen->GetName(),index));
 
-       if ( useMeanValues ){
+       TString debugString = Form("Adding object %s",effGraph->GetName());
+       if ( histoDen ) debugString += Form(" (%s/%s)",histoNum->GetName(),histoDen->GetName());
+       debugString += Form(" index %i",index);
+       AliDebug(5,debugString.Data());
+
+       if ( useMeanValues && rebuildEfficiency ){
          Int_t currChamber = ich + AliMpConstants::NofTrackingChambers();
          histoName = fEfficiencyMap->GetHistoName(AliMUONTriggerEfficiencyCells::kHboardCount, hType, ich);
          TH1F* auxHistoNum = (TH1F*)fEfficiencyMap->GetHistoList()->FindObject(histoName.Data())->Clone("tempHistoNum");
@@ -413,7 +417,7 @@ TGraphAsymmErrors* AliMUONTriggerChamberEfficiency::GetEfficiencyGraph(TH1* hist
   //
 
   TGraphAsymmErrors* auxGraph = 0x0;
-  if ( histoDen ) auxGraph = new TGraphAsymmErrors(histoNum,histoDen);
+  if ( histoDen ) auxGraph = new TGraphAsymmErrors(histoNum,histoDen,"cp");
   else auxGraph = new TGraphAsymmErrors(histoNum);
 
   Int_t npoints = histoNum->GetNbinsX();