CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
Tau.cc File Reference
#include "DataFormats/PatCandidates/interface/Tau.h"
#include "DataFormats/JetReco/interface/GenJet.h"
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
#include <algorithm>
#include <functional>

Go to the source code of this file.

Functions

const reco::PFCandidatePtr convertToPFCandidatePtr (const reco::CandidatePtr &ptr)
 

Function Documentation

const reco::PFCandidatePtr convertToPFCandidatePtr ( const reco::CandidatePtr ptr)

Definition at line 446 of file Tau.cc.

446  {
447  const reco::PFCandidate* pf_cand = dynamic_cast<const reco::PFCandidate*>(&*ptr);
448  if (pf_cand)
449  return edm::Ptr<reco::PFCandidate>(ptr);
450  return reco::PFCandidatePtr();
451 }
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate