13 namespace reco {
namespace tau {
15 std::vector<PFCandidatePtr>
17 std::vector<PFCandidatePtr>
output;
19 for(std::vector<RecoTauPiZero>::const_iterator piZero = piZeros.begin();
20 piZero != piZeros.end(); ++piZero) {
21 for(
size_t iDaughter = 0; iDaughter < piZero->numberOfDaughters();
30 int particleId,
bool sort) {
33 pfCands.begin(), pfCands.end(), particleId,
sort);
34 return selectedPFCands;
38 const std::vector<int>& particleIds,
bool sort) {
41 for(std::vector<int>::const_iterator particleId = particleIds.begin();
42 particleId != particleIds.end(); ++particleId) {
44 output.insert(output.end(), selectedPFCands.begin(), selectedPFCands.end());
60 output.reserve(mus.size() + es.size() + chs.size());
61 output.insert(output.end(), mus.begin(), mus.end());
62 output.insert(output.end(), es.begin(), es.end());
63 output.insert(output.end(), chs.begin(), chs.end());
std::vector< PFCandidatePtr > flattenPiZeros(const std::vector< RecoTauPiZero > &)
Flatten a list of pi zeros into a list of there constituent PFCandidates.
std::vector< PFCandidatePtr > pfGammas(const PFJet &jet, bool sort=true)
Extract all pfGammas from a PFJet.
std::vector< reco::PFCandidatePtr > PFCandPtrs
std::vector< PFCandidatePtr > filterPFCandidates(const Iterator &begin, const Iterator &end, int particleId, bool sort=true)
Jets made from PFObjects.
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
std::vector< PFCandidatePtr > pfChargedCands(const PFJet &jet, bool sort=true)
Extract all non-neutral candidates from a PFJet.
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
PFCandPtrs::iterator PFCandIter
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate