Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:10:25

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.GeometryExtended2026D77Reco_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         threshold = cms.untracked.string('INFO'),
0030 #        threshold = cms.untracked.string('DEBUG'),
0031         default = cms.untracked.PSet(
0032             limit = cms.untracked.int32(0)
0033         ),
0034         FwkJob = cms.untracked.PSet( ## but FwkJob category - those unlimitted
0035             limit = cms.untracked.int32(-1)
0036         ),
0037         MaterialBudget = cms.untracked.PSet(
0038             limit = cms.untracked.int32(-1)
0039         ),
0040         G4cout = cms.untracked.PSet(
0041             limit = cms.untracked.int32(-1)
0042         ),
0043         G4cerr = cms.untracked.PSet(
0044             limit = cms.untracked.int32(-1)
0045         ),
0046     ),
0047     categories = cms.untracked.vstring('FwkJob','MaterialBudget','G4cout','G4cerr'),
0048     debugModules = cms.untracked.vstring('g4SimHits'),
0049     destinations = cms.untracked.vstring('cout')
0050 )
0051 
0052 process.source = cms.Source("PoolSource",
0053     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0054 )
0055 
0056 process.maxEvents = cms.untracked.PSet(
0057 #    input = cms.untracked.int32(-1)
0058     input = cms.untracked.int32(10000)
0059 )
0060 
0061 process.p1 = cms.Path(process.g4SimHits)
0062 process.g4SimHits.StackingAction.TrackNeutrino = cms.bool(True)
0063 process.g4SimHits.UseMagneticField = False
0064 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0065 process.g4SimHits.Physics.DummyEMPhysics = True
0066 process.g4SimHits.Physics.CutsPerRegion = False
0067 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0068     type = cms.string('MaterialBudgetAction'),
0069     MaterialBudgetAction = cms.PSet(
0070         HistosFile = cms.string('matbdg_Mtd.root'),
0071         AllStepsToTree = cms.bool(False),
0072         HistogramList = cms.string('Mtd'),
0073         SelectedVolumes = cms.vstring('BarrelTimingLayer','EndcapTimingLayer'),
0074         # string TextFile = "None"          # "None" means this option 
0075         TreeFile = cms.string('None'),
0076         StopAfterProcess = cms.string('None'),
0077         TextFile = cms.string('None')
0078     )
0079 ))
0080 
0081 process.g4SimHits.G4Commands = cms.vstring("/material/g4/printMaterial")