CMS 3D CMS Logo

digitizers_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup for initial physics phase
14 
15 theDigitizers = cms.PSet(
16  pixel = cms.PSet(
17  pixelDigitizer
18  ),
19  strip = cms.PSet(
20  stripDigitizer
21  ),
22  ecal = cms.PSet(
23  ecalDigitizer
24  ),
25  hcal = cms.PSet(
26  hcalDigitizer
27  ),
28  castor = cms.PSet(
29  castorDigitizer
30  ),
31  puVtx = cms.PSet(
32  pileupVtxDigitizer
33  ),
34  mergedtruth = cms.PSet(
35  trackingParticles
36  )
37 )
38 
39 from Configuration.Eras.Modifier_fastSim_cff import fastSim
40 fastSim.toModify(theDigitizers,
41  # fastsim does not model castor
42  castor = None,
43  # fastsim does not digitize pixel and strip hits
44  pixel = None,
45  strip = None,
46  tracks = recoTrackAccumulator
47 )
48 
49 
50 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import hgceeDigitizer, hgchebackDigitizer, hgchefrontDigitizer
51 
52 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
53 phase2_hgcal.toModify( theDigitizers,
54  hgceeDigitizer = cms.PSet(hgceeDigitizer),
55  hgchebackDigitizer = cms.PSet(hgchebackDigitizer),
56  hgchefrontDigitizer = cms.PSet(hgchefrontDigitizer),
57 )
58 
59 from Configuration.Eras.Modifier_run3_common_cff import run3_common
60 run3_common.toModify( theDigitizers, castor = None )
61 
62 from SimGeneral.MixingModule.ecalTimeDigitizer_cfi import ecalTimeDigitizer
63 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
64 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
65 phase2_timing.toModify( theDigitizers,
66  ecalTime = ecalTimeDigitizer.clone() )
67 
68 from SimFastTiming.Configuration.SimFastTiming_cff import fastTimeDigitizer
69 phase2_timing_layer.toModify( theDigitizers,
70  fastTimingLayer = fastTimeDigitizer.clone() )
71 
72 theDigitizersValid = cms.PSet(theDigitizers)
73 theDigitizers.mergedtruth.select.signalOnlyTP = cms.bool(True)
74 
75 phase2_hgcal.toModify( theDigitizersValid,
76  calotruth = cms.PSet( caloParticles ) )
77 
78 
79 phase2_timing.toModify( theDigitizersValid.mergedtruth,
80  createInitialVertexCollection = cms.bool(True) )
81