Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:27:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0006 
0007 #Geometry
0008 #
0009 process.load("Configuration.Geometry.GeometryExtendedReco_cff")
0010 
0011 #Magnetic Field
0012 #
0013 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0014 
0015 # Output of events, etc...
0016 #
0017 # Explicit note : since some histos/tree might be dumped directly,
0018 #                 better NOT use PoolOutputModule !
0019 # Detector simulation (Geant4-based)
0020 #
0021 process.load("SimG4Core.Application.g4SimHits_cfi")
0022 
0023 process.load("IOMC.RandomEngine.IOMC_cff")
0024 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0025 
0026 process.load('FWCore.MessageService.MessageLogger_cfi')
0027 if 'MessageLogger' in process.__dict__:
0028     process.MessageLogger.MaterialBudget=dict()
0029 
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0032 )
0033 
0034 process.maxEvents = cms.untracked.PSet(
0035     input = cms.untracked.int32(-1)
0036 )
0037 
0038 process.p1 = cms.Path(process.g4SimHits)
0039 process.g4SimHits.UseMagneticField = False
0040 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0041 process.g4SimHits.Physics.DummyEMPhysics = True
0042 process.g4SimHits.Physics.CutsPerRegion = False
0043 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0044     type = cms.string('MaterialBudgetAction'),
0045     MaterialBudgetAction = cms.PSet(
0046         storeDecay = cms.untracked.bool(False),
0047         HistosFile = cms.string('matbdg_Density.root'),
0048         AllStepsToTree = cms.bool(True),
0049         HistogramList = cms.string('Tracker'),
0050         SelectedVolumes = cms.vstring('Tracker', 'BEAM'),
0051         # string TextFile = "None"          # "None" means this option 
0052         TreeFile = cms.string('tree_Density.root'),
0053         StopAfterProcess = cms.string('None'),
0054         TextFile = cms.string('None'),
0055         EminDecayProd = cms.untracked.double(0.0) ## MeV
0056 
0057     )
0058 ))
0059 
0060