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_38T_cff")
0009 process.load("SimG4Core.Application.g4SimHits_cfi")
0010 process.load("GeneratorInterface.Core.generatorSmeared_cfi")
0011 from Configuration.StandardSequences.VtxSmeared import VtxSmeared
0012 process.load(VtxSmeared['NoSmear'])
0013 
0014 process.load("IOMC.RandomEngine.IOMC_cff")
0015 process.RandomNumberGeneratorService.VtxSmeared.engineName = cms.untracked.string('HepJamesRandom')
0016 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0017 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0018 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0019 
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 if hasattr(process,'MessageLogger'):
0022     process.MessageLogger.MaterialBudget=dict()
0023 #   process.MessageLogger.MaterialBudgetFull=dict()
0024 
0025 process.source = cms.Source("EmptySource",
0026     firstRun        = cms.untracked.uint32(1),
0027     firstEvent      = cms.untracked.uint32(1)
0028 )
0029 
0030 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0031     PGunParameters = cms.PSet(
0032         PartID = cms.vint32(14),
0033         MinEta = cms.double(2.8),
0034         MaxEta = cms.double(3.0),
0035         MinPhi = cms.double(-3.14159265359),
0036         MaxPhi = cms.double(3.14159265359),
0037         MinE   = cms.double(10.0),
0038         MaxE   = cms.double(10.0)
0039     ),
0040     AddAntiParticle = cms.bool(False),
0041     Verbosity       = cms.untracked.int32(0)
0042 )
0043 
0044 process.maxEvents = cms.untracked.PSet(
0045     input = cms.untracked.int32(10)
0046 )
0047 
0048 process.TFileService = cms.Service("TFileService",
0049     fileName = cms.string('matbdg_HCAL1.root')
0050 )
0051 
0052 process.g4SimHits.UseMagneticField = False
0053 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0054 process.g4SimHits.StackingAction.TrackNeutrino = True
0055 process.g4SimHits.Physics.DummyEMPhysics = True
0056 process.g4SimHits.Physics.CutsPerRegion = False
0057 process.g4SimHits.Generator.ApplyEtaCuts = False
0058 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0059     MaterialBudgetHcal = cms.PSet(
0060         FillHisto    = cms.untracked.bool(False),
0061         PrintSummary = cms.untracked.bool(True),
0062         DoHCAL       = cms.untracked.bool(True),
0063         NBinPhi      = cms.untracked.int32(180),
0064         NBinEta      = cms.untracked.int32(260),
0065         MaxEta       = cms.untracked.double(5.2),
0066         EtaLow       = cms.untracked.double(-3.0),
0067         EtaHigh      = cms.untracked.double(3.0),
0068         EtaMinP      = cms.untracked.double(-5.5),
0069         EtaMaxP      = cms.untracked.double(5.5),
0070         EtaLowMin    = cms.untracked.double(0.783),
0071         EtaLowMax    = cms.untracked.double(0.870),
0072         EtaMidMin    = cms.untracked.double(2.650),
0073         EtaMidMax    = cms.untracked.double(2.868),
0074         EtaHighMin   = cms.untracked.double(2.868),
0075         EtaHighMax   = cms.untracked.double(3.000),
0076         RMax         = cms.untracked.double(5.0),
0077         ZMax         = cms.untracked.double(14.0),
0078         Fromdd4hep   = cms.untracked.bool(False)
0079     ),
0080     type = cms.string('MaterialBudgetHcal')
0081 ))
0082 
0083 # Schedule definition
0084 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)