CMS 3D CMS Logo

simPFProducer_cff.py
Go to the documentation of this file.
2 
3 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
4 phase2_timing.toModify(
5  simPFProducer,
6  useTiming = cms.bool(True),
7  trackTimeValueMap = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel"),
8  trackTimeErrorMap = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution"),
9  gsfTrackTimeValueMap = cms.InputTag("gsfTrackTimeValueMapProducer:electronGsfTracksConfigurableFlatResolutionModel"),
10  gsfTrackTimeErrorMap = cms.InputTag("gsfTrackTimeValueMapProducer:electronGsfTracksConfigurableFlatResolutionModelResolution"),
11 )
12 
13 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
14 phase2_timing_layer.toModify(
15  simPFProducer,
16  useTiming = cms.bool(True),
17  useTimingQuality = cms.bool(True),
18  trackTimeValueMap = cms.InputTag("tofPID:t0"),
19  trackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
20  trackTimeQualityMap = cms.InputTag("mtdTrackQualityMVA:mtdQualMVA"),
21  timingQualityThreshold = cms.double(0.5),
22  #this will cause no time to be set for gsf tracks
23  #(since this is not available for the fullsim/reconstruction yet)
24  #*TODO* update when gsf times are available
25  gsfTrackTimeValueMap = cms.InputTag("tofPID:t0"),
26  gsfTrackTimeErrorMap = cms.InputTag("tofPID:sigmat0"),
27  gsfTrackTimeQualityMap = cms.InputTag("mtdTrackQualityMVA:mtdQualMVA"),
28 )
29 
30 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
31 premix_stage2.toModify(simPFProducer,
32  trackingParticleSrc = "mixData:MergedTrackTruth",
33  caloParticlesSrc = "mixData:MergedCaloTruth",
34  simClusterTruthSrc = "mixData:MergedCaloTruth",
35 )