CMS 3D CMS Logo

makeNamedCompositeCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 using namespace std;
4 
6  std::string s1,
7  const Candidate& c2,
8  std::string s2) {
9  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
10  cmp.addDaughter(c1, s1);
11  cmp.addDaughter(c2, s2);
12  return cmp;
13 }
14 
16  const Candidate& c1, std::string s1, const Candidate& c2, std::string s2, const Candidate& c3, std::string s3) {
17  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
18  cmp.addDaughter(c1, s1);
19  cmp.addDaughter(c2, s2);
20  cmp.addDaughter(c3, s3);
21  return cmp;
22 }
23 
25  std::string s1,
26  const Candidate& c2,
28  const Candidate& c3,
29  std::string s3,
30  const Candidate& c4,
31  std::string s4) {
32  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
33  cmp.addDaughter(c1, s1);
34  cmp.addDaughter(c2, s2);
35  cmp.addDaughter(c3, s3);
36  cmp.addDaughter(c4, s4);
37  return cmp;
38 }
39 
41  std::string s1,
42  const reco::CandidateRef& c2,
43  std::string s2) {
44  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
47  return cmp;
48 }
49 
51  std::string s1,
52  const reco::CandidateRef& c2,
54  const reco::CandidateRef& c3,
55  std::string s3) {
56  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
60  return cmp;
61 }
62 
64  std::string s1,
65  const reco::CandidateRef& c2,
67  const reco::CandidateRef& c3,
68  std::string s3,
69  const reco::CandidateRef& c4,
70  std::string s4) {
71  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
76  return cmp;
77 }
void addDaughter(const reco::Candidate &dau, std::string name)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const Candidate &c1, std::string s1, const Candidate &c2, std::string s2)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
fixed size matrix