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 from Configuration.Generator.Pythia8CommonSettings_cfi import *
0003 from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
0004 from GeneratorInterface.EvtGenInterface.EvtGenSetting_cff import *
0005 
0006 generator = cms.EDFilter("Pythia8GeneratorFilter",
0007                          pythiaPylistVerbosity = cms.untracked.int32(0),
0008                          pythiaHepMCVerbosity = cms.untracked.bool(False),
0009                          comEnergy = cms.double(13000.0),
0010                          crossSection = cms.untracked.double(54000000000), # Given by PYTHIA after running
0011                          filterEfficiency = cms.untracked.double(0.004), # Given by PYTHIA after running
0012                          maxEventsToPrint = cms.untracked.int32(0),
0013                          ExternalDecays = cms.PSet(
0014         EvtGen130 = cms.untracked.PSet(
0015             decay_table = cms.string('GeneratorInterface/EvtGenInterface/data/DECAY_2010.DEC'),
0016             particle_property_file = cms.FileInPath('GeneratorInterface/EvtGenInterface/data/evt.pdl'),
0017           #  user_decay_file = cms.untracked.bool(True),
0018             user_decay_file = cms.vstring('GeneratorInterface/ExternalDecays/data/Bu_Kstarmumu_Kspi.dec'),
0019             list_forced_decays = cms.vstring('MyB+','MyB-'),
0020             operates_on_particles = cms.vint32()
0021             ),
0022         parameterSets = cms.vstring('EvtGen130')
0023         ),
0024                          PythiaParameters = cms.PSet(
0025         pythia8CommonSettingsBlock,
0026         pythia8CUEP8M1SettingsBlock,
0027         processParameters = cms.vstring('HardQCD:all = on'),
0028         parameterSets = cms.vstring('pythia8CommonSettings',
0029                                     'pythia8CUEP8M1Settings',
0030                                     'processParameters',
0031                                     )
0032         )
0033                          )
0034 
0035 generator.PythiaParameters.processParameters.extend(EvtGenExtraParticles)
0036 
0037 
0038 
0039 configurationMetadata = cms.untracked.PSet(
0040     version = cms.untracked.string('$Revision: 1.1 $'),
0041     name = cms.untracked.string('$Source: Configuration/Generator/python/BuToKstarMuMu_forSTEAM_13TeV_TuneCUETP8M1_cfi.py $'),
0042     annotation = cms.untracked.string('Summer14: Pythia8+EvtGen130 generation of Bu --> K* Mu+Mu-, 13TeV, Tune CUETP8M1')
0043     )
0044 
0045 ###########
0046 # Filters #
0047 ###########
0048 # Filter only pp events which produce a B+:
0049 bufilter = cms.EDFilter("PythiaFilter", ParticleID = cms.untracked.int32(521))
0050 
0051 # Filter on final state muons
0052 mumugenfilter = cms.EDFilter("MCParticlePairFilter",
0053                              Status = cms.untracked.vint32(1, 1),
0054                              MinPt = cms.untracked.vdouble(2.8, 2.8),
0055                              MaxEta = cms.untracked.vdouble(2.3, 2.3),
0056                              MinEta = cms.untracked.vdouble(-2.3, -2.3),
0057                              ParticleCharge = cms.untracked.int32(-1),
0058                              ParticleID1 = cms.untracked.vint32(13),
0059                              ParticleID2 = cms.untracked.vint32(13)
0060                              )
0061 
0062 ProductionFilterSequence = cms.Sequence(generator*bufilter*mumugenfilter)