/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Candidate/src/ShallowCloneCandidate.cc
38 строк
2 KB
Cms Build
Clang-Format
05 июн 2019, 13:57
05 июн 2019, 13:57
a7d7e58
Код
Авторство
О чём код?
#include "DataFormats/Candidate/interface/ShallowCloneCandidate.h" using namespace reco; ShallowCloneCandidate::~ShallowCloneCandidate() {} ShallowCloneCandidate* ShallowCloneCandidate::clone() const { return new ShallowCloneCandidate(*this); } size_t ShallowCloneCandidate::numberOfDaughters() const { return masterClone_->numberOfDaughters(); } size_t ShallowCloneCandidate::numberOfMothers() const { return masterClone_->numberOfMothers(); } const Candidate* ShallowCloneCandidate::daughter(size_type i) const { return masterClone_->daughter(i); } const Candidate* ShallowCloneCandidate::mother(size_type i) const { return masterClone_->mother(i); } Candidate* ShallowCloneCandidate::daughter(size_type i) { return nullptr; } bool ShallowCloneCandidate::hasMasterClone() const { return true; } const CandidateBaseRef& ShallowCloneCandidate::masterClone() const { return masterClone_; } bool ShallowCloneCandidate::isElectron() const { return masterClone_->isElectron(); } bool ShallowCloneCandidate::isMuon() const { return masterClone_->isMuon(); } bool ShallowCloneCandidate::isGlobalMuon() const { return masterClone_->isGlobalMuon(); } bool ShallowCloneCandidate::isStandAloneMuon() const { return masterClone_->isStandAloneMuon(); } bool ShallowCloneCandidate::isTrackerMuon() const { return masterClone_->isTrackerMuon(); } bool ShallowCloneCandidate::isCaloMuon() const { return masterClone_->isCaloMuon(); } bool ShallowCloneCandidate::isPhoton() const { return masterClone_->isPhoton(); } bool ShallowCloneCandidate::isConvertedPhoton() const { return masterClone_->isConvertedPhoton(); } bool ShallowCloneCandidate::isJet() const { return masterClone_->isJet(); }