CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions
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

 reco
 fixed size matrix
 
 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. More...
 
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. More...
 
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. More...
 
std::vector< PFCandidatePtr > reco::tau::pfChargedCands (const PFJet &jet, bool sort=true)
 Extract all non-neutral candidates from a PFJet. More...
 
std::vector< PFCandidatePtr > reco::tau::pfGammas (const PFJet &jet, bool sort=true)
 Extract all pfGammas from a PFJet. More...
 
template<typename InputIterator >
int reco::tau::sumPFCandCharge (InputIterator begin, InputIterator end)
 Sum the PT of a collection of PFCandidates. More...
 
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. More...
 
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. More...
 
template<typename InputIterator >
InputIterator reco::tau::takeNElements (const InputIterator &begin, const InputIterator &end, size_t N)