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
void insert(const H &h, I begin, I end)
CovarianceMatrix4D covariance4D() const
return SMatrix 4D
const edm::EDGetTokenT< std::vector< reco::Vertex > > src_
const Point & position() const
position
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
double chi2() const
chi-squares
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< edm::ValueMap< float > > score_
~PATVertexSlimmer() override
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
double t() const
t coordinate