1 import FWCore.ParameterSet.Config
as cms
8 mergedGenParticles = cms.EDProducer(
"MergedGenParticleProducer",
9 inputPruned = cms.InputTag(
"prunedGenParticles"),
10 inputPacked = cms.InputTag(
"packedGenParticles"),
13 genParticles2HepMC = cms.EDProducer(
"GenParticles2HepMCConverter",
14 genParticles = cms.InputTag(
"mergedGenParticles"),
15 genEventInfo = cms.InputTag(
"generator"),
16 signalParticlePdgIds = cms.vint32(),
19 particleLevel = cms.EDProducer(
"ParticleLevelProducer",
20 src = cms.InputTag(
"genParticles2HepMC:unsmeared"),
22 usePromptFinalStates = cms.bool(
True),
23 excludePromptLeptonsFromJetClustering = cms.bool(
False),
24 excludeNeutrinosFromJetClustering = cms.bool(
True),
26 particleMinPt = cms.double(0.),
27 particleMaxEta = cms.double(5.),
29 lepConeSize = cms.double(0.1),
30 lepMinPt = cms.double(15.),
31 lepMaxEta = cms.double(2.5),
33 jetConeSize = cms.double(0.4),
34 jetMinPt = cms.double(10.),
35 jetMaxEta = cms.double(999.),
37 fatJetConeSize = cms.double(0.8),
38 fatJetMinPt = cms.double(170.),
39 fatJetMaxEta = cms.double(999.),
45 rivetLeptonTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
46 src = cms.InputTag(
"particleLevel:leptons"),
48 name= cms.string(
"GenDressedLepton"),
49 doc = cms.string(
"Dressed leptons from Rivet-based ParticleLevelProducer"),
50 singleton = cms.bool(
False),
51 extension = cms.bool(
False),
54 pdgId =
Var(
"pdgId", int, doc=
"PDG id"),
98 rivetMetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
99 src = cms.InputTag(
"particleLevel:mets"),
100 name = cms.string(
"MET"),
101 doc = cms.string(
"MET from Rivet-based ParticleLevelProducer in fiducial volume abs(eta)<5"),
102 singleton = cms.bool(
True),
103 extension = cms.bool(
True),
104 variables = cms.PSet(
105 fiducialGenPt =
Var(
"pt", float, precision=10),
106 fiducialGenPhi =
Var(
"phi", float, precision=10),
110 particleLevelSequence = cms.Sequence(mergedGenParticles + genParticles2HepMC + particleLevel)
111 particleLevelTables = cms.Sequence(rivetLeptonTable + rivetMetTable)
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)