Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
CandUtils
src
makeNamedCompositeCandidate.cc
Go to the documentation of this file.
1
#include "
CommonTools/CandUtils/interface/makeNamedCompositeCandidate.h
"
2
using namespace
reco
;
3
using namespace
std;
4
5
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
const
Candidate
&
c1
, std::string s1,
6
const
Candidate
& c2 , std::string
s2
) {
7
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
8
cmp.
addDaughter
( c1, s1 );
9
cmp.
addDaughter
( c2, s2 );
10
return
cmp;
11
}
12
13
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
const
Candidate
&
c1
, std::string s1,
14
const
Candidate
& c2, std::string
s2
,
15
const
Candidate
& c3, std::string s3 ) {
16
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
17
cmp.
addDaughter
( c1, s1 );
18
cmp.
addDaughter
( c2, s2 );
19
cmp.
addDaughter
( c3, s3 );
20
return
cmp;
21
}
22
23
helpers::NamedCompositeCandidateMaker
makeNamedCompositeCandidate
(
const
Candidate
&
c1
, std::string s1,
24
const
Candidate
& c2, std::string
s2
,
25
const
Candidate
& c3, std::string s3,
26
const
Candidate
& c4, std::string s4 ) {
27
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
28
cmp.
addDaughter
( c1, s1 );
29
cmp.
addDaughter
( c2, s2 );
30
cmp.
addDaughter
( c3, s3 );
31
cmp.
addDaughter
( c4, s4 );
32
return
cmp;
33
}
34
35
helpers::NamedCompositeCandidateMaker
36
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
, std::string s1,
37
const
reco::CandidateRef
& c2 , std::string
s2
) {
38
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
39
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c1 ) ), s1 );
40
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c2 ) ), s2 );
41
return
cmp;
42
}
43
44
helpers::NamedCompositeCandidateMaker
45
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
, std::string s1,
46
const
reco::CandidateRef
& c2, std::string
s2
,
47
const
reco::CandidateRef
& c3, std::string s3 ) {
48
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
49
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c1 ) ), s1 );
50
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c2 ) ), s2 );
51
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c3 ) ), s3 );
52
return
cmp;
53
}
54
55
helpers::NamedCompositeCandidateMaker
56
makeNamedCompositeCandidateWithRefsToMaster
(
const
reco::CandidateRef
&
c1
, std::string s1,
57
const
reco::CandidateRef
& c2, std::string
s2
,
58
const
reco::CandidateRef
& c3, std::string s3,
59
const
reco::CandidateRef
& c4, std::string s4 ) {
60
helpers::NamedCompositeCandidateMaker
cmp( auto_ptr<NamedCompositeCandidate>(
new
NamedCompositeCandidate
) );
61
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c1 ) ), s1 );
62
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c2 ) ), s2 );
63
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c3 ) ), s3 );
64
cmp.
addDaughter
(
ShallowCloneCandidate
(
CandidateBaseRef
( c4 ) ), s4 );
65
return
cmp;
66
}
alignmentValidation.c1
tuple c1
do drawing
Definition:
alignmentValidation.py:1023
helpers::NamedCompositeCandidateMaker
Definition:
makeNamedCompositeCandidate.h:9
reco::Candidate
Definition:
Candidate.h:29
helpers::NamedCompositeCandidateMaker::addDaughter
void addDaughter(const reco::Candidate &dau, std::string name)
Definition:
makeNamedCompositeCandidate.h:13
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
reco::ShallowCloneCandidate
Definition:
ShallowCloneCandidate.h:17
indexGen.s2
tuple s2
Definition:
indexGen.py:106
makeNamedCompositeCandidate
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const reco::Candidate &c1, std::string s1, const reco::Candidate &c2, std::string s2)
Definition:
makeNamedCompositeCandidate.cc:5
makeNamedCompositeCandidateWithRefsToMaster
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
Definition:
makeNamedCompositeCandidate.cc:36
reco::CandidateBaseRef
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition:
CandidateFwd.h:31
makeNamedCompositeCandidate.h
reco::NamedCompositeCandidate
Definition:
NamedCompositeCandidate.h:23
edm::Ref
Definition:
AssociativeIterator.h:52
Generated for CMSSW Reference Manual by
1.8.5