CMS 3D CMS Logo

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

◆ convertToPFCandidatePtr()

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 }
reco::PFCandidatePtr
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
Definition: PFCandidateFwd.h:27
edm::Ptr
Definition: AssociationVector.h:31
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41