48 PATVertexAssociationProducer::PATVertexAssociationProducer(
const edm::ParameterSet& iConfig)
49 : particles_(iConfig.existsAs<
VInputTag>(
"candidates")
51 iConfig.getParameter<
VInputTag>(
"candidates")
53 vertexing_(iConfig, consumesCollector()) {
57 produces<VertexAssociationMap>();
69 auto result = std::make_unique<VertexAssociationMap>();
71 vector<pat::VertexAssociation> assos;
82 assos.reserve(
cands->size());
84 for (
size_t i = 0,
n =
cands->size();
i <
n; ++
i) {