Skip to content

Commit

Permalink
Removing filter for stable particles
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Feb 16, 2024
1 parent 4d6832f commit ba03ab5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions k4Gen/options/pythiaEventsFiltered.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,9 @@
hepmc_converter.GenParticles.Path = "GenParticles"
ApplicationMgr().TopAlg += [hepmc_converter]

# Filters generated particles
# accept is a list of particle statuses that should be accepted
genfilter = GenParticleFilter("StableParticles")
genfilter.accept = [1]
genfilter.GenParticles.Path = "GenParticles"
genfilter.GenParticlesFiltered.Path = "GenParticlesStable"
ApplicationMgr().TopAlg += [genfilter]

# Filters events
eventfilter = GenEventFilter("EventFilter")
eventfilter.particles.Path = "GenParticlesStable"
eventfilter.particles.Path = "GenParticles"
# eventfilter.filterRule = \
# "bool filterRule(const edm4hep::MCParticleCollection* inColl){" \
# " return inColl->size() > 1000;}"
Expand Down

0 comments on commit ba03ab5

Please sign in to comment.