|
| 1 | +import FWCore.ParameterSet.Config as cms |
| 2 | +from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD |
| 3 | + |
| 4 | +process = cms.Process("PROD",Run3_DDD) |
| 5 | +process.load("SimG4CMS.Calo.pythiapdt_cfi") |
| 6 | +process.load('FWCore.MessageService.MessageLogger_cfi') |
| 7 | +process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") |
| 8 | +process.load("Configuration.Geometry.GeometryExtended2025Reco_cff") |
| 9 | +process.load("Configuration.StandardSequences.MagneticField_cff") |
| 10 | +process.load("Configuration.EventContent.EventContent_cff") |
| 11 | +process.load('Configuration.StandardSequences.Generator_cff') |
| 12 | +process.load('Configuration.StandardSequences.SimIdeal_cff') |
| 13 | + |
| 14 | +process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") |
| 15 | +from Configuration.AlCa.autoCond import autoCond |
| 16 | +process.GlobalTag.globaltag = autoCond['phase1_2025_realistic'] |
| 17 | + |
| 18 | +if 'MessageLogger' in process.__dict__: |
| 19 | + process.MessageLogger.G4cerr=dict() |
| 20 | + process.MessageLogger.MuonSim=dict() |
| 21 | + |
| 22 | +process.load("IOMC.RandomEngine.IOMC_cff") |
| 23 | +process.RandomNumberGeneratorService.generator.initialSeed = 456789 |
| 24 | +process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876 |
| 25 | +process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789 |
| 26 | + |
| 27 | +process.maxEvents = cms.untracked.PSet( |
| 28 | + input = cms.untracked.int32(200) |
| 29 | +) |
| 30 | + |
| 31 | +process.source = cms.Source("EmptySource") |
| 32 | + |
| 33 | +process.generator = cms.EDProducer("FlatRandomEGunProducer", |
| 34 | + PGunParameters = cms.PSet( |
| 35 | + PartID = cms.vint32(13), |
| 36 | + MinEta = cms.double(1.5), |
| 37 | + MaxEta = cms.double(2.5), |
| 38 | + MinPhi = cms.double(-3.1415926), |
| 39 | + MaxPhi = cms.double(3.1415926), |
| 40 | + MinE = cms.double(50.), |
| 41 | + MaxE = cms.double(50.) |
| 42 | + ), |
| 43 | + Verbosity = cms.untracked.int32(0), |
| 44 | + AddAntiParticle = cms.bool(True), |
| 45 | + firstRun = cms.untracked.uint32(1) |
| 46 | +) |
| 47 | + |
| 48 | +process.output = cms.OutputModule("PoolOutputModule", |
| 49 | + process.FEVTSIMEventContent, |
| 50 | + fileName = cms.untracked.string('simeventMuon.root') |
| 51 | +) |
| 52 | + |
| 53 | +process.Timing = cms.Service("Timing") |
| 54 | + |
| 55 | +process.generation_step = cms.Path(process.pgen) |
| 56 | +process.simulation_step = cms.Path(process.psim) |
| 57 | +process.out_step = cms.EndPath(process.output) |
| 58 | + |
| 59 | +process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM' |
| 60 | +process.g4SimHits.Physics.Verbosity = 0 |
| 61 | +process.g4SimHits.G4Commands = ['/tracking/verbose 1'] |
| 62 | +process.g4SimHits.MuonSD.RemoveGEMHits = [1101, 1102, 1103, 1104, 1106, 1108] |
| 63 | + |
| 64 | +# Schedule definition |
| 65 | +process.schedule = cms.Schedule(process.generation_step, |
| 66 | + process.simulation_step, |
| 67 | + process.out_step |
| 68 | + ) |
| 69 | + |
| 70 | +# filter all path with the production filter sequence |
| 71 | +for path in process.paths: |
| 72 | + getattr(process,path)._seq = process.generator * getattr(process,path)._seq |
0 commit comments