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 from Configuration.Eras.Era_Phase2_cff import Phase2
0003 
0004 process = cms.Process("PROD",Phase2)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 #Geometry
0009 #
0010 process.load("Configuration.Geometry.GeometryExtended2026D86Reco_cff")
0011 
0012 #Magnetic Field
0013 #
0014 process.load("Configuration.StandardSequences.MagneticField_38T_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.MessageLogger = cms.Service("MessageLogger",
0028     cout = cms.untracked.PSet(
0029         default = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         FwkJob = cms.untracked.PSet( ## but FwkJob category - those unlimitted
0033             limit = cms.untracked.int32(-1)
0034         )
0035     ),
0036     categories = cms.untracked.vstring('FwkJob'),
0037     destinations = cms.untracked.vstring('cout')
0038 )
0039 
0040 process.source = cms.Source("PoolSource",
0041     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0042 )
0043 
0044 process.maxEvents = cms.untracked.PSet(
0045     input = cms.untracked.int32(-1)
0046 )
0047 
0048 process.p1 = cms.Path(process.g4SimHits)
0049 process.g4SimHits.StackingAction.TrackNeutrino = cms.bool(True)
0050 process.g4SimHits.UseMagneticField = False
0051 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0052 process.g4SimHits.Physics.DummyEMPhysics = True
0053 process.g4SimHits.Physics.CutsPerRegion = False
0054 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0055     type = cms.string('MaterialBudgetAction'),
0056     MaterialBudgetAction = cms.PSet(
0057         HistosFile = cms.string('matbdg_TrackerPhase2TkBE.root'),
0058         AllStepsToTree = cms.bool(True),
0059         HistogramList = cms.string('Tracker'),
0060         SelectedVolumes = cms.vstring('Tracker'),
0061         TreeFile = cms.string('None'), ## is NOT requested
0062 
0063         StopAfterProcess = cms.string('None'),
0064         # string TextFile = "matbdg_Tracker.txt"
0065         TextFile = cms.string('None')
0066     )
0067 ))