Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-07-05 03:36:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TQAF")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8PtGun",
0011     PGunParameters = cms.PSet(
0012         AddAntiParticle = cms.bool(True),
0013         MaxEta = cms.double(2.5),
0014         MaxPhi = cms.double(3.14159265359),
0015         MaxPt = cms.double(10.01),
0016         MinEta = cms.double(-2.5),
0017         MinPhi = cms.double(-3.14159265359),
0018         MinPt = cms.double(9.99),
0019         ParticleID = cms.vint32(11)
0020     ),
0021     PythiaParameters = cms.PSet(
0022         parameterSets = cms.vstring()
0023     ),
0024     Verbosity = cms.untracked.int32(0),
0025     firstRun = cms.untracked.uint32(1),
0026     psethack = cms.string('single electron pt 10')
0027 )
0028 
0029 process.genParticles = cms.EDProducer("GenParticleProducer",
0030     abortOnUnknownPDGCode = cms.untracked.bool(False),
0031     saveBarCodes = cms.untracked.bool(True),
0032     src = cms.InputTag("generator:unsmeared")
0033 )
0034 
0035 
0036 ## define maximal number of events to loop over
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(100)
0039 )
0040 ## configure process options
0041 process.options = cms.untracked.PSet(
0042     allowUnscheduled = cms.untracked.bool(True),
0043     wantSummary      = cms.untracked.bool(True)
0044 )
0045 
0046 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0047 process.load("GeneratorInterface.RivetInterface.genParticles2HepMC_cfi")
0048 process.load("GeneratorInterface.RivetInterface.particleLevel_cfi")
0049 process.particleLevel.src = cms.InputTag("genParticles2HepMC:unsmeared")
0050 
0051 process.path = cms.Path(process.generator*process.genParticles*process.genParticles2HepMC*process.particleLevel)
0052 
0053 process.out = cms.OutputModule("PoolOutputModule",
0054     fileName = cms.untracked.string("particleLevel.root"),
0055     outputCommands = cms.untracked.vstring(
0056         "drop *",
0057         "keep *_genParticles_*_*",
0058         "keep *_particleLevel_*_*",
0059     ),
0060 )
0061 process.outPath = cms.EndPath(process.out)