CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DataFormats/ParticleFlowCandidate/src/IsolatedPFCandidate.cc

Go to the documentation of this file.
00001 #include "DataFormats/ParticleFlowCandidate/interface/IsolatedPFCandidate.h"
00002 
00003 #include <iostream>
00004 
00005 using namespace reco;
00006 using namespace std;
00007 
00008 IsolatedPFCandidate::IsolatedPFCandidate() : PFCandidate(), isolation_(-1) {}
00009 
00010 
00011 IsolatedPFCandidate::IsolatedPFCandidate( const PFCandidatePtr & candidatePtr, 
00012                                           double isolation ) : 
00013   PFCandidate(candidatePtr), 
00014   isolation_(isolation) {
00015 }
00016 
00017 IsolatedPFCandidate * IsolatedPFCandidate::clone() const {
00018   return new IsolatedPFCandidate( * this );
00019 }
00020 
00021 
00022 IsolatedPFCandidate::~IsolatedPFCandidate() {}
00023 
00024 
00025 std::ostream& reco::operator<<( std::ostream& out, 
00026                                 const IsolatedPFCandidate& c ) {
00027   if(!out) return out;
00028 
00029   const PFCandidate& mother = c;
00030   out<<"IsolatedPFCandidate, isolation = "
00031      <<c.isolation()<<" "
00032      <<mother;
00033   return out;
00034 }