Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CaloTest")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 
0008 process.load("Geometry.CMSCommonData.cmsAllGeometryXML_cfi")
0009 
0010 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0011 
0012 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0013 
0014 process.load("Configuration.StandardSequences.MagneticField_cff")
0015 
0016 process.load("SimG4Core.Application.g4SimHits_cfi")
0017 
0018 process.MessageLogger = cms.Service("MessageLogger",
0019     debugModules = cms.untracked.vstring('*'),
0020     cout = cms.untracked.PSet(
0021         threshold = cms.untracked.string('DEBUG'),
0022         default = cms.untracked.PSet(
0023             limit = cms.untracked.int32(0)
0024         ),
0025         CheckSecondary = cms.untracked.PSet(
0026             limit = cms.untracked.int32(-1)
0027         ),
0028         SimG4CoreApplication = cms.untracked.PSet(
0029             limit = cms.untracked.int32(-1)
0030         )
0031     ),
0032     categories = cms.untracked.vstring('SimG4CoreApplication', 
0033         'CheckSecondary'),
0034     destinations = cms.untracked.vstring('cout')
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(1)
0039 )
0040 
0041 process.source = cms.Source("EmptySource")
0042 
0043 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0044     PGunParameters = cms.PSet(
0045         MinEta = cms.double(0.0),
0046         MaxEta = cms.double(0.0),
0047         MinPhi = cms.double(1.57079632679),
0048         MaxPhi = cms.double(1.57079632679),
0049         PartID = cms.vint32(211),
0050         MinE   = cms.double(10.00),
0051         MaxE   = cms.double(10.00)
0052     ),
0053     Verbosity = cms.untracked.int32(0),
0054     AddAntiParticle = cms.bool(False),
0055     firstRun        = cms.untracked.uint32(1)
0056 )
0057 
0058 process.Timing = cms.Service("Timing")
0059 
0060 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0061     moduleSeeds = cms.PSet(
0062         generator = cms.untracked.uint32(456789),
0063         g4SimHits = cms.untracked.uint32(9876),
0064         VtxSmeared = cms.untracked.uint32(123456789)
0065     ),
0066     sourceSeed = cms.untracked.uint32(135799753)
0067 )
0068 
0069 process.op = cms.OutputModule("PoolOutputModule",
0070     fileName = cms.untracked.string('simevent.root')
0071 )
0072 
0073 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.g4SimHits)
0074 process.outpath = cms.EndPath(process.op)
0075 process.common_maximum_timex = cms.PSet(
0076     MaxTrackTime  = cms.double(1000.0),
0077     MaxTimeNames  = cms.vstring(),
0078     MaxTrackTimes = cms.vdouble()
0079 )
0080 process.VtxSmeared.SigmaX = 0.00001
0081 process.VtxSmeared.SigmaY = 0.00001
0082 process.VtxSmeared.SigmaZ = 0.00001
0083 process.g4SimHits.UseMagneticField = False
0084 process.g4SimHits.Physics.type     = 'SimG4Core/Physics/QGSP_EMV'
0085 process.g4SimHits.StackingAction = cms.PSet(
0086     process.common_maximum_timex,
0087     TrackNeutrino    = cms.bool(False),
0088     KillHeavy        = cms.bool(True),
0089     KillDeltaRay     = cms.bool(False),
0090     NeutronThreshold = cms.double(100.0),
0091     ProtonThreshold  = cms.double(100.0),
0092     IonThreshold     = cms.double(100.0),
0093     SaveFirstLevelSecondary = cms.untracked.bool(False),
0094     SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
0095     SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(False),
0096     SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(False)
0097 )
0098 process.g4SimHits.SteppingAction = cms.PSet(
0099     process.common_maximum_timex,
0100     KillBeamPipe            = cms.bool(True),
0101     CriticalEnergyForVacuum = cms.double(2.0),
0102     CriticalDensity         = cms.double(1e-15),
0103     EkinNames               = cms.vstring(),
0104     EkinThresholds          = cms.vdouble(),
0105     EkinParticles           = cms.vstring(),
0106     Verbosity = cms.untracked.int32(0)
0107 )
0108 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0109     StoreSecondary = cms.PSet(
0110         Verbosity = cms.untracked.int32(2),
0111         MinimumDeltaE = cms.untracked.double(50.0),
0112         KillAfter = cms.untracked.int32(1)
0113     ),
0114     type = cms.string('StoreSecondary')
0115 ))
0116