test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
makeCompositeCandidate.cc File Reference
#include "PhysicsTools/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)
 

Function Documentation

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

Definition at line 5 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

5  {
6  helpers::CompositeCandidateMaker cmp( auto_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( auto_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( 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 }
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
const reco::CandidateRef c2 
)

Definition at line 32 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

33  {
34  helpers::CompositeCandidateMaker cmp( auto_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( auto_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( auto_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