CMS 3D CMS Logo

makeNamedCompositeCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 using namespace std;
4 
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 
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 
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 
37  const reco::CandidateRef & c2 , std::string s2 ) {
38  helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
41  return cmp;
42 }
43 
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 ) );
52  return cmp;
53 }
54 
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 ) );
65  return cmp;
66 }
void addDaughter(const reco::Candidate &dau, std::string name)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate(const Candidate &c1, std::string s1, const Candidate &c2, std::string s2)
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, std::string s1, const reco::CandidateRef &c2, std::string s2)
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
fixed size matrix