CMS 3D CMS Logo

Functions
makeNamedCompositeCandidate.cc File Reference
#include "CommonTools/CandUtils/interface/makeNamedCompositeCandidate.h"

Go to the source code of this file.

Functions

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const Candidate &c1, std::string s1, const Candidate &c2, std::string s2)
 
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const Candidate &c1, std::string s1, const Candidate &c2, std::string s2, const Candidate &c3, std::string s3)
 
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 makeNamedCompositeCandidateWithRefsToMaster (const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
 
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 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)
 

Function Documentation

◆ makeNamedCompositeCandidate() [1/3]

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const Candidate c1,
std::string  s1,
const Candidate c2,
std::string  s2 
)

Definition at line 5 of file makeNamedCompositeCandidate.cc.

8  {
9  helpers::NamedCompositeCandidateMaker cmp(unique_ptr<NamedCompositeCandidate>(new NamedCompositeCandidate));
10  cmp.addDaughter(c1, s1);
11  cmp.addDaughter(c2, s2);
12  return cmp;
13 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

◆ makeNamedCompositeCandidate() [2/3]

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const Candidate c1,
std::string  s1,
const Candidate c2,
std::string  s2,
const Candidate c3,
std::string  s3 
)

Definition at line 15 of file makeNamedCompositeCandidate.cc.

16  {
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 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

◆ makeNamedCompositeCandidate() [3/3]

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 
)

Definition at line 24 of file makeNamedCompositeCandidate.cc.

31  {
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 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

◆ makeNamedCompositeCandidateWithRefsToMaster() [1/3]

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
std::string  s1,
const reco::CandidateRef c2,
std::string  s2 
)

Definition at line 40 of file makeNamedCompositeCandidate.cc.

43  {
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 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

◆ makeNamedCompositeCandidateWithRefsToMaster() [2/3]

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
std::string  s1,
const reco::CandidateRef c2,
std::string  s2,
const reco::CandidateRef c3,
std::string  s3 
)

Definition at line 50 of file makeNamedCompositeCandidate.cc.

55  {
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 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

◆ makeNamedCompositeCandidateWithRefsToMaster() [3/3]

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 
)

Definition at line 63 of file makeNamedCompositeCandidate.cc.

70  {
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 }

References alignmentValidation::c1, fileCollector::cmp, and indexGen::s2.

indexGen.s2
s2
Definition: indexGen.py:107
reco::NamedCompositeCandidate
Definition: NamedCompositeCandidate.h:21
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
fileCollector.cmp
cmp
Definition: fileCollector.py:125
reco::ShallowCloneCandidate
Definition: ShallowCloneCandidate.h:15