Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Generator.Pythia8CommonSettings_cfi import *
0004 from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
0005 from GeneratorInterface.EvtGenInterface.EvtGenSetting_cff import *
0006 
0007 generator = cms.EDFilter("Pythia8GeneratorFilter",
0008     pythiaHepMCVerbosity = cms.untracked.bool(False),
0009     maxEventsToPrint = cms.untracked.int32(0),
0010     pythiaPylistVerbosity = cms.untracked.int32(0),
0011     filterEfficiency = cms.untracked.double(1.38e-3),
0012     crossSection = cms.untracked.double(540000000.),
0013     comEnergy = cms.double(14000.0),
0014     ExternalDecays = cms.PSet(
0015         EvtGen130 = cms.untracked.PSet(
0016             decay_table = cms.string('GeneratorInterface/EvtGenInterface/data/DECAY_2010.DEC'),
0017             particle_property_file = cms.FileInPath('GeneratorInterface/EvtGenInterface/data/evt.pdl'),
0018             user_decay_embedded= cms.vstring(
0019                 '#',
0020                 'Alias      MyBs    B_s0',
0021                 'Alias      Myanti-Bs   anti-B_s0',
0022                 'ChargeConj Myanti-Bs   MyBs',
0023                 '#',
0024                 'Decay MyBs',
0025                 '1.000  e+       e-                     PHOTOS PHSP;',
0026                 'Enddecay',
0027                 '#',
0028                 'Decay Myanti-Bs',
0029                 '1.000  e+       e-                     PHOTOS PHSP;',
0030                 'Enddecay',
0031                 'End'
0032             ), 
0033             list_forced_decays = cms.vstring('MyBs','Myanti-Bs'),
0034             operates_on_particles = cms.vint32(),
0035         ),
0036         parameterSets = cms.vstring('EvtGen130')
0037     ),
0038     PythiaParameters = cms.PSet(pythia8CommonSettingsBlock,
0039         pythia8CP5SettingsBlock,                        
0040         processParameters = cms.vstring(
0041             "SoftQCD:nonDiffractive = on",
0042             'PTFilter:filter = on', # this turn on the filter

0043             'PTFilter:quarkToFilter = 5', # PDG id of q quark

0044             'PTFilter:scaleToFilter = 1.0'
0045         ),
0046         parameterSets = cms.vstring('pythia8CommonSettings',
0047             'pythia8CP5Settings',                        
0048             'processParameters',
0049         )
0050     )
0051 )
0052 
0053 generator.PythiaParameters.processParameters.extend(EvtGenExtraParticles)
0054 
0055 configurationMetadata = cms.untracked.PSet(
0056     version = cms.untracked.string('$Revision: 1.0 $'),
0057     name = cms.untracked.string('$Source: /Configuration/Generator/python/BPH_BsMuMu_PhaseII_cfi.py $'),
0058     annotation = cms.untracked.string('PhaseII: Pythia8+EvtGen130 generation of Bs --> e+e-, 14TeV, Tune CP5')
0059 )
0060 
0061 bfilter = cms.EDFilter(
0062     "PythiaFilter",
0063     MaxEta = cms.untracked.double(9999.),
0064     MinEta = cms.untracked.double(-9999.),
0065     ParticleID = cms.untracked.int32(531)
0066     )
0067 
0068 decayfilter = cms.EDFilter(
0069     "PythiaDauVFilter",
0070     verbose         = cms.untracked.int32(1), 
0071     NumberDaughters = cms.untracked.int32(2), 
0072     ParticleID      = cms.untracked.int32(531),  
0073     DaughterIDs     = cms.untracked.vint32(11, -11),
0074     MinPt           = cms.untracked.vdouble(2.0, 2.0), 
0075     MinEta          = cms.untracked.vdouble(-2.45, -2.45), 
0076     MaxEta          = cms.untracked.vdouble( 2.45,  2.45)
0077     )
0078 
0079 ProductionFilterSequence = cms.Sequence(generator*bfilter*decayfilter)