CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

helpers::CompositeCandidateMaker makeCompositeCandidate (const Candidate &c1, const Candidate &c2)
 
helpers::CompositeCandidateMaker makeCompositeCandidate (const Candidate &c1, const Candidate &c2, const Candidate &c3)
 
helpers::CompositeCandidateMaker makeCompositeCandidate (const Candidate &c1, const Candidate &c2, const Candidate &c3, const Candidate &c4)
 
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster (const reco::CandidateRef &c1, const reco::CandidateRef &c2)
 
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster (const reco::CandidateRef &c1, const reco::CandidateRef &c2, const reco::CandidateRef &c3)
 
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster (const reco::CandidateRef &c1, const reco::CandidateRef &c2, const reco::CandidateRef &c3, const reco::CandidateRef &c4)
 
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate (const CandidatePtr &c1, const CandidatePtr &c2)
 
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate (const CandidatePtr &c1, const CandidatePtr &c2, const CandidatePtr &c3)
 
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate (const CandidatePtr &c1, const CandidatePtr &c2, const CandidatePtr &c3, const CandidatePtr &c4)
 

Function Documentation

helpers::CompositeCandidateMaker makeCompositeCandidate ( const Candidate c1,
const Candidate c2 
)

Definition at line 5 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

Referenced by helpers::CompositePtrCandidateMaker::release().

5  {
6  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
7  cmp.addDaughter( c1 );
8  cmp.addDaughter( c2 );
9  return cmp;
10 }
helpers::CompositeCandidateMaker makeCompositeCandidate ( const Candidate c1,
const Candidate c2,
const Candidate c3 
)

Definition at line 12 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

13  {
14  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
15  cmp.addDaughter( c1 );
16  cmp.addDaughter( c2 );
17  cmp.addDaughter( c3 );
18  return cmp;
19 }
helpers::CompositeCandidateMaker makeCompositeCandidate ( const Candidate c1,
const Candidate c2,
const Candidate c3,
const Candidate c4 
)

Definition at line 21 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

22  {
23  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
24  cmp.addDaughter( c1 );
25  cmp.addDaughter( c2 );
26  cmp.addDaughter( c3 );
27  cmp.addDaughter( c4 );
28  return cmp;
29 }
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
const reco::CandidateRef c2 
)

Definition at line 32 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

Referenced by makeCompositeCandidate().

33  {
34  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
35  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
36  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
37  return cmp;
38 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
const reco::CandidateRef c2,
const reco::CandidateRef c3 
)

Definition at line 41 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

43  {
44  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
45  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
46  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
47  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ) );
48  return cmp;
49 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
const reco::CandidateRef c2,
const reco::CandidateRef c3,
const reco::CandidateRef c4 
)

Definition at line 52 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

55  {
56  helpers::CompositeCandidateMaker cmp( unique_ptr<CompositeCandidate>( new CompositeCandidate ) );
57  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
58  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
59  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ) );
60  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c4 ) ) );
61  return cmp;
62 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate ( const CandidatePtr c1,
const CandidatePtr c2 
)

Definition at line 64 of file makeCompositeCandidate.cc.

References helpers::CompositePtrCandidateMaker::addDaughter().

Referenced by makeCompositeCandidateWithRefsToMaster().

64  {
65  helpers::CompositePtrCandidateMaker cmp( unique_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
66  cmp.addDaughter( c1 );
67  cmp.addDaughter( c2 );
68  return cmp;
69 }
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate ( const CandidatePtr c1,
const CandidatePtr c2,
const CandidatePtr c3 
)

Definition at line 71 of file makeCompositeCandidate.cc.

References helpers::CompositePtrCandidateMaker::addDaughter().

72  {
73  helpers::CompositePtrCandidateMaker cmp( unique_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
74  cmp.addDaughter( c1 );
75  cmp.addDaughter( c2 );
76  cmp.addDaughter( c3 );
77  return cmp;
78 }
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate ( const CandidatePtr c1,
const CandidatePtr c2,
const CandidatePtr c3,
const CandidatePtr c4 
)

Definition at line 80 of file makeCompositeCandidate.cc.

References helpers::CompositePtrCandidateMaker::addDaughter().

81  {
82  helpers::CompositePtrCandidateMaker cmp( unique_ptr<CompositePtrCandidate>( new CompositePtrCandidate ) );
83  cmp.addDaughter( c1 );
84  cmp.addDaughter( c2 );
85  cmp.addDaughter( c3 );
86  cmp.addDaughter( c4 );
87  return cmp;
88 }