CMS 3D CMS Logo

Classes | Namespaces | Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/RecoTauTag/RecoTau/interface/RecoTauCommonUtilities.h File Reference

#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/TauReco/interface/PFTau.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include <vector>
#include <algorithm>
#include <numeric>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/iterator/indirect_iterator.hpp>
#include <boost/mem_fn.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/static_assert.hpp>

Go to the source code of this file.

Classes

class  reco::tau::SortPFCandsDescendingPt

Namespaces

namespace  reco
 

fixed size matrix


namespace  reco::tau

Functions

template<typename RefVectorType , typename BaseView >
RefVectorType reco::tau::castView (const edm::Handle< BaseView > &view)
 Convert a BaseView (View<T>) to a TRefVector.
template<typename Iterator >
std::vector< PFCandidatePtr > reco::tau::filterPFCandidates (const Iterator &begin, const Iterator &end, int particleId, bool sort=true)
std::vector< PFCandidatePtr > reco::tau::flattenPiZeros (const std::vector< RecoTauPiZero > &)
 Flatten a list of pi zeros into a list of there constituent PFCandidates.
template<typename InputIterator >
InputIterator reco::tau::leadPFCand (InputIterator begin, InputIterator end)
std::vector< PFCandidatePtr > reco::tau::pfCandidates (const PFJet &jet, int particleId, bool sort=true)
std::vector< PFCandidatePtr > reco::tau::pfCandidates (const PFJet &jet, const std::vector< int > &particleIds, bool sort=true)
 Extract pfCandidates of a that match a list of particle Ids from a PFJet.
std::vector< PFCandidatePtr > reco::tau::pfChargedCands (const PFJet &jet, bool sort=true)
 Extract all non-neutral candidates from a PFJet.
std::vector< PFCandidatePtr > reco::tau::pfGammas (const PFJet &jet, bool sort=true)
 Extract all pfGammas from a PFJet.
template<typename InputIterator >
int reco::tau::sumPFCandCharge (InputIterator begin, InputIterator end)
 Sum the PT of a collection of PFCandidates.
template<typename InputIterator >
reco::Candidate::LorentzVector reco::tau::sumPFCandP4 (InputIterator begin, InputIterator end)
template<typename InputIterator >
double reco::tau::sumPFCandPt (InputIterator begin, InputIterator end)
 Sum the PT of a collection of PFCandidates.
template<typename InputIterator , typename FunctionPtr , typename ReturnType >
ReturnType reco::tau::sumPFVector (InputIterator begin, InputIterator end, FunctionPtr func, ReturnType init)
 Sum the four vectors in a collection of PFCandidates.
template<typename InputIterator >
InputIterator reco::tau::takeNElements (const InputIterator &begin, const InputIterator &end, size_t N)