Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:49

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # Module to create simulated RPC digis.
0005 
0006 simMuonRPCDigis = cms.EDProducer("RPCDigiProducer",
0007     Noise = cms.bool(True),
0008     digiModelConfig = cms.PSet(
0009         signalPropagationSpeed = cms.double(0.66),
0010         timingRPCOffset = cms.double(50.0),
0011         Frate = cms.double(1.0),
0012         printOutDigitizer = cms.bool(False),
0013         cosmics = cms.bool(False),
0014         deltatimeAdjacentStrip = cms.double(3.0),
0015         linkGateWidth = cms.double(20.0),
0016         Rate = cms.double(0.0),
0017         timeResolution = cms.double(2.5),
0018         averageClusterSize = cms.double(1.5),
0019         Gate = cms.double(25.0),
0020         averageEfficiency = cms.double(0.95),
0021         Nbxing = cms.int32(9),
0022         BX_range = cms.int32(5),    
0023         timeJitter = cms.double(1.0),
0024         IRPC_time_resolution = cms.double(0.1),
0025         IRPC_electronics_jitter = cms.double(0.025),
0026         digitizeElectrons = cms.bool(False), # False - do not digitize electron hits (they are included in bkg simulation configured with doBkgNoise)
0027     ),
0028     doBkgNoise = cms.bool(True), #False - no noise and bkg simulation
0029     Signal = cms.bool(True),
0030     mixLabel = cms.string('mix'),                                 
0031     InputCollection = cms.string('g4SimHitsMuonRPCHits'),
0032     digiModel = cms.string('RPCSimAsymmetricCls')
0033 )
0034 
0035 #the digitizer for PhaseII muon upgrade is RPCSimModelTiming and for the moment is based on  RPCSimAverageNoiseEffCls
0036 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0037 fastSim.toModify(simMuonRPCDigis, InputCollection = 'MuonSimHitsMuonRPCHits')
0038 
0039 _simMuonRPCDigisPhaseII = cms.EDProducer("RPCandIRPCDigiProducer",
0040     Noise = cms.bool(True),
0041     digiModelConfig = cms.PSet(
0042         signalPropagationSpeed = cms.double(0.66),
0043         timingRPCOffset = cms.double(50.0),
0044         Frate = cms.double(1.0),
0045         printOutDigitizer = cms.bool(False),
0046         cosmics = cms.bool(False),
0047         deltatimeAdjacentStrip = cms.double(3.0),
0048         linkGateWidth = cms.double(20.0),
0049         Rate = cms.double(0.0),
0050         timeResolution = cms.double(1.5),
0051         averageClusterSize = cms.double(1.5),
0052         Gate = cms.double(25.0),
0053         averageEfficiency = cms.double(0.95),
0054         Nbxing = cms.int32(9),
0055         BX_range = cms.int32(5),
0056         timeJitter = cms.double(0.1),
0057         sigmaY = cms.double(2.), # resolution of 2 cm
0058         do_Y_coordinate = cms.bool(False),
0059         digitizeElectrons = cms.bool(True),
0060         IRPC_time_resolution = cms.double(1.5),# intrinsic time resolution of 1.5 ns
0061         IRPC_electronics_jitter = cms.double(0.1)# resolution of 100 ps
0062     ),
0063     doBkgNoise = cms.bool(False), #False - no noise and bkg simulation
0064     Signal = cms.bool(True),
0065     mixLabel = cms.string('mix'),
0066     InputCollection = cms.string('g4SimHitsMuonRPCHits'),
0067     digiModel = cms.string('RPCSimModelTiming'),
0068     digiIRPCModelConfig = cms.PSet(
0069         signalPropagationSpeed = cms.double(0.66),
0070         timingRPCOffset = cms.double(50.0),
0071         Frate = cms.double(1.0),
0072         printOutDigitizer = cms.bool(False),
0073         cosmics = cms.bool(False),
0074         deltatimeAdjacentStrip = cms.double(3.0),
0075         linkGateWidth = cms.double(20.0),
0076         Rate = cms.double(0.0),
0077         timeResolution = cms.double(1.0),
0078         averageClusterSize = cms.double(1.5),
0079         Gate = cms.double(25.0),
0080         averageEfficiency = cms.double(0.95),
0081         Nbxing = cms.int32(9),
0082         BX_range = cms.int32(5),
0083         timeJitter = cms.double(0.1),
0084         IRPC_time_resolution = cms.double(1),# resolution of 1 ns
0085         IRPC_electronics_jitter = cms.double(0.1),# resolution of 100 ps
0086         sigmaY = cms.double(2.), # resolution of 2 cm
0087         do_Y_coordinate = cms.bool(True),
0088         digitizeElectrons = cms.bool(True),
0089     ),
0090     digiIRPCModel = cms.string('RPCSimModelTiming')
0091 )
0092 
0093 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0094 phase2_muon.toReplaceWith( simMuonRPCDigis, _simMuonRPCDigisPhaseII )
0095 
0096 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0097 premix_stage2.toModify(simMuonRPCDigis, mixLabel = "mixData")