32 : src_(consumes<std::
vector<
reco::Vertex>>(iConfig.getParameter<edm::
InputTag>(
"src"))),
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>>();
48 outPtr->reserve(vertices->size());
49 for (
unsigned int i = 0,
n = vertices->size();
i <
n; ++
i) {
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));
66 auto vertexScoreOutput = std::make_unique<edm::ValueMap<float>>();
68 for (; idIt != scores->end(); idIt++) {
69 if (idIt.id() == vertices.
id())
74 vertexScoreFiller.
insert(oh, idIt.begin(), idIt.end());
75 vertexScoreFiller.
fill();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
PATVertexSlimmer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
CovarianceMatrix4D covariance4D() const
return SMatrix 4D
const edm::EDGetTokenT< std::vector< reco::Vertex > > src_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
__host__ __device__ VT * co
const Point & position() const
position
double chi2() const
chi-squares
const edm::EDGetTokenT< edm::ValueMap< float > > score_
~PATVertexSlimmer() override
double t() const
t coordinate