58 typedef std::vector<reco::CandidatePtr>
CandPtrs;
59 typedef CandPtrs::const_iterator
CandIter;
64 if (pfGammaCands.size() <
choose_)
68 CandIter start_iter = pfGammaCands.begin();
69 CandIter end_iter = pfGammaCands.end();
79 for (ComboGenerator::iterator combo = generator.begin(); combo != generator.end(); ++combo) {
81 std::unique_ptr<RecoTauPiZero> piZero(
84 for (
auto candidate = combo->combo_begin(); candidate != combo->combo_end(); ++candidate) {
85 piZero->addDaughter(*candidate);
89 if (piZero->daughterPtr(0).isNonnull())
90 piZero->setVertex(piZero->daughterPtr(0)->vertex());
93 output.emplace_back(piZero.release());
104 "RecoTauPiZeroCombinatoricPlugin");
InputIterator takeNElements(const InputIterator &begin, const InputIterator &end, size_t N)
RecoTauPiZeroCombinatoricPlugin(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)
~RecoTauPiZeroCombinatoricPlugin() override
std::vector< reco::CandidatePtr > CandPtrs
return_type operator()(const reco::Jet &jet) const override
Build a collection of piZeros from objects in the input jet.
unsigned int maxInputGammas_
RecoTauQualityCuts qcuts_
T getParameter(std::string const &) const
std::vector< std::unique_ptr< RecoTauPiZero > > PiZeroVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
AddFourMomenta p4Builder_
math::XYZPoint Point
point in the space
#define DEFINE_EDM_PLUGIN(factory, type, name)
void set(reco::Candidate &c) const
set up a candidate
CandPtrs::iterator CandIter
std::vector< CandidatePtr > pfGammas(const Jet &jet, bool sort=true)
Extract all pfGammas from a PFJet.