diff --git a/PhysicsTools/NanoAOD/python/jets_cff.py b/PhysicsTools/NanoAOD/python/jets_cff.py index d87ab11945506..b5b3c733d52c9 100644 --- a/PhysicsTools/NanoAOD/python/jets_cff.py +++ b/PhysicsTools/NanoAOD/python/jets_cff.py @@ -211,6 +211,8 @@ run2_nanoAOD_92X.toModify( fatJetTable.variables.n2b1, expr = cms.string("-1"),) run2_nanoAOD_92X.toModify( fatJetTable.variables.n3b1, expr = cms.string("-1"),) + + subJetTable = cms.EDProducer("SimpleCandidateFlatTableProducer", src = cms.InputTag("slimmedJetsAK8PFPuppiSoftDropPacked","SubJets"), cut = cms.string(""), #probably already applied in miniaod @@ -222,13 +224,29 @@ btagCMVA = Var("bDiscriminator('pfCombinedMVAV2BJetTags')",float,doc="CMVA V2 btag discriminator",precision=10), btagDeepB = Var("bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb')",float,doc="DeepCSV b+bb tag discriminator",precision=10), btagCSVV2 = Var("bDiscriminator('pfCombinedInclusiveSecondaryVertexV2BJetTags')",float,doc=" pfCombinedInclusiveSecondaryVertexV2 b-tag discriminator (aka CSVV2)",precision=10), + tau1 = Var("userFloat('NjettinessAK8Subjets:tau1')",float, doc="Nsubjettiness (1 axis)",precision=10), + tau2 = Var("userFloat('NjettinessAK8Subjets:tau2')",float, doc="Nsubjettiness (2 axis)",precision=10), + tau3 = Var("userFloat('NjettinessAK8Subjets:tau3')",float, doc="Nsubjettiness (3 axis)",precision=10), + tau4 = Var("userFloat('NjettinessAK8Subjets:tau4')",float, doc="Nsubjettiness (4 axis)",precision=10), + n2b1 = Var("userFloat('nb1AK8PuppiSoftDropSubjets:ecfN2')", float, doc="N2 with beta=1", precision=10), + n3b1 = Var("userFloat('nb1AK8PuppiSoftDropSubjets:ecfN3')", float, doc="N3 with beta=1", precision=10), ) ) #jets are not as precise as muons fatJetTable.variables.pt.precision=10 - - +subJetTable.variables.pt.precision=10 + +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.tau1, expr = cms.string("-1"),) +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.tau2, expr = cms.string("-1"),) +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.tau3, expr = cms.string("-1"),) +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.tau4, expr = cms.string("-1"),) +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.n2b1, expr = cms.string("-1"),) +run2_miniAOD_80XLegacy.toModify( subJetTable.variables.n3b1, expr = cms.string("-1"),) + +run2_nanoAOD_92X.toModify( subJetTable.variables.tau4, expr = cms.string("-1"),) +run2_nanoAOD_92X.toModify( subJetTable.variables.n2b1, expr = cms.string("-1"),) +run2_nanoAOD_92X.toModify( subJetTable.variables.n3b1, expr = cms.string("-1"),) diff --git a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py index d22c8d76c00b2..b5e90bcf61700 100644 --- a/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py +++ b/PhysicsTools/NanoAOD/python/nanoDQM_cfi.py @@ -408,8 +408,14 @@ Plot1D('btagDeepB', 'btagDeepB', 20, -1, 1, 'Deep B+BB btag discriminator'), Plot1D('eta', 'eta', 20, -4, 4, 'eta'), Plot1D('mass', 'mass', 20, -200, 200, 'mass'), + Plot1D('n2b1', 'n2b1', 20, 0, 1, 'N2 (beta=1)'), + Plot1D('n3b1', 'n3b1', 20, 0, 5, 'N3 (beta=1)'), Plot1D('phi', 'phi', 20, -3.14159, 3.14159, 'phi'), Plot1D('pt', 'pt', 20, 0, 200, 'pt'), + Plot1D('tau1', 'tau1', 20, 0, 1, 'Nsubjettiness (1 axis)'), + Plot1D('tau2', 'tau2', 20, 0, 1, 'Nsubjettiness (2 axis)'), + Plot1D('tau3', 'tau3', 20, 0, 1, 'Nsubjettiness (3 axis)'), + Plot1D('tau4', 'tau4', 20, 0, 1, 'Nsubjettiness (4 axis)'), ) ), Tau = cms.PSet(