Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion HLTrigger/NGTScouting/plugins/HLTVertexTableProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void HLTVertexTableProducer::produce(edm::Event& iEvent, const edm::EventSetup&
}

//table for all primary vertices
auto pvTable = std::make_unique<nanoaod::FlatTable>(nPVs, pvName_, true);
auto pvTable = std::make_unique<nanoaod::FlatTable>(nPVs, pvName_, /*singleton*/ false);
pvTable->addColumn<float>("ndof", v_ndof, "primary vertex number of degrees of freedom", 8);
pvTable->addColumn<float>("chi2", v_chi2, "primary vertex reduced chi2", 8);
pvTable->addColumn<float>("x", v_x, "primary vertex x coordinate", 10);
Expand Down
8 changes: 7 additions & 1 deletion HLTrigger/NGTScouting/python/HLTNanoProducer_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions HLTrigger/NGTScouting/python/hltVertices_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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