|
| 1 | +# Auto generated configuration file |
| 2 | +# using: |
| 3 | +# Revision: 1.381.2.28 |
| 4 | +# Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v |
| 5 | +# with command line options: ana/BToKMuMu/python/PYTHIA6_Bu2MuMuK_TuneZ2star_8TeV_GEN_cff.py --step GEN --beamspot Realistic8TeVCollision --conditions START53_LV6A1::All --pileup NoPileUp --datamix NODATAMIXER --eventcontent RAWSIM --datatier GEN --no_exec -n 10 --fileout BToKMuMu_MC_OnlyGEN_8TeV.root --python_filename PYTHIA6_Bu2MuMuK_TuneZ2star_8TeV_GENOnly.py |
| 6 | +import FWCore.ParameterSet.Config as cms |
| 7 | + |
| 8 | +process = cms.Process('GEN') |
| 9 | + |
| 10 | +# import of standard configurations |
| 11 | +process.load('Configuration.StandardSequences.Services_cff') |
| 12 | +process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') |
| 13 | +process.load('FWCore.MessageService.MessageLogger_cfi') |
| 14 | +process.load('Configuration.EventContent.EventContent_cff') |
| 15 | +process.load('SimGeneral.MixingModule.mixNoPU_cfi') |
| 16 | +process.load('Configuration.StandardSequences.GeometryRecoDB_cff') |
| 17 | +process.load('Configuration.StandardSequences.MagneticField_38T_cff') |
| 18 | +process.load('Configuration.StandardSequences.Generator_cff') |
| 19 | +process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi') |
| 20 | +process.load('GeneratorInterface.Core.genFilterSummary_cff') |
| 21 | +process.load('Configuration.StandardSequences.EndOfProcess_cff') |
| 22 | +process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') |
| 23 | + |
| 24 | +process.maxEvents = cms.untracked.PSet( |
| 25 | + input = cms.untracked.int32(10) |
| 26 | +) |
| 27 | + |
| 28 | +# Input source |
| 29 | +process.source = cms.Source("EmptySource") |
| 30 | + |
| 31 | +process.options = cms.untracked.PSet( |
| 32 | + |
| 33 | +) |
| 34 | + |
| 35 | +# Production Info |
| 36 | +process.configurationMetadata = cms.untracked.PSet( |
| 37 | + version = cms.untracked.string('$Revision: 1.1 $'), |
| 38 | + annotation = cms.untracked.string('B+ -> mu+ mu- K+ at 8TeV'), |
| 39 | + name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/Configuration/GenProduction/python/EightTeV/PYTHIA6_Bu2MuMuK_TuneZ2star_8TeV_cff.py,v $') |
| 40 | +) |
| 41 | + |
| 42 | +# Output definition |
| 43 | + |
| 44 | +process.RAWSIMoutput = cms.OutputModule("PoolOutputModule", |
| 45 | + splitLevel = cms.untracked.int32(0), |
| 46 | + eventAutoFlushCompressedSize = cms.untracked.int32(5242880), |
| 47 | + outputCommands = process.RAWSIMEventContent.outputCommands, |
| 48 | + fileName = cms.untracked.string('BToKMuMu_MC_OnlyGEN_8TeV.root'), |
| 49 | + dataset = cms.untracked.PSet( |
| 50 | + filterName = cms.untracked.string(''), |
| 51 | + dataTier = cms.untracked.string('GEN') |
| 52 | + ), |
| 53 | + SelectEvents = cms.untracked.PSet( |
| 54 | + SelectEvents = cms.vstring('generation_step') |
| 55 | + ) |
| 56 | +) |
| 57 | + |
| 58 | +# Additional output definition |
| 59 | + |
| 60 | +# Other statements |
| 61 | +process.genstepfilter.triggerConditions=cms.vstring("generation_step") |
| 62 | +from Configuration.AlCa.GlobalTag import GlobalTag |
| 63 | +process.GlobalTag = GlobalTag(process.GlobalTag, 'START53_LV6A1::All', '') |
| 64 | + |
| 65 | +process.decayfilter = cms.EDFilter("PythiaDauVFilter", |
| 66 | + MinPt = cms.untracked.vdouble(-1.0, 0, 0), |
| 67 | + ParticleID = cms.untracked.int32(521), |
| 68 | + MaxEta = cms.untracked.vdouble(9999.0, 9999, 9999), |
| 69 | + MinEta = cms.untracked.vdouble(-9999.0, -9999, -9999), |
| 70 | + DaughterIDs = cms.untracked.vint32(321, -13, 13), |
| 71 | + NumberDaughters = cms.untracked.int32(3), |
| 72 | + verbose = cms.untracked.int32(0) |
| 73 | +) |
| 74 | + |
| 75 | + |
| 76 | +process.bfilter = cms.EDFilter("PythiaFilter", |
| 77 | + MaxEta = cms.untracked.double(9999.0), |
| 78 | + MinEta = cms.untracked.double(-9999.0), |
| 79 | + ParticleID = cms.untracked.int32(521) |
| 80 | +) |
| 81 | + |
| 82 | + |
| 83 | +process.generator = cms.EDFilter("Pythia6GeneratorFilter", |
| 84 | + ExternalDecays = cms.PSet( |
| 85 | + EvtGen = cms.untracked.PSet( |
| 86 | + use_default_decay = cms.untracked.bool(False), |
| 87 | + decay_table = cms.FileInPath('GeneratorInterface/ExternalDecays/data/DECAY_NOLONGLIFE.DEC'), |
| 88 | + particle_property_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/evt.pdl'), |
| 89 | + user_decay_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/Bu_mumuK.dec'), |
| 90 | + list_forced_decays = cms.vstring('MyB+', |
| 91 | + 'MyB-'), |
| 92 | + operates_on_particles = cms.vint32(0) |
| 93 | + ), |
| 94 | + parameterSets = cms.vstring('EvtGen') |
| 95 | + ), |
| 96 | + pythiaPylistVerbosity = cms.untracked.int32(0), |
| 97 | + filterEfficiency = cms.untracked.double(0.003), |
| 98 | + pythiaHepMCVerbosity = cms.untracked.bool(False), |
| 99 | + comEnergy = cms.double(8000.0), |
| 100 | + crossSection = cms.untracked.double(48440000000.0), |
| 101 | + maxEventsToPrint = cms.untracked.int32(0), |
| 102 | + PythiaParameters = cms.PSet( |
| 103 | + pythiaUESettings = cms.vstring('MSTU(21)=1 ! Check on possible errors during program execution', |
| 104 | + 'MSTJ(22)=2 ! Decay those unstable particles', |
| 105 | + 'PARJ(71)=10 . ! for which ctau 10 mm', |
| 106 | + 'MSTP(33)=0 ! no K factors in hard cross sections', |
| 107 | + 'MSTP(2)=1 ! which order running alphaS', |
| 108 | + 'MSTP(51)=10042 ! structure function chosen (external PDF CTEQ6L1)', |
| 109 | + 'MSTP(52)=2 ! work with LHAPDF', |
| 110 | + 'PARP(82)=1.921 ! pt cutoff for multiparton interactions', |
| 111 | + 'PARP(89)=1800. ! sqrts for which PARP82 is set', |
| 112 | + 'PARP(90)=0.227 ! Multiple interactions: rescaling power', |
| 113 | + 'MSTP(95)=6 ! CR (color reconnection parameters)', |
| 114 | + 'PARP(77)=1.016 ! CR', |
| 115 | + 'PARP(78)=0.538 ! CR', |
| 116 | + 'PARP(80)=0.1 ! Prob. colored parton from BBR', |
| 117 | + 'PARP(83)=0.356 ! Multiple interactions: matter distribution parameter', |
| 118 | + 'PARP(84)=0.651 ! Multiple interactions: matter distribution parameter', |
| 119 | + 'PARP(62)=1.025 ! ISR cutoff', |
| 120 | + 'MSTP(91)=1 ! Gaussian primordial kT', |
| 121 | + 'PARP(93)=10.0 ! primordial kT-max', |
| 122 | + 'MSTP(81)=21 ! multiple parton interactions 1 is Pythia default', |
| 123 | + 'MSTP(82)=4 ! Defines the multi-parton model'), |
| 124 | + bbbarSettings = cms.vstring('MSEL = 1'), |
| 125 | + parameterSets = cms.vstring('pythiaUESettings', |
| 126 | + 'bbbarSettings') |
| 127 | + ) |
| 128 | +) |
| 129 | + |
| 130 | + |
| 131 | +process.ProductionFilterSequence = cms.Sequence(process.generator+process.bfilter+process.decayfilter) |
| 132 | + |
| 133 | +# Path and EndPath definitions |
| 134 | +process.generation_step = cms.Path(process.pgen) |
| 135 | +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) |
| 136 | +process.endjob_step = cms.EndPath(process.endOfProcess) |
| 137 | +process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput) |
| 138 | + |
| 139 | +# Schedule definition |
| 140 | +process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step) |
| 141 | +# filter all path with the production filter sequence |
| 142 | +for path in process.paths: |
| 143 | + getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq |
| 144 | + |
0 commit comments