14 pfCandidatesToken = consumes<PFCandidateCollection>(pfCollectionLabel);
15 pvCollectionToken = consumes<VertexCollection>(pvCollectionLabel);
18 neutralEtThreshold = iConfig.
getParameter<
double>(
"neutralEtThreshold");
20 produces<PFCandidateCollection>();
26 iEvent.
getByToken(pvCollectionToken, pvCollection);
27 VertexCollection::const_iterator vertex = pvCollection->begin();
31 iEvent.
getByToken(pfCandidatesToken, pfCandidates);
35 if (!pvCollection->empty()) {
36 for (
unsigned i = 0;
i < pfCandidates->size();
i++) {
41 if (pfCandPtr->trackRef()->dz((*vertex).position()) < dzCut) {
46 }
else if (neutralEtThreshold > 0 and pfCandPtr->pt() > neutralEtThreshold) {
58 ParticleFlowForChargedMETProducer::~ParticleFlowForChargedMETProducer() {}
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool isNonnull() const
Checks for non-null.
tuple chargedPFCandidates
T getParameter(std::string const &) const
Particle reconstructed by the particle flow algorithm.