Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-24 02:22:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process('PROD',Run3_DDD)
0005 
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 process.load("Configuration.Geometry.GeometryExtended2021Reco_cff")
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009 process.load("SimG4Core.Application.g4SimHits_cfi")
0010 
0011 process.load("IOMC.RandomEngine.IOMC_cff")
0012 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0013 
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(10000)
0016 if hasattr(process,'MessageLogger'):
0017     process.MessageLogger.MaterialBudget=dict()
0018 
0019 process.source = cms.Source("PoolSource",
0020     noEventSort = cms.untracked.bool(True),
0021     duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
0022     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0023 )
0024 
0025 process.maxEvents = cms.untracked.PSet(
0026     input = cms.untracked.int32(-1)
0027 )
0028 
0029 process.TFileService = cms.Service("TFileService",
0030     fileName = cms.string('matbdgHCAL_run3.root')
0031 )
0032 
0033 process.load("Validation.Geometry.materialBudgetHcalAnalysis_cfi")
0034 
0035 process.simulation_step = cms.Path(process.g4SimHits)
0036 process.analysis_step = cms.Path(process.materialBudgetHcalAnalysis)
0037 
0038 process.g4SimHits.UseMagneticField = False
0039 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0040 process.g4SimHits.StackingAction.TrackNeutrino = True
0041 process.g4SimHits.Physics.DummyEMPhysics = True
0042 process.g4SimHits.Physics.CutsPerRegion = False
0043 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0044     MaterialBudgetHcalProducer = cms.PSet(
0045         RMax         = cms.untracked.double(5.0),
0046         ZMax         = cms.untracked.double(14.0),
0047         Fromdd4hep   = cms.untracked.bool(False),
0048         EtaMinP      = cms.untracked.double(5.2),
0049         EtaMaxP      = cms.untracked.double(0.0),
0050         PrintSummary = cms.untracked.bool(True),
0051         Name         = cms.untracked.string('Hcal')
0052     ),
0053     type = cms.string('MaterialBudgetHcalProducer')
0054 ))
0055 
0056 # Schedule definition
0057 process.schedule = cms.Schedule(process.simulation_step,
0058                                 process.analysis_step,
0059                                 )