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();
PATVertexSlimmer(const edm::ParameterSet &)
void insert(const H &h, I begin, I end)
const edm::EDGetTokenT< std::vector< reco::Vertex > > src_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
__host__ __device__ VT * co
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< edm::ValueMap< float > > score_
~PATVertexSlimmer() override