Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-15 23:41:01

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