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  trackTimeQualityMap = cms.InputTag("mtdTrackQualityMVA:mtdQualMVA"),
34  timingQualityThreshold = cms.double(0.5),
35  #this will cause no time to be set for gsf tracks
36  #(since this is not available for the fullsim/reconstruction yet)
37  #*TODO* update when gsf times are available
38  gsfTrackTimeValueMap = cms.InputTag("tofPID:t0"),
39  gsfTrackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
40  gsfTrackTimeQualityMap = cms.InputTag("mtdTrackQualityMVA:mtdQualMVA"),
41 )
42 
43 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
44 premix_stage2.toModify(simPFProducer,
45  trackingParticleSrc = "mixData:MergedTrackTruth",
46  caloParticlesSrc = "mixData:MergedCaloTruth",
47  simClusterTruthSrc = "mixData:MergedCaloTruth",
48 )