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 
)
helpers::CompositeCandidateMaker makeCompositeCandidate ( const Candidate c1,
const Candidate c2,
const Candidate c3 
)

Definition at line 12 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter(), and fileCollector::cmp.

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

Definition at line 20 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter(), and fileCollector::cmp.

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

Definition at line 32 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter(), and fileCollector::cmp.

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 40 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter(), and fileCollector::cmp.

42  {
43  helpers::CompositeCandidateMaker cmp(unique_ptr<CompositeCandidate>(new CompositeCandidate));
44  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)));
45  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)));
46  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)));
47  return cmp;
48 }
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 50 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter(), and fileCollector::cmp.

53  {
54  helpers::CompositeCandidateMaker cmp(unique_ptr<CompositeCandidate>(new CompositeCandidate));
55  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c1)));
56  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c2)));
57  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c3)));
58  cmp.addDaughter(ShallowCloneCandidate(CandidateBaseRef(c4)));
59  return cmp;
60 }
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 
)
helpers::CompositePtrCandidateMaker makeCompositePtrCandidate ( const CandidatePtr c1,
const CandidatePtr c2,
const CandidatePtr c3 
)

Definition at line 69 of file makeCompositeCandidate.cc.

References helpers::CompositePtrCandidateMaker::addDaughter(), and fileCollector::cmp.

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

Definition at line 79 of file makeCompositeCandidate.cc.

References helpers::CompositePtrCandidateMaker::addDaughter(), and fileCollector::cmp.

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