Reset MaxPatchEnergy for cases where not all events have a trigger patch (Minbias)
authormvl <marco.van.leeuwen@cern.ch>
Tue, 2 Dec 2014 12:35:18 +0000 (13:35 +0100)
committermvl <marco.van.leeuwen@cern.ch>
Tue, 2 Dec 2014 12:35:18 +0000 (13:35 +0100)
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalJetTriggerQA.cxx

index 7aa35ce..8199bdf 100644 (file)
@@ -207,6 +207,8 @@ void AliAnalysisTaskEmcalJetTriggerQA::FillTriggerPatchHistos() {
   //Fill trigger patch histos for main trigger
 
   AliEmcalTriggerPatchInfo *patch = GetMainTriggerPatch(fMainTrigCat,fMainTrigSimple);
+  fMaxPatchEnergy = 0;
+  fMaxPatchADCEnergy = 0;
   if(patch) {
     fMaxPatchEnergy = patch->GetPatchE();
     fMaxPatchADCEnergy = patch->GetADCAmpGeVRough();