33 score_(mayConsume<
edm::ValueMap<
float>>(
35 rekeyScores_(iConfig.existsAs<
edm::
InputTag>(
"score")) {
36 produces<std::vector<reco::Vertex>>();
38 produces<edm::ValueMap<float>>();
46 auto outPtr = std::make_unique<std::vector<reco::Vertex>>();
51 auto co =
v.covariance4D();
53 for (
size_t j = 0;
j < 4;
j++) {
54 for (
size_t k =
j;
k < 4;
k++) {
55 co(
j,
k) = MiniFloatConverter::reduceMantissaToNbits<10>(
co(
j,
k));
65 iEvent.getByToken(score_, scores);
66 auto vertexScoreOutput = std::make_unique<edm::ValueMap<float>>();
68 for (; idIt != scores->end(); idIt++) {
74 vertexScoreFiller.
insert(oh, idIt.begin(), idIt.end());
75 vertexScoreFiller.
fill();