Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Generator.Pythia8CommonSettings_cfi import *
0003 from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
0004 
0005 generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
0006                          pythiaHepMCVerbosity = cms.untracked.bool(False),
0007                          maxEventsToPrint = cms.untracked.int32(0),
0008                          pythiaPylistVerbosity = cms.untracked.int32(1),
0009                          filterEfficiency = cms.untracked.double(0.056),
0010                          crossSection = cms.untracked.double(1189000.),
0011                          comEnergy = cms.double(8000.0),  # center of mass energy in GeV
0012                          PythiaParameters = cms.PSet(
0013         pythia8CommonSettingsBlock,
0014         pythia8CUEP8M1SettingsBlock,
0015         processParameters = cms.vstring(
0016             'HardQCD:all = on',
0017             'PhaseSpace:pTHatMin = 80.',
0018             'PhaseSpace:pTHatMax = 170.'
0019             ),
0020         parameterSets = cms.vstring('pythia8CommonSettings',
0021                                     'pythia8CUEP8M1Settings',
0022                                     'processParameters',
0023                                     )
0024         )
0025                          )
0026 
0027 # if you need some filter modules define and configure them here
0028 genParticlesForFilter = cms.EDProducer("GenParticleProducer",
0029                                        saveBarCodes = cms.untracked.bool(True),
0030                                        src = cms.InputTag("generator", "unsmeared"),
0031                                        abortOnUnknownPDGCode = cms.untracked.bool(True)
0032                                        )
0033 
0034 bctoefilter = cms.EDFilter("BCToEFilter",
0035                            filterAlgoPSet = cms.PSet(maxAbsEta = cms.double(2.5),
0036                                                      eTThreshold = cms.double(1),
0037                                                      genParSource = cms.InputTag("genParticlesForFilter")
0038                                                      )
0039                            )
0040 
0041 
0042 # enter below the configuration metadata (only a description is needed, the rest is filled in by cvs)
0043 configurationMetadata = cms.untracked.PSet(
0044     version = cms.untracked.string('$Revision: 1.1 $'),
0045     name = cms.untracked.string('$Source: Configuration/Generator/python/QCD_Pt_80_170_BCtoE_8TeV_TuneCUETP8M1_cfi.py $'),
0046     annotation = cms.untracked.string('b/c->e filtered QCD pthat 80-170, 8 TeV')
0047     )
0048 
0049 # add your filters to this sequence
0050 ProductionFilterSequence = cms.Sequence(generator * (genParticlesForFilter + bctoefilter))