CommonTools
CandUtils
src
makeNamedCompositeCandidate.cc
Go to the documentation of this file.
1
#include <memory>
2
3
#include "
CommonTools/CandUtils/interface/makeNamedCompositeCandidate.h
"
4
using namespace
reco
;
5
using namespace
std
;
6
7
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
const
Candidate
&
c1
,
8
std::string
s1,
9
const
Candidate
& c2,
10
std::string
s2
) {
11
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
12
cmp
.addDaughter(
c1
, s1);
13
cmp
.addDaughter(c2,
s2
);
14
return
cmp
;
15
}
16
17
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
18
const
Candidate
&
c1
,
std::string
s1,
const
Candidate
& c2,
std::string
s2
,
const
Candidate
& c3,
std::string
s3) {
19
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
20
cmp
.addDaughter(
c1
, s1);
21
cmp
.addDaughter(c2,
s2
);
22
cmp
.addDaughter(c3, s3);
23
return
cmp
;
24
}
25
26
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
const
Candidate
&
c1
,
27
std::string
s1,
28
const
Candidate
& c2,
29
std::string
s2
,
30
const
Candidate
& c3,
31
std::string
s3,
32
const
Candidate
& c4,
33
std::string
s4) {
34
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
35
cmp
.addDaughter(
c1
, s1);
36
cmp
.addDaughter(c2,
s2
);
37
cmp
.addDaughter(c3, s3);
38
cmp
.addDaughter(c4, s4);
39
return
cmp
;
40
}
41
42
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
,
43
std::string
s1,
44
const
reco::CandidateRef
& c2,
45
std::string
s2
) {
46
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
47
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(
c1
)), s1);
48
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c2)),
s2
);
49
return
cmp
;
50
}
51
52
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
,
53
std::string
s1,
54
const
reco::CandidateRef
& c2,
55
std::string
s2
,
56
const
reco::CandidateRef
& c3,
57
std::string
s3) {
58
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
59
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(
c1
)), s1);
60
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c2)),
s2
);
61
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c3)), s3);
62
return
cmp
;
63
}
64
65
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
,
66
std::string
s1,
67
const
reco::CandidateRef
& c2,
68
std::string
s2
,
69
const
reco::CandidateRef
& c3,
70
std::string
s3,
71
const
reco::CandidateRef
& c4,
72
std::string
s4) {
73
helpers::NamedCompositeCandidateMaker
cmp
(std::make_unique<NamedCompositeCandidate>());
74
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(
c1
)), s1);
75
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c2)),
s2
);
76
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c3)), s3);
77
cmp
.addDaughter(
ShallowCloneCandidate
(
CandidateBaseRef
(c4)), s4);
78
return
cmp
;
79
}
makeNamedCompositeCandidate.h
indexGen.s2
s2
Definition:
indexGen.py:107
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
makeNamedCompositeCandidate
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const Candidate &c1, std::string s1, const Candidate &c2, std::string s2)
Definition:
makeNamedCompositeCandidate.cc:7
edm::Ref
Definition:
AssociativeIterator.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::CandidateBaseRef
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition:
CandidateFwd.h:31
alignmentValidation.c1
c1
do drawing
Definition:
alignmentValidation.py:1025
helpers::NamedCompositeCandidateMaker
Definition:
makeNamedCompositeCandidate.h:9
reco::Candidate
Definition:
Candidate.h:27
std
Definition:
JetResolutionObject.h:76
fileCollector.cmp
cmp
Definition:
fileCollector.py:125
reco::ShallowCloneCandidate
Definition:
ShallowCloneCandidate.h:15
makeNamedCompositeCandidateWithRefsToMaster
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
Definition:
makeNamedCompositeCandidate.cc:42
Generated for CMSSW Reference Manual by
1.8.16