52 choose_ =
pset.getParameter<
unsigned int>(
"choose");
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 auto piZero = std::make_unique<RecoTauPiZero>(
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)
void set(reco::Candidate &c) const
set up a candidate
Base class for all types of Jets.
~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_
Coll filterCandRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of Candidates.
std::vector< std::unique_ptr< RecoTauPiZero > > PiZeroVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
ParameterSet const & getParameterSet(ParameterSetID const &id)
AddFourMomenta p4Builder_
math::XYZPoint Point
point in the space
#define DEFINE_EDM_PLUGIN(factory, type, name)
CandPtrs::iterator CandIter
std::vector< CandidatePtr > pfGammas(const Jet &jet, bool sort=true)
Extract all pfGammas from a PFJet.