Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:50:50

0001 #include "DataFormats/ParticleFlowCandidate/interface/PileUpPFCandidate.h"
0002 #include "DataFormats/Candidate/interface/CandidateFwd.h"
0003 
0004 using namespace reco;
0005 
0006 PileUpPFCandidate::PileUpPFCandidate() : PFCandidate() {}
0007 
0008 PileUpPFCandidate::PileUpPFCandidate(const PFCandidatePtr& candidatePtr, const VertexRef& vertexRef)
0009     : PFCandidate(candidatePtr), vertexRef_(vertexRef) {}
0010 
0011 PileUpPFCandidate* PileUpPFCandidate::clone() const { return new PileUpPFCandidate(*this); }
0012 
0013 PileUpPFCandidate::~PileUpPFCandidate() {}
0014 
0015 std::ostream& reco::operator<<(std::ostream& out, const PileUpPFCandidate& c) {
0016   if (!out)
0017     return out;
0018 
0019   out << "PileUpPFCandidate, " << c.sourceCandidatePtr(0).id() << "/" << c.sourceCandidatePtr(0).key();
0020 
0021   return out;
0022 }