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 455 of file Tau.cc.

455  {
456  const reco::PFCandidate* pf_cand = dynamic_cast<const reco::PFCandidate*>(&*ptr);
457  if (pf_cand)
458  return edm::Ptr<reco::PFCandidate>(ptr);
459  return reco::PFCandidatePtr();
460 }
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate