Fixing once more FORWARD_NULL defect reported by Coverity
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 7 Nov 2010 12:09:12 +0000 (12:09 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 7 Nov 2010 12:09:12 +0000 (12:09 +0000)
(Diego)

MUON/AliMUONTriggerChamberEfficiency.cxx

index 08c38a3..34f3cfd 100755 (executable)
@@ -248,7 +248,7 @@ AliMUONTriggerChamberEfficiency::FillFromList(Bool_t useMeanValues)
        debugString += Form(" index %i",index);
        AliDebug(5,debugString.Data());
 
-       if ( useMeanValues ){
+       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");