42 output.reserve(pfGammaCands.size());
44 for(
auto const&
gamma : pfGammaCands) {
46 0, (*gamma).p4(), (*gamma).vertex(), 22, 1000,
true,
48 piZero->addDaughter(
gamma);
49 output.push_back(piZero);
51 return output.release();
59 "RecoTauPiZeroTrivialPlugin");
RecoTauPiZeroTrivialPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Coll filterCandRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of Candidates.
Base class for all types of Jets.
ParameterSet const & getParameterSet(ParameterSetID const &id)
return_type operator()(const reco::Jet &jet) const override
Build a collection of piZeros from objects in the input jet.
~RecoTauPiZeroTrivialPlugin() override
RecoTauQualityCuts qcuts_
std::auto_ptr< PiZeroVector > return_type
boost::ptr_vector< RecoTauPiZero > PiZeroVector
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::vector< CandidatePtr > pfGammas(const Jet &jet, bool sort=true)
Extract all pfGammas from a PFJet.