27 namespace reco {
namespace tau {
59 typedef std::vector<reco::PFCandidatePtr>
PFCandPtrs;
65 if (pfGammaCands.size() <
choose_)
66 return output.release();
69 PFCandIter start_iter = pfGammaCands.begin();
70 PFCandIter end_iter = pfGammaCands.end();
80 for (ComboGenerator::iterator combo = generator.begin();
81 combo != generator.end(); ++combo) {
83 std::auto_ptr<RecoTauPiZero> piZero(
87 for (ComboGenerator::combo_iterator candidate = combo->combo_begin();
88 candidate != combo->combo_end(); ++candidate) {
89 piZero->addDaughter(*candidate);
93 if (piZero->daughterPtr(0).isNonnull())
94 piZero->setVertex(piZero->daughterPtr(0)->vertex());
98 output.push_back(piZero);
100 return output.release();
108 "RecoTauPiZeroCombinatoricPlugin");
~RecoTauPiZeroCombinatoricPlugin()
T getParameter(std::string const &) const
InputIterator takeNElements(const InputIterator &begin, const InputIterator &end, size_t N)
Coll filterRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of PFCandidates.
std::vector< PFCandidatePtr > pfGammas(const PFJet &jet, bool sort=true)
Extract all pfGammas from a PFJet.
ParameterSet const & getParameterSet(ParameterSetID const &id)
std::vector< reco::PFCandidatePtr > PFCandPtrs
Jets made from PFObjects.
RecoTauPiZeroCombinatoricPlugin(const edm::ParameterSet &pset)
unsigned int maxInputGammas_
RecoTauQualityCuts qcuts_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::auto_ptr< PiZeroVector > return_type
AddFourMomenta p4Builder_
boost::ptr_vector< RecoTauPiZero > PiZeroVector
return_type operator()(const reco::PFJet &jet) const
Build a collection of piZeros from objects in the input jet.
PFCandPtrs::iterator PFCandIter
math::XYZPoint Point
point in the space
#define DEFINE_EDM_PLUGIN(factory, type, name)
void set(reco::Candidate &c) const
set up a candidate