/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/CandUtils/src/makeNamedCompositeCandidate.cc
79 строк
5 KB
Mircho Rodozov
clang format
17 июл 2020, 18:38
17 июл 2020, 18:38
7e1300c
Код
Авторство
О чём код?
#include <memory> #include "CommonTools/CandUtils/interface/makeNamedCompositeCandidate.h" using namespace reco; using namespace std; helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const Candidate& c1, std::string s1, const Candidate& c2, std::string s2) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(c1, s1); cmp.addDaughter(c2, s2); return cmp; } helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate( const Candidate& c1, std::string s1, const Candidate& c2, std::string s2, const Candidate& c3, std::string s3) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(c1, s1); cmp.addDaughter(c2, s2); cmp.addDaughter(c3, s3); return cmp; } helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const Candidate& c1, std::string s1, const Candidate& c2, std::string s2, const Candidate& c3, std::string s3, const Candidate& c4, std::string s4) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(c1, s1); cmp.addDaughter(c2, s2); cmp.addDaughter(c3, s3); cmp.addDaughter(c4, s4); return cmp; } helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef& c1, std::string s1, const reco::CandidateRef& c2, std::string s2) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2); return cmp; } helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef& c1, std::string s1, const reco::CandidateRef& c2, std::string s2, const reco::CandidateRef& c3, std::string s3) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)), s3); return cmp; } helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef& c1, std::string s1, const reco::CandidateRef& c2, std::string s2, const reco::CandidateRef& c3, std::string s3, const reco::CandidateRef& c4, std::string s4) { helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>()); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)), s3); cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c4)), s4); return cmp; }