CMS 3D CMS Logo

makeCompositeCandidate.cc
Go to the documentation of this file.
2 using namespace reco;
3 using namespace std;
4 
6  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
7  cmp.addDaughter( c1 );
8  cmp.addDaughter( c2 );
9  return cmp;
10 }
11 
13  const Candidate & c3 ) {
14  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
15  cmp.addDaughter( c1 );
16  cmp.addDaughter( c2 );
17  cmp.addDaughter( c3 );
18  return cmp;
19 }
20 
22  const Candidate & c3,const Candidate & c4 ) {
23  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
24  cmp.addDaughter( c1 );
25  cmp.addDaughter( c2 );
26  cmp.addDaughter( c3 );
27  cmp.addDaughter( c4 );
28  return cmp;
29 }
30 
33  const reco::CandidateRef & c2 ) {
34  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
37  return cmp;
38 }
39 
42  const reco::CandidateRef & c2,
43  const reco::CandidateRef & c3 ) {
44  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
48  return cmp;
49 }
50 
53  const reco::CandidateRef & c2,
54  const reco::CandidateRef & c3,
55  const reco::CandidateRef & c4 ) {
56  helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
61  return cmp;
62 }
63 
65  helpers::CompositePtrCandidateMaker cmp( auto_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
66  cmp.addDaughter( c1 );
67  cmp.addDaughter( c2 );
68  return cmp;
69 }
70 
72  const CandidatePtr & c3 ) {
73  helpers::CompositePtrCandidateMaker cmp( auto_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
74  cmp.addDaughter( c1 );
75  cmp.addDaughter( c2 );
76  cmp.addDaughter( c3 );
77  return cmp;
78 }
79 
81  const CandidatePtr & c3, const CandidatePtr & c4 ) {
82  helpers::CompositePtrCandidateMaker cmp( auto_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
83  cmp.addDaughter( c1 );
84  cmp.addDaughter( c2 );
85  cmp.addDaughter( c3 );
86  cmp.addDaughter( c4 );
87  return cmp;
88 }
89 
void addDaughter(const reco::CandidatePtr &dau)
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster(const reco::CandidateRef &c1, const reco::CandidateRef &c2)
void addDaughter(const reco::Candidate &dau)
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate(const CandidatePtr &c1, const CandidatePtr &c2)
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
fixed size matrix
helpers::CompositeCandidateMaker makeCompositeCandidate(const Candidate &c1, const Candidate &c2)