Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:23:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 process = cms.Process('PROD',Run3)
0005 #from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0006 #process = cms.Process('PROD',Run3_dd4hep)
0007 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0008 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
0009 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0010 from Configuration.AlCa.GlobalTag import GlobalTag
0011 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0012 #process.GlobalTag = GlobalTag(process.GlobalTag, '120X_mcRun3_2021_realistic_dd4hep_v1', '')
0013 
0014 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0015 process.load("Configuration.StandardSequences.MagneticField_cff")
0016 process.load("SimG4Core.Application.g4SimHits_cfi")
0017 process.load("Validation.Geometry.materialBudgetVolume_cfi")
0018 
0019 process.load("IOMC.RandomEngine.IOMC_cff")
0020 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0021 
0022 process.load('FWCore.MessageService.MessageLogger_cfi')
0023 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000)
0024 if hasattr(process,'MessageLogger'):
0025     process.MessageLogger.MaterialBudget=dict()
0026 
0027 process.source = cms.Source("PoolSource",
0028     noEventSort = cms.untracked.bool(True),
0029     duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0030     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0031 )
0032 
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(-1)
0035 )
0036 
0037 process.TFileService = cms.Service("TFileService",
0038     fileName = cms.string('matbdgRun3dddDB.root')
0039 #   fileName = cms.string('matbdgRun3dd4hepDB.root')
0040 )
0041 
0042 process.g4SimHits.UseMagneticField = False
0043 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0044 process.g4SimHits.StackingAction.TrackNeutrino = True
0045 process.g4SimHits.Physics.DummyEMPhysics = True
0046 process.g4SimHits.Physics.CutsPerRegion = False
0047 
0048 process.load("Validation.Geometry.materialBudgetVolumeAnalysis_cfi")
0049 process.p1 = cms.Path(process.g4SimHits+process.materialBudgetVolumeAnalysis)