Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFSimParticle: import ParticleFilter setting from pre-defined config rather than re-… #26130

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 6 additions & 10 deletions RecoParticleFlow/PFProducer/python/particleFlowSimParticle_cfi.py
@@ -1,5 +1,7 @@
import FWCore.ParameterSet.Config as cms

from FastSimulation.Event.ParticleFilter_cfi import ParticleFilterBlock

particleFlowSimParticle = cms.EDProducer("PFSimParticleProducer",
# verbosity
verbose = cms.untracked.bool(False),
Expand All @@ -8,16 +10,9 @@
# replace ParticleFilter.pTMin = 0.5
# flags
process_RecTracks = cms.untracked.bool(False),
ParticleFilter = cms.PSet(
EProton = cms.double(5000.0),
# Particles with |eta| > etaMax (momentum direction at primary vertex)
# are not simulated
etaMax = cms.double(5.0),
# Charged particles with pT < pTMin (GeV/c) are not simulated
pTMin = cms.double(0.0),
# Particles with energy smaller than EMin (GeV) are not simulated
EMin = cms.double(0.0)
),
#
ParticleFilter = ParticleFilterBlock.ParticleFilter.clone(chargedPtMin = 0, EMin = 0),
#
TTRHBuilder = cms.string('WithTrackAngle'),
process_Particles = cms.untracked.bool(True),
Propagator = cms.string('PropagatorWithMaterial'),
Expand All @@ -35,3 +30,4 @@
#retrieving fastSim SimHits
fastSimProducer = cms.untracked.InputTag('fastSimProducer','EcalHitsEB')
)