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_tile_cff import phase2_timing_layer_tile
29 from Configuration.Eras.Modifier_phase2_timing_layer_bar_cff import phase2_timing_layer_bar
30 (phase2_timing_layer_tile | phase2_timing_layer_bar).toModify(
31  simPFProducer,
32  trackTimeValueMap = cms.InputTag("tofPID:t0"),
33  trackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
34  #this will cause no time to be set for gsf tracks
35  #(since this is not available for the fullsim/reconstruction yet)
36  #*TODO* update when gsf times are available
37  gsfTrackTimeValueMap = cms.InputTag("tofPID:t0"),
38  gsfTrackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
39 )
40 
41 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
42 premix_stage2.toModify(simPFProducer,
43  trackingParticleSrc = "mixData:MergedTrackTruth",
44  caloParticlesSrc = "mixData:MergedCaloTruth",
45  simClusterTruthSrc = "mixData:MergedCaloTruth",
46 )