CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PileUpPFCandidate.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7 
8 
10  const VertexRef& vertexRef ) :
11  PFCandidate(candidatePtr), vertexRef_(vertexRef) {
12 }
13 
15  return new PileUpPFCandidate( * this );
16 }
17 
18 
20 
21 
22 std::ostream& reco::operator<<( std::ostream& out,
23  const PileUpPFCandidate& c ) {
24  if(!out) return out;
25 
26 
27  out<<"PileUpPFCandidate, "
28  <<c.sourceCandidatePtr(0).id()<<"/"
29  <<c.sourceCandidatePtr(0).key();
30 
31  return out;
32 }
key_type key() const
Definition: Ptr.h:186
virtual ~PileUpPFCandidate()
destructor
CandidatePtr sourceCandidatePtr(size_type i) const
Definition: PFCandidate.h:131
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
PileUpPFCandidate()
default constructor
ProductID id() const
Accessor for product ID.
Definition: Ptr.h:181
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
virtual PileUpPFCandidate * clone() const
return a clone
Particle reconstructed by the particle flow algorithm.