Skip to content

Commit

Permalink
Merge pull request cms-sw#128 from arizzi/sisters
Browse files Browse the repository at this point in the history
raise pt thrshold for VH SA
  • Loading branch information
arizzi committed Jul 22, 2015
2 parents 0b28068 + e814d60 commit cde07ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions VHbbAnalysis/Heppy/python/VHGeneratorAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def makeMCInfo(self, event):
print ""

event.genHiggsBoson = []
event.genHiggsSisters = []
event.genleps = []
event.gentauleps = []
event.gentaus = []
Expand Down Expand Up @@ -175,6 +176,10 @@ def makeMCInfo(self, event):


higgsBosons = [ p for p in event.genParticles if (p.pdgId() == 25) and p.numberOfDaughters() > 0 and abs(p.daughter(0).pdgId()) != 25 ]
higgsBosonsFirst = [ p for p in event.genParticles if (p.pdgId() == 25) and p.numberOfMothers() > 0 and abs(p.mother(0).pdgId()) != 25 ]
higgsMothers = [x.mother(0) for x in higgsBosonsFirst]
#print higgsMothers
event.genHiggsSisters = [p for p in event.genParticles if p.mother(0) in higgsMothers and p.pdgId() != 25 ]

if len(higgsBosons) == 0:
event.genHiggsDecayMode = 0
Expand Down
3 changes: 2 additions & 1 deletion VHbbAnalysis/Heppy/test/vhbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@
"goodVertices" : NTupleCollection("primaryVertices", primaryVertexType, 4, help="first four PVs"),

#dump of gen objects
"generatorSummary" : NTupleCollection("GenSummary", genParticleWithLinksType, 30, help="Generator summary, see description in Heppy GeneratorAnalyzer",mcOnly=True),
#"generatorSummary" : NTupleCollection("GenSummary", genParticleWithLinksType, 30, help="Generator summary, see description in Heppy GeneratorAnalyzer",mcOnly=True),
#"genJets" : NTupleCollection("GenJet", genParticleType, 15, help="Generated jets with hadron matching, sorted by pt descending",filter=lambda x: x.pt() > 20,mcOnly=True),
"genHiggsSisters" : NTupleCollection("GenHiggsSisters", genParticleType, 4, help="Sisters of the Higgs bosons"),
"gentopquarks" : NTupleCollection("GenTop", genParticleType, 4, help="Generated top quarks from hard scattering"),
"gennusFromTop" : NTupleCollection("GenNuFromTop", genParticleType, 4, help="Generated neutrino from t->W decay"),
"genbquarksFromH" : NTupleCollection("GenBQuarkFromH", genParticleType, 4, help="Generated bottom quarks from Higgs decays"),
Expand Down

0 comments on commit cde07ca

Please sign in to comment.