CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
makeNamedCompositeCandidate.cc File Reference
#include <memory>
#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

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

Definition at line 7 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

10  {
11  helpers::NamedCompositeCandidateMaker cmp(std::make_unique<NamedCompositeCandidate>());
12  cmp.addDaughter(c1, s1);
13  cmp.addDaughter(c2, s2);
14  return cmp;
15 }
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const Candidate c1,
std::string  s1,
const Candidate c2,
std::string  s2,
const Candidate c3,
std::string  s3 
)

Definition at line 17 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

18  {
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 }
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 26 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

33  {
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 }
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
std::string  s1,
const reco::CandidateRef c2,
std::string  s2 
)

Definition at line 42 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

45  {
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 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
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 52 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

57  {
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 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
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 65 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

72  {
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 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31