Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ################################################################################
0004 # sub-system NeutronWriters
0005 from SimMuon.CSCDigitizer.cscNeutronWriter_cfi import *
0006 from SimMuon.RPCDigitizer.rpcNeutronWriter_cfi import *
0007 from SimMuon.DTDigitizer.dtNeutronWriter_cfi import *
0008 
0009 cscNeutronWriter.input = cms.InputTag("g4SimHitsNeutrons","MuonCSCHits")
0010 rpcNeutronWriter.input = cms.InputTag("g4SimHitsNeutrons","MuonRPCHits")
0011 dtNeutronWriter.input  = cms.InputTag("g4SimHitsNeutrons","MuonDTHits")
0012 
0013 ################################################################################
0014 # Special utility modules for neutron collections processing
0015 # and making MixingModule happy.
0016 # They define new "generator" and new "g4SimHits" modules
0017 
0018 from SimMuon.Neutron.emptyHepMCProducer_cfi import *
0019 from SimMuon.Neutron.neutronHitsCollector_cfi import *
0020 
0021 
0022 ################################################################################
0023 # extending the random number engine
0024 
0025 from Configuration.StandardSequences.Services_cff import RandomNumberGeneratorService
0026 RandomNumberGeneratorService.generatorNeutrons = cms.PSet( initialSeed = cms.untracked.uint32(1234), engineName = cms.untracked.string('TRandom3') )
0027 RandomNumberGeneratorService.g4SimHitsNeutrons = cms.PSet( initialSeed = cms.untracked.uint32(1234), engineName = cms.untracked.string('TRandom3') )
0028 RandomNumberGeneratorService.cscNeutronWriter  = cms.PSet( initialSeed = cms.untracked.uint32(1234), engineName = cms.untracked.string('TRandom3') )
0029 RandomNumberGeneratorService.rpcNeutronWriter  = cms.PSet( initialSeed = cms.untracked.uint32(1234), engineName = cms.untracked.string('TRandom3') )
0030 RandomNumberGeneratorService.dtNeutronWriter   = cms.PSet( initialSeed = cms.untracked.uint32(1234), engineName = cms.untracked.string('TRandom3') )
0031 
0032 
0033 ################################################################################
0034 # processing sequence
0035 
0036 neutron_simhits_seq = cms.Sequence((cscNeutronWriter + rpcNeutronWriter + dtNeutronWriter) * (generator + g4SimHits))
0037