61 vertexAssociationQuality_ = iConfig.
getParameter<
int>(
"vertexAssociationQuality");
63 tokenVertexAssociationQuality_ =
65 produces<edm::PtrVector<reco::Candidate>>();
71 iEvent.
getByToken(tokenCandidatesView_, candidateView);
74 for (
const auto&
p : candidateView->ptrs()) {
77 if (!(PVOrig.
isNonnull() && (PVOrig.
key() > 0) && (quality >= vertexAssociationQuality_)))
78 pOutput->push_back(
p);
86 desc.
add<
int>(
"vertexAssociationQuality", 7);
int vertexAssociationQuality_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Identifies pile-up candidates from a collection of Candidates, and produces the corresponding collect...
void produce(edm::Event &, const edm::EventSetup &) override
bool isNonnull() const
Checks for non-null.
edm::EDGetTokenT< reco::VertexCollection > tokenVertices_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
uint32_t const *__restrict__ Quality * quality
PFNoPileUpPacked(const edm::ParameterSet &)
edm::EDGetTokenT< CandToVertex > tokenVertexAssociation_
key_type key() const
Accessor for product key.
edm::EDGetTokenT< CandidateView > tokenCandidatesView_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool get(ProductID const &oid, Handle< PROD > &result) const
edm::Association< reco::VertexCollection > CandToVertex
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::ValueMap< int > > tokenVertexAssociationQuality_
edm::View< reco::Candidate > CandidateView
T getParameter(std::string const &) const