diff --git a/HLTrigger/NGTScouting/plugins/HLTVertexTableProducer.cc b/HLTrigger/NGTScouting/plugins/HLTVertexTableProducer.cc index 2272cdf73a1bb..3eff11d5976c2 100644 --- a/HLTrigger/NGTScouting/plugins/HLTVertexTableProducer.cc +++ b/HLTrigger/NGTScouting/plugins/HLTVertexTableProducer.cc @@ -169,7 +169,7 @@ void HLTVertexTableProducer::produce(edm::Event& iEvent, const edm::EventSetup& } //table for all primary vertices - auto pvTable = std::make_unique(nPVs, pvName_, true); + auto pvTable = std::make_unique(nPVs, pvName_, /*singleton*/ false); pvTable->addColumn("ndof", v_ndof, "primary vertex number of degrees of freedom", 8); pvTable->addColumn("chi2", v_chi2, "primary vertex reduced chi2", 8); pvTable->addColumn("x", v_x, "primary vertex x coordinate", 10); diff --git a/HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py b/HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py index cd20e3e137d8c..73c31e5e1762d 100644 --- a/HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py +++ b/HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py @@ -3,8 +3,9 @@ from PhysicsTools.JetMCAlgos.AK4GenJetFlavourInfos_cfi import * from PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi import * from PhysicsTools.NanoAOD.common_cff import * -from PhysicsTools.NanoAOD.jetMC_cff import * from PhysicsTools.NanoAOD.genparticles_cff import * +from PhysicsTools.NanoAOD.jetMC_cff import * +from PhysicsTools.NanoAOD.taus_cff import * from PhysicsTools.PatAlgos.slimming.genParticles_cff import * from PhysicsTools.PatAlgos.slimming.packedGenParticles_cfi import * from PhysicsTools.PatAlgos.slimming.prunedGenParticles_cfi import * @@ -46,11 +47,16 @@ + slimmedGenJetsFlavourInfos + genJetTable + genJetFlavourTable + + tauGenJetsForNano + + tauGenJetsSelectorAllHadronsForNano + + genVisTaus + + genVisTauTable ) # Store hlt objects for NGT scouting NanoHltTables = cms.Sequence( hltVertexTable + + hltSecondaryVertexTable + hltPixelVertexTable + hltGeneralTrackTable + hltGeneralTrackExtTable diff --git a/HLTrigger/NGTScouting/python/hltVertices_cfi.py b/HLTrigger/NGTScouting/python/hltVertices_cfi.py index 78c90474c4ba9..1d9c30a32ff6e 100644 --- a/HLTrigger/NGTScouting/python/hltVertices_cfi.py +++ b/HLTrigger/NGTScouting/python/hltVertices_cfi.py @@ -19,3 +19,21 @@ dlenMin = cms.double(0), dlenSigMin = cms.double(3), pvName = cms.string("hltPixelVertex")) + +hltSecondaryVertexTable = cms.EDProducer("SimpleSecondaryVertexFlatTableProducer", + skipNonExistingSrc = cms.bool(False), + src = cms.InputTag("hltDeepInclusiveMergedVerticesPF"), + name = cms.string("hltSecondaryVertex"), + extension = cms.bool(False), + variables = cms.PSet(P4Vars, + x = Var("position().x()", float, doc = "secondary vertex X position, in cm",precision=10), + y = Var("position().y()", float, doc = "secondary vertex Y position, in cm",precision=10), + z = Var("position().z()", float, doc = "secondary vertex Z position, in cm",precision=14), + ndof = Var("vertexNdof()", float, doc = "number of degrees of freedom",precision=8), + chi2 = Var("vertexNormalizedChi2()", float, doc = "reduced chi2, i.e. chi/ndof",precision=8), + ntracks = Var("numberOfDaughters()", "uint8", doc = "number of tracks"), + ), + ) + +hltSecondaryVertexTable.variables.pt.precision=10 +hltSecondaryVertexTable.variables.phi.precision=12