Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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