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                 'Alias      MyJpsi   J/psi',
0024                 'ChargeConj MyJpsi   MyJpsi',
0025                 '#',
0026                 'Decay MyBs',
0027                 '1.000      MyJpsi    gamma              SVP_HELAMP 1.0 0.0 1.0 0.0;',
0028                 'Enddecay',
0029                 'CDecay Myanti-Bs',
0030                 '#',
0031                 'Decay MyJpsi',
0032                 '1.000  mu+       mu-     PHOTOS VLL;',
0033                 'Enddecay',
0034                 'End'
0035             ), 
0036             list_forced_decays = cms.vstring('MyBs','Myanti-Bs'),
0037             operates_on_particles = cms.vint32(),
0038         ),
0039         parameterSets = cms.vstring('EvtGen130')
0040     ),
0041     PythiaParameters = cms.PSet(pythia8CommonSettingsBlock,
0042         pythia8CP5SettingsBlock,
0043         processParameters = cms.vstring(
0044             "SoftQCD:nonDiffractive = on",
0045             'PTFilter:filter = on', # this turn on the filter

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

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

0077     MinPt           = cms.untracked.vdouble(3.5, 4.0),
0078     MinEta          = cms.untracked.vdouble(-3.5, -2.5),
0079     MaxEta          = cms.untracked.vdouble( 3.5,  2.5)
0080 )
0081 
0082 jpsifilter = cms.EDFilter(
0083     "PythiaDauVFilter",
0084     MotherID = cms.untracked.int32(531),
0085     ParticleID = cms.untracked.int32(443),
0086     NumberDaughters = cms.untracked.int32(2),
0087     DaughterIDs = cms.untracked.vint32(13, -13),
0088     MinPt = cms.untracked.vdouble(2.5, 2.5),
0089     MinEta = cms.untracked.vdouble(-2.9, -2.9),
0090     MaxEta = cms.untracked.vdouble(2.9, 2.9),
0091     verbose = cms.untracked.int32(1)
0092 )
0093 
0094 ProductionFilterSequence = cms.Sequence(generator*decayfilter*jpsifilter)