CMS 3D CMS Logo

simPFProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 simPFProducer = cms.EDProducer(
4  'SimPFProducer',
5  superClusterThreshold = cms.double(4.0),
6  neutralEMThreshold = cms.double(0.250),
7  neutralHADThreshold = cms.double(0.250),
8  pfRecTrackSrc = cms.InputTag("hgcalTrackCollection:TracksInHGCal"),
9  trackSrc = cms.InputTag('generalTracks'),
10  gsfTrackSrc = cms.InputTag('electronGsfTracks'),
11  muonSrc = cms.InputTag("muons1stStep"),
12  trackingParticleSrc = cms.InputTag('mix:MergedTrackTruth'),
13  simClusterTruthSrc = cms.InputTag('mix:MergedCaloTruth'),
14  caloParticlesSrc = cms.InputTag('mix:MergedCaloTruth'),
15  simClustersSrc = cms.InputTag('particleFlowClusterHGCal'),
16  associators = cms.VInputTag(cms.InputTag('quickTrackAssociatorByHits') )
17  )
18 
19 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
20 phase2_timing.toModify(
21  simPFProducer,
22  trackTimeValueMap = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel"),
23  trackTimeErrorMap = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution"),
24  gsfTrackTimeValueMap = cms.InputTag("gsfTrackTimeValueMapProducer:electronGsfTracksConfigurableFlatResolutionModel"),
25  gsfTrackTimeErrorMap = cms.InputTag("gsfTrackTimeValueMapProducer:electronGsfTracksConfigurableFlatResolutionModelResolution"),
26 )
27 
28 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
29 phase2_timing_layer.toModify(
30  simPFProducer,
31  trackTimeValueMap = cms.InputTag("tofPID:t0"),
32  trackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
33  #this will cause no time to be set for gsf tracks
34  #(since this is not available for the fullsim/reconstruction yet)
35  #*TODO* update when gsf times are available
36  gsfTrackTimeValueMap = cms.InputTag("tofPID:t0"),
37  gsfTrackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
38 )
39 
40 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
41 premix_stage2.toModify(simPFProducer,
42  trackingParticleSrc = "mixData:MergedTrackTruth",
43  caloParticlesSrc = "mixData:MergedCaloTruth",
44  simClusterTruthSrc = "mixData:MergedCaloTruth",
45 )