CMS 3D CMS Logo

Functions
makeNamedCompositeCandidate.cc File Reference
#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 5 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

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

6  {
7  helpers::NamedCompositeCandidateMaker cmp( unique_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
8  cmp.addDaughter( c1, s1 );
9  cmp.addDaughter( c2, s2 );
10  return cmp;
11 }
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const Candidate c1,
std::string  s1,
const Candidate c2,
std::string  s2,
const Candidate c3,
std::string  s3 
)

Definition at line 13 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

15  {
16  helpers::NamedCompositeCandidateMaker cmp( unique_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
17  cmp.addDaughter( c1, s1 );
18  cmp.addDaughter( c2, s2 );
19  cmp.addDaughter( c3, s3 );
20  return cmp;
21 }
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 23 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

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

Definition at line 36 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

Referenced by makeNamedCompositeCandidate().

37  {
38  helpers::NamedCompositeCandidateMaker cmp( unique_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
39  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
40  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
41  return cmp;
42 }
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 45 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

47  {
48  helpers::NamedCompositeCandidateMaker cmp( unique_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
49  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
50  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
51  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ), s3 );
52  return cmp;
53 }
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 56 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

59  {
60  helpers::NamedCompositeCandidateMaker cmp( unique_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
61  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
62  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
63  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ), s3 );
64  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c4 ) ), s4 );
65  return cmp;
66 }
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31