Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:19

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