Skip to content

Commit

Permalink
Merge pull request cms-sw#49 from veelken/from-CMSSW_9_4_0_pre2
Browse files Browse the repository at this point in the history
Added mass for GenVisTaus and replaced pdgId by charge
  • Loading branch information
gpetruc authored Oct 25, 2017
2 parents 128d0db + 0f2841e commit 861d9bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion PhysicsTools/NanoAOD/python/nanoDQM_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@
sels = cms.PSet(),
plots = cms.VPSet(
Count1D('_size', 4, -0.5, 3.5, 'gen hadronic taus '),
Plot1D('charge', 'charge', 3, -1.5, 1.5, 'charge'),
Plot1D('eta', 'eta', 20, -5, 5, 'eta'),
NoPlot('genPartIdxMother'),
Plot1D('pdgId', 'pdgId', 20, -20, 20, 'PDG id'),
Plot1D('mass', 'mass', 20, 0, 2, 'mass'),
Plot1D('phi', 'phi', 20, -3.14159, 3.14159, 'phi'),
Plot1D('pt', 'pt', 20, 0, 200, 'pt'),
Plot1D('status', 'status', 16, -0.5, 15.5, 'Hadronic tau decay mode. 0=OneProng0PiZero, 1=OneProng1PiZero, 2=OneProng2PiZero, 10=ThreeProng0PiZero, 11=ThreeProng1PiZero, 15=Other'),
Expand Down
11 changes: 6 additions & 5 deletions PhysicsTools/NanoAOD/python/taus_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,17 @@ def _tauId6WPMask(pattern,doc):
genVisTauTable = cms.EDProducer("SimpleCandidateFlatTableProducer",
src = cms.InputTag("genVisTaus"),
cut = cms.string("pt > 10."),
name= cms.string("GenVisTau"),
name = cms.string("GenVisTau"),
doc = cms.string("gen hadronic taus "),
singleton = cms.bool(False), # the number of entries is variable
extension = cms.bool(False), # this is the main table for generator level hadronic tau decays
variables = cms.PSet(
pt = Var("pt", float,precision=8),
pt = Var("pt", float,precision=8),
phi = Var("phi", float,precision=8),
eta = Var("eta", float,precision=8),
pdgId = Var("pdgId", int, doc="PDG id"),
status = Var("status", int, doc="Hadronic tau decay mode. 0=OneProng0PiZero, 1=OneProng1PiZero, 2=OneProng2PiZero, 10=ThreeProng0PiZero, 11=ThreeProng1PiZero, 15=Other"),
eta = Var("eta", float,precision=8),
mass = Var("mass", float,precision=8),
charge = Var("charge", int),
status = Var("status", int, doc="Hadronic tau decay mode. 0=OneProng0PiZero, 1=OneProng1PiZero, 2=OneProng2PiZero, 10=ThreeProng0PiZero, 11=ThreeProng1PiZero, 15=Other"),
genPartIdxMother = Var("?numberOfMothers>0?motherRef(0).key():-1", int, doc="index of the mother particle"),
)
)
Expand Down

0 comments on commit 861d9bf

Please sign in to comment.