Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:55

0001 #include "DataFormats/Candidate/interface/ShallowClonePtrCandidate.h"
0002 using namespace reco;
0003 
0004 ShallowClonePtrCandidate::~ShallowClonePtrCandidate() {}
0005 
0006 ShallowClonePtrCandidate* ShallowClonePtrCandidate::clone() const { return new ShallowClonePtrCandidate(*this); }
0007 
0008 size_t ShallowClonePtrCandidate::numberOfDaughters() const { return masterClone_->numberOfDaughters(); }
0009 
0010 size_t ShallowClonePtrCandidate::numberOfMothers() const { return masterClone_->numberOfMothers(); }
0011 
0012 const Candidate* ShallowClonePtrCandidate::daughter(size_type i) const { return masterClone_->daughter(i); }
0013 
0014 const Candidate* ShallowClonePtrCandidate::mother(size_type i) const { return masterClone_->mother(i); }
0015 
0016 Candidate* ShallowClonePtrCandidate::daughter(size_type i) { return nullptr; }
0017 
0018 bool ShallowClonePtrCandidate::hasMasterClonePtr() const { return true; }
0019 
0020 const CandidatePtr& ShallowClonePtrCandidate::masterClonePtr() const { return masterClone_; }
0021 
0022 bool ShallowClonePtrCandidate::isElectron() const { return masterClone_->isElectron(); }
0023 
0024 bool ShallowClonePtrCandidate::isMuon() const { return masterClone_->isMuon(); }
0025 
0026 bool ShallowClonePtrCandidate::isGlobalMuon() const { return masterClone_->isGlobalMuon(); }
0027 
0028 bool ShallowClonePtrCandidate::isStandAloneMuon() const { return masterClone_->isStandAloneMuon(); }
0029 
0030 bool ShallowClonePtrCandidate::isTrackerMuon() const { return masterClone_->isTrackerMuon(); }
0031 
0032 bool ShallowClonePtrCandidate::isCaloMuon() const { return masterClone_->isCaloMuon(); }
0033 
0034 bool ShallowClonePtrCandidate::isPhoton() const { return masterClone_->isPhoton(); }
0035 
0036 bool ShallowClonePtrCandidate::isConvertedPhoton() const { return masterClone_->isConvertedPhoton(); }
0037 
0038 bool ShallowClonePtrCandidate::isJet() const { return masterClone_->isJet(); }