CMS 3D CMS Logo

Classes | Namespaces | Functions
RecoTauCommonUtilities.h File Reference
#include <vector>
#include <algorithm>
#include <numeric>
#include "DataFormats/Candidate/interface/CandidateFwd.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#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 <boost/iterator/transform_iterator.hpp>
#include <boost/iterator/indirect_iterator.hpp>
#include <boost/mem_fn.hpp>
#include <boost/type_traits/is_base_of.hpp>

Go to the source code of this file.

Classes

class  reco::tau::SortPFCandsDescendingPt
 

Namespaces

 reco
 fixed size matrix
 
 reco::tau
 

Functions

math::XYZPointF reco::tau::atECALEntrance (const reco::Candidate *part, double bField)
 
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< CandidatePtr > reco::tau::filterPFCandidates (const Iterator &begin, const Iterator &end, int pdgId, bool sort=true)
 
std::vector< CandidatePtr > reco::tau::flattenPiZeros (const std::vector< RecoTauPiZero >::const_iterator &, const std::vector< RecoTauPiZero >::const_iterator &)
 Flatten a list of pi zeros into a list of there constituent PFCandidates. More...
 
std::vector< CandidatePtr > reco::tau::flattenPiZeros (const std::vector< RecoTauPiZero > &)
 
template<typename InputIterator >
InputIterator reco::tau::leadCand (InputIterator begin, InputIterator end)
 
std::vector< CandidatePtr > reco::tau::pfCandidates (const Jet &jet, int particleId, bool sort=true)
 
std::vector< CandidatePtr > reco::tau::pfCandidates (const Jet &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< CandidatePtr > reco::tau::pfCandidatesByPdgId (const Jet &jet, int pdgId, bool sort=true)
 
std::vector< CandidatePtr > reco::tau::pfCandidatesByPdgId (const Jet &jet, const std::vector< int > &pdgIds, bool sort=true)
 Extract pfCandidates of a that match a list of PDG Ids from a PFJet. More...
 
std::vector< CandidatePtr > reco::tau::pfChargedCands (const Jet &jet, bool sort=true)
 Extract all non-neutral candidates from a PFJet. More...
 
std::vector< CandidatePtr > reco::tau::pfGammas (const Jet &jet, bool sort=true)
 Extract all pfGammas from a PFJet. More...
 
template<typename InputIterator >
int reco::tau::sumPFCandCharge (InputIterator begin, InputIterator end)
 Sum the charge 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)