CMS 3D CMS Logo

muonRPCDigis_cfi.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 # Module to create simulated RPC digis.
5 
6 simMuonRPCDigis = cms.EDProducer("RPCDigiProducer",
7  Noise = cms.bool(True),
8  digiModelConfig = cms.PSet(
9  signalPropagationSpeed = cms.double(0.66),
10  timingRPCOffset = cms.double(50.0),
11  Frate = cms.double(1.0),
12  printOutDigitizer = cms.bool(False),
13  cosmics = cms.bool(False),
14  deltatimeAdjacentStrip = cms.double(3.0),
15  linkGateWidth = cms.double(20.0),
16  Rate = cms.double(0.0),
17  timeResolution = cms.double(2.5),
18  averageClusterSize = cms.double(1.5),
19  Gate = cms.double(25.0),
20  averageEfficiency = cms.double(0.95),
21  Nbxing = cms.int32(9),
22  BX_range = cms.int32(5),
23  timeJitter = cms.double(1.0),
24  IRPC_time_resolution = cms.double(0.1),
25  IRPC_electronics_jitter = cms.double(0.025),
26  digitizeElectrons = cms.bool(False), # False - do not digitize electron hits (they are included in bkg simulation configured with doBkgNoise)
27  ),
28  doBkgNoise = cms.bool(True), #False - no noise and bkg simulation
29  Signal = cms.bool(True),
30  mixLabel = cms.string('mix'),
31  InputCollection = cms.string('g4SimHitsMuonRPCHits'),
32  digiModel = cms.string('RPCSimAsymmetricCls')
33 )
34 
35 #the digitizer for PhaseII muon upgrade is RPCSimModelTiming and for the moment is based on RPCSimAverageNoiseEffCls
36 from Configuration.Eras.Modifier_fastSim_cff import fastSim
37 fastSim.toModify(simMuonRPCDigis, InputCollection = 'MuonSimHitsMuonRPCHits')
38 
39 _simMuonRPCDigisPhaseII = cms.EDProducer("RPCandIRPCDigiProducer",
40  Noise = cms.bool(True),
41  digiModelConfig = cms.PSet(
42  signalPropagationSpeed = cms.double(0.66),
43  timingRPCOffset = cms.double(50.0),
44  Frate = cms.double(1.0),
45  printOutDigitizer = cms.bool(False),
46  cosmics = cms.bool(False),
47  deltatimeAdjacentStrip = cms.double(3.0),
48  linkGateWidth = cms.double(20.0),
49  Rate = cms.double(0.0),
50  timeResolution = cms.double(1.5),
51  averageClusterSize = cms.double(1.5),
52  Gate = cms.double(25.0),
53  averageEfficiency = cms.double(0.95),
54  Nbxing = cms.int32(9),
55  BX_range = cms.int32(5),
56  timeJitter = cms.double(0.1),
57  sigmaY = cms.double(2.), # resolution of 2 cm
58  do_Y_coordinate = cms.bool(False),
59  digitizeElectrons = cms.bool(True),
60  IRPC_time_resolution = cms.double(1.5),# intrinsic time resolution of 1.5 ns
61  IRPC_electronics_jitter = cms.double(0.1)# resolution of 100 ps
62  ),
63  doBkgNoise = cms.bool(False), #False - no noise and bkg simulation
64  Signal = cms.bool(True),
65  mixLabel = cms.string('mix'),
66  InputCollection = cms.string('g4SimHitsMuonRPCHits'),
67  digiModel = cms.string('RPCSimModelTiming'),
68  digiIRPCModelConfig = cms.PSet(
69  signalPropagationSpeed = cms.double(0.66),
70  timingRPCOffset = cms.double(50.0),
71  Frate = cms.double(1.0),
72  printOutDigitizer = cms.bool(False),
73  cosmics = cms.bool(False),
74  deltatimeAdjacentStrip = cms.double(3.0),
75  linkGateWidth = cms.double(20.0),
76  Rate = cms.double(0.0),
77  timeResolution = cms.double(1.0),
78  averageClusterSize = cms.double(1.5),
79  Gate = cms.double(25.0),
80  averageEfficiency = cms.double(0.95),
81  Nbxing = cms.int32(9),
82  BX_range = cms.int32(5),
83  timeJitter = cms.double(0.1),
84  IRPC_time_resolution = cms.double(1),# resolution of 1 ns
85  IRPC_electronics_jitter = cms.double(0.1),# resolution of 100 ps
86  sigmaY = cms.double(2.), # resolution of 2 cm
87  do_Y_coordinate = cms.bool(True),
88  digitizeElectrons = cms.bool(True),
89  ),
90  digiIRPCModel = cms.string('RPCSimModelTiming')
91 )
92 
93 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
94 phase2_muon.toReplaceWith( simMuonRPCDigis, _simMuonRPCDigisPhaseII )
95 
96 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
97 premix_stage1.toModify(simMuonRPCDigis, doBkgNoise = False)