Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-27 14:07:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0005 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0006 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi")
0007 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0008 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0009 process.load("Geometry.HcalCommonData.hcalDDConstants_cff")
0010 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0011 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0012 process.load("Configuration.StandardSequences.MagneticField_cff")
0013 process.load("Configuration.EventContent.EventContent_cff")
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('Configuration.StandardSequences.SimIdeal_cff')
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 from Configuration.AlCa.autoCond import autoCond
0018 process.GlobalTag.globaltag = autoCond['run1_mc']
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     cerr = cms.untracked.PSet(
0022         enable = cms.untracked.bool(False)
0023     ),
0024     cout = cms.untracked.PSet(
0025         DEBUG = cms.untracked.PSet(
0026             limit = cms.untracked.int32(0)
0027         ),
0028         G4cerr = cms.untracked.PSet(
0029             limit = cms.untracked.int32(-1)
0030         ),
0031         G4cout = cms.untracked.PSet(
0032             limit = cms.untracked.int32(-1)
0033         ),
0034         INFO = cms.untracked.PSet(
0035             limit = cms.untracked.int32(-1)
0036         ),
0037         Physics = cms.untracked.PSet(
0038             limit = cms.untracked.int32(0)
0039         ),
0040         SimG4CoreApplication = cms.untracked.PSet(
0041             limit = cms.untracked.int32(-1)
0042         ),
0043         enable = cms.untracked.bool(True)
0044     ),
0045     debugModules = cms.untracked.vstring('*')
0046 )
0047 
0048 process.load("IOMC.RandomEngine.IOMC_cff")
0049 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0050 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0051 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0052 
0053 process.maxEvents = cms.untracked.PSet(
0054     input = cms.untracked.int32(5)
0055 )
0056 
0057 process.source = cms.Source("EmptySource",
0058     firstRun        = cms.untracked.uint32(1),
0059     firstEvent      = cms.untracked.uint32(1)
0060 )
0061 
0062 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0063     PGunParameters = cms.PSet(
0064         PartID = cms.vint32(211),
0065         MinEta = cms.double(-5.5),
0066         MaxEta = cms.double(5.5),
0067         MinPhi = cms.double(-3.14159265359),
0068         MaxPhi = cms.double(3.14159265359),
0069         MinE   = cms.double(99.99),
0070         MaxE   = cms.double(100.01)
0071     ),
0072     Verbosity       = cms.untracked.int32(0),
0073     AddAntiParticle = cms.bool(False)
0074 )
0075 
0076 process.output = cms.OutputModule("PoolOutputModule",
0077     process.FEVTSIMEventContent,
0078     fileName = cms.untracked.string('simevent.root')
0079 )
0080 
0081 process.Timing = cms.Service("Timing")
0082 
0083 process.Tracer = cms.Service("Tracer")
0084 
0085 process.generation_step = cms.Path(process.pgen)
0086 process.simulation_step = cms.Path(process.psim)
0087 process.out_step = cms.EndPath(process.output)
0088 
0089 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0090 process.g4SimHits.G4Commands = ['/tracking/verbose 1']
0091 process.common_maximum_timex = cms.PSet(
0092     MaxTrackTime  = cms.double(1000.0),
0093     MaxTimeNames  = cms.vstring(),
0094     MaxTrackTimes = cms.vdouble(),
0095     DeadRegions   = cms.vstring(),
0096     CriticalEnergyForVacuum = cms.double(2.0),
0097     CriticalDensity         = cms.double(1e-15)
0098 )
0099 process.g4SimHits.StackingAction = cms.PSet(
0100     process.common_heavy_suppression,
0101     process.common_maximum_timex,
0102     TrackNeutrino = cms.bool(False),
0103     KillDeltaRay  = cms.bool(False),
0104     KillHeavy     = cms.bool(False),
0105     KillGamma     = cms.bool(False),
0106     GammaThreshold= cms.double(0.0001),  ## (MeV)
0107     SaveFirstLevelSecondary = cms.untracked.bool(True),
0108     SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
0109     SavePrimaryDecayProductsAndConversionsInCalo    = cms.untracked.bool(True),
0110     SavePrimaryDecayProductsAndConversionsInMuon    = cms.untracked.bool(True),
0111         RusRoGammaEnergyLimit  = cms.double(5.0), ## (MeV)
0112         RusRoEcalGamma         = cms.double(0.3),
0113         RusRoHcalGamma         = cms.double(0.3),
0114         RusRoMuonIronGamma     = cms.double(0.3),
0115         RusRoPreShowerGamma    = cms.double(0.3),
0116         RusRoCastorGamma       = cms.double(0.3),
0117         RusRoWorldGamma        = cms.double(0.3),
0118         RusRoNeutronEnergyLimit= cms.double(10.0), ## (MeV)
0119         RusRoEcalNeutron       = cms.double(0.1),
0120         RusRoHcalNeutron       = cms.double(0.1),
0121         RusRoMuonIronNeutron   = cms.double(0.1),
0122         RusRoPreShowerNeutron  = cms.double(0.1),
0123         RusRoCastorNeutron     = cms.double(0.1),
0124         RusRoWorldNeutron      = cms.double(0.1),
0125         RusRoProtonEnergyLimit = cms.double(0.0),
0126         RusRoEcalProton        = cms.double(1.0),
0127         RusRoHcalProton        = cms.double(1.0),
0128         RusRoMuonIronProton    = cms.double(1.0),
0129         RusRoPreShowerProton   = cms.double(1.0),
0130         RusRoCastorProton      = cms.double(1.0),
0131         RusRoWorldProton       = cms.double(1.0)
0132 )
0133 process.g4SimHits.SteppingAction = cms.PSet(
0134     process.common_maximum_timex,
0135     EkinNames               = cms.vstring('FixedShield01','FixedShield02','FixedShield03','FixedShield04','FixedShield05','FixedShield06','FixedShield07','FixedShield08','FixedShield09','FixedShield10'),
0136     EkinThresholds          = cms.vdouble(0.1,0.1,10.0,10.0),
0137     EkinParticles           = cms.vstring('e+','e-','pi+','pi-'),
0138     Verbosity               = cms.untracked.int32(2)
0139 )
0140 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0141     CheckForHighEtPhotons = cms.untracked.bool(False),
0142     TrackMin     = cms.untracked.int32(0),
0143     TrackMax     = cms.untracked.int32(0),
0144     TrackStep    = cms.untracked.int32(1),
0145     EventMin     = cms.untracked.int32(0),
0146     EventMax     = cms.untracked.int32(0),
0147     EventStep    = cms.untracked.int32(1),
0148     PDGids       = cms.untracked.vint32(),
0149     VerboseLevel = cms.untracked.int32(0),
0150     G4Verbose    = cms.untracked.bool(True),
0151     DEBUG        = cms.untracked.bool(False),
0152     type      = cms.string('TrackingVerboseAction')
0153 ))
0154 
0155 # Schedule definition
0156 process.schedule = cms.Schedule(process.generation_step,
0157                                 process.simulation_step,
0158                                 process.out_step
0159                                 )
0160 
0161 # filter all path with the production filter sequence 
0162 for path in process.paths:
0163         getattr(process,path)._seq = process.generator * getattr(process,path)._seq