1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#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;
}
|