Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-07 00:41:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GEN")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 # control point for all seeds
0007 #
0008 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0009 
0010 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0011 
0012 process.load("GeneratorInterface.Pythia6Interface.pythiaDefault_cff")
0013 
0014 process.load("Configuration.EventContent.EventContent_cff")
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1000)
0018 )
0019 process.options = cms.untracked.PSet(
0020     wantSummary = cms.untracked.bool(True)
0021 )
0022 process.configurationMetadata = cms.untracked.PSet(
0023     version = cms.untracked.string(''),
0024     name = cms.untracked.string(''),
0025     annotation = cms.untracked.string('generation of D*, with LongLived filter applied')
0026 )
0027 process.source = cms.Source("EmptySource")
0028 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0029     Ptmax = cms.untracked.double(200.0),
0030     pythiaPylistVerbosity = cms.untracked.int32(0),
0031     ymax = cms.untracked.double(10.0),
0032     ParticleID = cms.untracked.int32(413),
0033     pythiaHepMCVerbosity = cms.untracked.bool(False),
0034     DoubleParticle = cms.untracked.bool(False),
0035     Ptmin = cms.untracked.double(200.0),
0036     ymin = cms.untracked.double(-10.0),
0037     maxEventsToPrint = cms.untracked.int32(0),
0038     comEnergy = cms.double(10000.0),
0039     PythiaParameters = cms.PSet(
0040         process.pythiaDefaultBlock,
0041         # User cards - name is "myParameters"                                
0042         # Pythia's random generator initialization                           
0043         myParameters = cms.vstring('MDCY(123,2) = 738', 
0044             'MDCY(123,3) = 1', 
0045             'MDCY(122,2) = 705', 
0046             'MDCY(122,3) = 1'),
0047         # This is a vector of ParameterSet names to be read, in this order   
0048         # The first two are in the include files below                       
0049         # The last one are simply my additional parameters                   
0050         parameterSets = cms.vstring('pythiaDefault', 
0051             'myParameters')
0052     )
0053 )
0054 
0055 process.select = cms.EDFilter("MCDisplacementFilter",
0056     ParticleIDs = cms.vint32(310),
0057     LengMin = cms.double(0.), ## in mm
0058     LengMax = cms.double(100.), ## in mm
0059 
0060 )
0061 
0062 process.out = cms.OutputModule("PoolOutputModule",
0063     process.FEVTSIMEventContent,
0064     fileName = cms.untracked.string('dstardecay.root'),
0065     SelectEvents = cms.untracked.PSet(
0066         SelectEvents = cms.vstring('p1')
0067     ),
0068     dataset = cms.untracked.PSet(
0069         dataTier = cms.untracked.string('GEN')
0070     )
0071 )
0072 process.genParticles = cms.EDProducer("GenParticleProducer",
0073                   src = cms.InputTag("generator","unsmeared")
0074 )
0075 
0076 
0077 process.p1 = cms.Path(process.generator*process.select*process.genParticles)
0078 process.outpath = cms.EndPath(process.out)
0079 process.schedule = cms.Schedule(process.p1,process.outpath)
0080 
0081 process.generator.pythiaPylistVerbosity = 0
0082 process.generator.maxEventsToPrint = 10
0083 process.generator.pythiaHepMCVerbosity = True
0084 
0085