Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-04 06:14:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8PtAndDxyGun",
0011 
0012     maxEventsToPrint = cms.untracked.int32(1),
0013     pythiaPylistVerbosity = cms.untracked.int32(1),
0014     pythiaHepMCVerbosity = cms.untracked.bool(True),
0015 
0016     PGunParameters = cms.PSet(
0017         ParticleID = cms.vint32(15),
0018         AddAntiParticle = cms.bool(True),
0019         MinPt = cms.double(15.0),
0020         MaxPt = cms.double(300.0),
0021         MinEta = cms.double(-2.5),
0022         MaxEta = cms.double(2.5),
0023         MinPhi = cms.double(-3.14159265359),
0024         MaxPhi = cms.double(3.14159265359),
0025         LxyMax = cms.double(850.0),#make sure most tau generated within 3 outermost tracker layers, Gauss distribution
0026         LzMax = cms.double(2100.0),#make sure most taus generated within 3 outemost tracker layers, Gauss distribution
0027         ConeRadius = cms.double(1000.0),
0028         ConeH = cms.double(3000.0),
0029         DistanceToAPEX = cms.double(850.0),
0030         dxyMin = cms.double(0.0),
0031         dxyMax = cms.double(500.0)
0032     ),
0033 
0034     Verbosity = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0035     psethack = cms.string('displaced taus'),
0036     firstRun = cms.untracked.uint32(1),
0037 
0038     PythiaParameters = cms.PSet(
0039         parameterSets = cms.vstring()  
0040     )
0041 )
0042 
0043 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0044 process.MessageLogger = cms.Service("MessageLogger",
0045     cerr = cms.untracked.PSet(
0046         enable = cms.untracked.bool(False)
0047     ),
0048     cout = cms.untracked.PSet(
0049         default = cms.untracked.PSet(
0050             limit = cms.untracked.int32(2)
0051         ),
0052         enable = cms.untracked.bool(True)
0053     )
0054 )
0055 
0056 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0057     generator = cms.PSet(
0058         initialSeed = cms.untracked.uint32(123456789),
0059         engineName = cms.untracked.string('HepJamesRandom')
0060     )
0061 )
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(10)
0065 )
0066 
0067 process.GENoutput = cms.OutputModule("PoolOutputModule",
0068     fileName = cms.untracked.string('Py8PtAndDxyGun_displacedTaus.root')
0069 )
0070 
0071 process.p = cms.Path(process.generator)
0072 process.outpath = cms.EndPath(process.GENoutput)
0073 
0074 process.schedule = cms.Schedule(process.p, process.outpath)