1 import FWCore.ParameterSet.Config
as cms
3 prunedGenParticles = cms.EDProducer(
"GenParticlePruner",
4 src = cms.InputTag(
"genParticles"),
7 "++keep abs(pdgId) == 11 || abs(pdgId) == 13 || abs(pdgId) == 15",
8 "keep abs(pdgId) == 12 || abs(pdgId) == 14 || abs(pdgId) == 16",
10 "+keep pdgId == 22 && status == 1 && (pt > 10 || isPromptFinalState())",
11 "+keep abs(pdgId) == 11 && status == 1 && (pt > 3 || isPromptFinalState())",
12 "keep++ abs(pdgId) == 15",
13 "drop status > 30 && status < 70 ",
14 "drop pdgId == 21 && pt < 5",
15 "drop status == 2 && abs(pdgId) == 21",
16 "keep abs(pdgId) == 23 || abs(pdgId) == 24 || abs(pdgId) == 25 || abs(pdgId) == 6 || abs(pdgId) == 37 ",
17 "keep abs(pdgId) == 310 && abs(eta) < 2.5 && pt > 1 ",
18 "+keep abs(pdgId) == 13 && status == 1",
20 "keep (4 <= abs(pdgId) <= 5)",
22 "keep (1 <= abs(pdgId) <= 3 || pdgId = 21) & (status = 2 || status = 11 || status = 71 || status = 72) && pt>5",
24 "keep (400 < abs(pdgId) < 600) || (4000 < abs(pdgId) < 6000)",
26 "keep abs(pdgId) == 443 || abs(pdgId) == 100443 || abs(pdgId) == 10441 || abs(pdgId) == 20443 || abs(pdgId) == 445 || abs(pdgId) == 30443",
27 "keep abs(pdgId) == 553 || abs(pdgId) == 100553 || abs(pdgId) == 200553 || abs(pdgId) == 10551 || abs(pdgId) == 20553 || abs(pdgId) == 555",
29 "keep abs(pdgId) = 10411 || abs(pdgId) = 10421 || abs(pdgId) = 10413 || abs(pdgId) = 10423 || abs(pdgId) = 20413 || abs(pdgId) = 20423 || abs(pdgId) = 10431 || abs(pdgId) = 10433 || abs(pdgId) = 20433",
31 "keep abs(pdgId) = 10511 || abs(pdgId) = 10521 || abs(pdgId) = 10513 || abs(pdgId) = 10523 || abs(pdgId) = 20513 || abs(pdgId) = 20523 || abs(pdgId) = 10531 || abs(pdgId) = 10533 || abs(pdgId) = 20533 || abs(pdgId) = 10541 || abs(pdgId) = 10543 || abs(pdgId) = 20543",
33 "keep (1000001 <= abs(pdgId) <= 1000039 ) || ( 2000001 <= abs(pdgId) <= 2000015)",
36 "keep status == 3 || ( 21 <= status <= 29) || ( 11 <= status <= 19)",
37 "keep isHardProcess() || fromHardProcessFinalState() || fromHardProcessDecayed() || fromHardProcessBeforeFSR() || (statusFlags().fromHardProcess() && statusFlags().isLastCopy())",