]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for #97283: AliGenPythia : Trigger on Pythia particles for any process
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Sep 2012 15:54:44 +0000 (15:54 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Sep 2012 15:54:44 +0000 (15:54 +0000)
PYTHIA6/AliGenPythia.cxx

index 708e2b889a4616598d78cd3828a69a18cb7e40bd..06658cd5bb67d92bda4e5bf090e0eedce40bdd51 100644 (file)
@@ -942,9 +942,9 @@ Int_t  AliGenPythia::GenerateMB()
        }
     }
 
-    // Select jets with fragmentation photon or pi0 or hadrons going to PHOS or EMCAL
-  if ( fProcess == kPyJets && 
-      (fFragPhotonInCalo || fPi0InCalo || fHadronInCalo) && 
+  // Select events with fragmentation photon or pi0 or hadrons going to PHOS or EMCAL,
+  // implemented primaryly for kPyJets, but extended to any kind of process.
+  if ((fFragPhotonInCalo || fPi0InCalo || fHadronInCalo) && 
       (fCheckPHOS || fCheckEMCAL) ) {
     
     Bool_t ok = kFALSE;