CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimMuon/Neutron/python/SimIdealNeutrons_cff.py

Go to the documentation of this file.
00001 # Modified version of
00002 # Configuration/StandardSequences/python/SimIdeal_cff.py
00003 
00004 import FWCore.ParameterSet.Config as cms
00005 
00006 # CMSSW/Geant4 interface
00007 from SimG4Core.Configuration.SimG4Core_cff import *
00008 
00009 # rename g4SimHits so we can reuse the module label for neutron simhits collection
00010 g4SimHitsNeutrons = g4SimHits.clone()
00011 g4SimHitsNeutrons.Generator.HepMCProductLabel = cms.string('generatorNeutrons')
00012 del g4SimHits
00013 
00014 # Configure G4 for neutron hits:
00015 g4SimHitsNeutrons.Physics.type = 'SimG4Core/Physics/QGSP_BERT_HP'
00016 g4SimHitsNeutrons.Physics.FlagBERT = True
00017 g4SimHitsNeutrons.StackingAction.NeutronThreshold = 0.
00018 g4SimHitsNeutrons.StackingAction.MaxTrackTime = 1e9
00019 g4SimHitsNeutrons.SteppingAction.MaxTrackTime = 1e9
00020 # the following two enable simulation in the Quad region
00021 # (commenting them out would make debug runs faster)
00022 g4SimHitsNeutrons.StackingAction.MaxTrackTimes[2] = 1e9
00023 g4SimHitsNeutrons.SteppingAction.MaxTrackTimes[2] = 1e9
00024 #  cuts on generator-level particles
00025 g4SimHitsNeutrons.Generator.ApplyPCuts = False
00026 g4SimHitsNeutrons.Generator.ApplyEtaCuts = False
00027 #only affects weighting of energy deposit, so unneeded
00028 #g4SimHitsNeutrons.CaloSD.NeutronThreshold = 0.
00029 
00030 # special psim sequence:
00031 psim_neutrons = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")*g4SimHitsNeutrons)