1 #ifndef CandUtils_makeNamedCompositeCandidate_h 2 #define CandUtils_makeNamedCompositeCandidate_h 20 std::unique_ptr<reco::NamedCompositeCandidate>
cmp_;
21 std::unique_ptr<reco::Candidate>
release() {
22 std::unique_ptr<reco::Candidate>
ret(
cmp_.get());
59 const typename C::const_iterator&
end,
60 const std::vector<std::string>::const_iterator sbegin,
61 const std::vector<std::string>::const_iterator send) {
63 std::vector<std::string>::const_iterator si = sbegin;
64 for (
typename C::const_iterator
i = begin;
i !=
end && si != send; ++
i, ++si)
65 cmp.addDaughter(*
i, *si);
92 const typename C::const_iterator& begin,
93 const typename C::const_iterator&
end,
94 const std::vector<std::string>::const_iterator sbegin,
95 const std::vector<std::string>::const_iterator send) {
97 std::vector<std::string>::const_iterator si = sbegin;
98 for (
typename C::const_iterator
i = begin;
i !=
end && si != send; ++
i, ++si)
ret
prodAgent to be discontinued
void addDaughter(const reco::Candidate &dau, std::string name)
std::unique_ptr< reco::Candidate > operator[](const S &setup)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const reco::Candidate &c1, std::string s1, const reco::Candidate &c2, std::string s2)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
NamedCompositeCandidateMaker(std::unique_ptr< reco::NamedCompositeCandidate > cmp)
std::unique_ptr< reco::Candidate > release()
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
std::unique_ptr< reco::NamedCompositeCandidate > cmp_