00001 #include "DataFormats/ParticleFlowCandidate/interface/PileUpPFCandidate.h" 00002 #include "DataFormats/Candidate/interface/CandidateFwd.h" 00003 00004 using namespace reco; 00005 00006 PileUpPFCandidate::PileUpPFCandidate() : PFCandidate() {} 00007 00008 00009 PileUpPFCandidate::PileUpPFCandidate( const PFCandidatePtr & candidatePtr, 00010 const VertexRef& vertexRef ) : 00011 PFCandidate(candidatePtr), vertexRef_(vertexRef) { 00012 } 00013 00014 PileUpPFCandidate * PileUpPFCandidate::clone() const { 00015 return new PileUpPFCandidate( * this ); 00016 } 00017 00018 00019 PileUpPFCandidate::~PileUpPFCandidate() {} 00020 00021 00022 std::ostream& reco::operator<<( std::ostream& out, 00023 const PileUpPFCandidate& c ) { 00024 if(!out) return out; 00025 00026 00027 out<<"PileUpPFCandidate, " 00028 <<c.sourceCandidatePtr(0).id()<<"/" 00029 <<c.sourceCandidatePtr(0).key(); 00030 00031 return out; 00032 }