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));
45  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1);
46  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2);
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));
57  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1);
58  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2);
59  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)), s3);
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));
72  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)), s1);
73  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)), s2);
74  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)), s3);
75  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c4)), s4);
76  return cmp;
77 }
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:5
edm::Ref
Definition: AssociativeIterator.h:58
reco::NamedCompositeCandidate
Definition: NamedCompositeCandidate.h:21
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:40