Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:33

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                 'Define betas   0.015',
0020                 'Define Apara   0.475',
0021                 'Define Azero   0.724',
0022                 'Define Aperp   0.500',
0023                 'Define pApara  3.26',
0024                 'Define pAzero  0.0',
0025                 'Define pAperp  3.08',
0026                 '#',
0027                 'Alias      MyBs    B_s0',
0028                 'Alias      Myanti-Bs   anti-B_s0',
0029                 'ChargeConj Myanti-Bs   MyBs',
0030                 '#',
0031                 'Alias      MyJ/psi  J/psi',
0032                 'Alias      MyPhi    phi',
0033                 'ChargeConj MyJ/psi  MyJ/psi',
0034                 'ChargeConj MyPhi    MyPhi',
0035                 '#',
0036                 'Decay MyBs',
0037                   '1.000         MyJ/psi     MyPhi        PVV_CPLH betas 1 Apara pApara Azero pAzero Aperp pAperp;',
0038                 '#',
0039                 'Enddecay',
0040                 'Decay Myanti-Bs',
0041                   '1.000         MyJ/psi     MyPhi        PVV_CPLH betas 1 Apara pApara Azero pAzero Aperp pAperp;',
0042                 'Enddecay',
0043                 '#',
0044                 'Decay MyJ/psi',
0045                   '1.000         mu+         mu-          PHOTOS VLL;',
0046                 'Enddecay',
0047                 '#',
0048                 'Decay MyPhi',
0049                   '1.000         K+          K-           VSS;',
0050                 'Enddecay',
0051                 'End'
0052             ), 
0053             list_forced_decays = cms.vstring('MyBs','Myanti-Bs'),
0054             operates_on_particles = cms.vint32(),
0055         ),
0056         parameterSets = cms.vstring('EvtGen130')
0057     ),
0058     PythiaParameters = cms.PSet(pythia8CommonSettingsBlock,
0059         pythia8CP5SettingsBlock,
0060         processParameters = cms.vstring(
0061             "SoftQCD:nonDiffractive = on",
0062             'PTFilter:filter = on', # this turn on the filter

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

0064             'PTFilter:scaleToFilter = 1.0'
0065         ),
0066         parameterSets = cms.vstring('pythia8CommonSettings',
0067             'pythia8CP5Settings',
0068             'processParameters',
0069         )
0070     )
0071 )
0072 
0073 generator.PythiaParameters.processParameters.extend(EvtGenExtraParticles)
0074 
0075 configurationMetadata = cms.untracked.PSet(
0076     version = cms.untracked.string('$Revision: 1.0 $'),
0077     name = cms.untracked.string('$Source: /Configuration/Generator/pythonBsJpsiPhi_mumuKK_PhaseII_cfipy $'),
0078     annotation = cms.untracked.string('PhaseII: Pythia8+EvtGen130 generation of Bs --> Jpsi phi (mu mu KK), 14TeV, Tune CP5')
0079 )
0080 
0081 bfilter = cms.EDFilter(
0082     "PythiaFilter",
0083     MaxEta = cms.untracked.double(9999.),
0084     MinEta = cms.untracked.double(-9999.),
0085     ParticleID = cms.untracked.int32(531)
0086 )
0087 
0088 jpsifilter = cms.EDFilter(
0089     "PythiaDauVFilter",
0090     MotherID = cms.untracked.int32(531),
0091     ParticleID = cms.untracked.int32(443),
0092     NumberDaughters = cms.untracked.int32(2),
0093     DaughterIDs = cms.untracked.vint32(13, -13),
0094     MinPt = cms.untracked.vdouble(2.5, 2.5),
0095     MinEta = cms.untracked.vdouble(-2.9, -2.9),
0096     MaxEta = cms.untracked.vdouble(2.9, 2.9),
0097     verbose = cms.untracked.int32(1)
0098 )
0099 
0100 phifilter = cms.EDFilter(
0101     "PythiaDauVFilter",
0102     MotherID = cms.untracked.int32(531),
0103     ParticleID = cms.untracked.int32(333),
0104     NumberDaughters = cms.untracked.int32(2),
0105     DaughterIDs = cms.untracked.vint32(321, -321),
0106     MinPt = cms.untracked.vdouble(0.4, 0.4),
0107     MinEta = cms.untracked.vdouble(-4.1, -4.1),
0108     MaxEta = cms.untracked.vdouble(4.1, 4.1),
0109     verbose = cms.untracked.int32(1)
0110 )
0111 
0112 ProductionFilterSequence = cms.Sequence(generator*bfilter*jpsifilter*phifilter)