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) {
#define DEFINE_FWK_MODULE(type)
pat::helper::VertexingHelper vertexing_
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
~PATVertexAssociationProducer() override
PATVertexAssociationProducer(const edm::ParameterSet &iConfig)
std::vector< edm::InputTag > VInputTag
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > particlesTokens_
edm::ValueMap< pat::VertexAssociation > VertexAssociationMap
void newEvent(const edm::Event &event)
To be called for each new event, reads in the vertex collection.
Produces VertexAssociation and a ValueMap to the originating reco jets.
std::vector< edm::InputTag > particles_
Produces and/or checks pat::VertexAssociation's.