CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions
makeNamedCompositeCandidate.h File Reference
#include "DataFormats/Candidate/interface/NamedCompositeCandidate.h"
#include "DataFormats/Candidate/interface/ShallowCloneCandidate.h"
#include <memory>
#include <string>

Go to the source code of this file.

Classes

struct  helpers::NamedCompositeCandidateMaker
 

Namespaces

 helpers
 

Functions

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const reco::Candidate &c1, std::string s1, const reco::Candidate &c2, std::string s2)
 
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const reco::Candidate &c1, std::string s1, const reco::Candidate &c2, std::string s2, const reco::Candidate &c3, std::string s3)
 
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const reco::Candidate &c1, std::string s1, const reco::Candidate &c2, std::string s2, const reco::Candidate &c3, std::string s3, const reco::Candidate &c4, std::string s4)
 
template<typename C >
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate (const typename C::const_iterator &begin, const typename C::const_iterator &end, const std::vector< std::string >::const_iterator sbegin, const std::vector< std::string >::const_iterator send)
 
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)
 
template<typename C >
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster (const typename C::const_iterator &begin, const typename C::const_iterator &end, const std::vector< std::string >::const_iterator sbegin, const std::vector< std::string >::const_iterator send)
 

Function Documentation

helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const reco::Candidate c1,
std::string  s1,
const reco::Candidate c2,
std::string  s2 
)

Definition at line 5 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

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

Definition at line 13 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

15  {
16  helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
17  cmp.addDaughter( c1, s1 );
18  cmp.addDaughter( c2, s2 );
19  cmp.addDaughter( c3, s3 );
20  return cmp;
21 }
tuple s2
Definition: indexGen.py:106
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const reco::Candidate c1,
std::string  s1,
const reco::Candidate c2,
std::string  s2,
const reco::Candidate c3,
std::string  s3,
const reco::Candidate c4,
std::string  s4 
)

Definition at line 23 of file makeNamedCompositeCandidate.cc.

References helpers::NamedCompositeCandidateMaker::addDaughter().

26  {
27  helpers::NamedCompositeCandidateMaker cmp( auto_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 }
tuple s2
Definition: indexGen.py:106
template<typename C >
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidate ( const typename C::const_iterator &  begin,
const typename C::const_iterator &  end,
const std::vector< std::string >::const_iterator  sbegin,
const std::vector< std::string >::const_iterator  send 
)

Definition at line 54 of file makeNamedCompositeCandidate.h.

References helpers::NamedCompositeCandidateMaker::addDaughter(), and i.

57  {
59  cmp( std::auto_ptr<reco::NamedCompositeCandidate>( new reco::NamedCompositeCandidate ) );
60  std::vector<std::string>::const_iterator si = sbegin;
61  for( typename C::const_iterator i = begin; i != end && si != send; ++ i, ++si )
62  cmp.addDaughter( * i, * si );
63  return cmp;
64 }
int i
Definition: DBlmapReader.cc:9
#define end
Definition: vmac.h:38
#define begin
Definition: vmac.h:31
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().

37  {
38  helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
39  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
40  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
41  return cmp;
42 }
tuple s2
Definition: indexGen.py:106
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( auto_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 }
tuple s2
Definition: indexGen.py:106
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( auto_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 }
tuple s2
Definition: indexGen.py:106
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
template<typename C >
helpers::NamedCompositeCandidateMaker makeNamedCompositeCandidateWithRefsToMaster ( const typename C::const_iterator &  begin,
const typename C::const_iterator &  end,
const std::vector< std::string >::const_iterator  sbegin,
const std::vector< std::string >::const_iterator  send 
)

Definition at line 83 of file makeNamedCompositeCandidate.h.

References helpers::NamedCompositeCandidateMaker::addDaughter(), and i.

86  {
88  cmp( std::auto_ptr<reco::NamedCompositeCandidate>( new reco::NamedCompositeCandidate ) );
89  std::vector<std::string>::const_iterator si = sbegin;
90  for( typename C::const_iterator i = begin; i != end && si != send; ++ i, ++ si )
91  cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( * i ) ), * si );
92  return cmp;
93 }
int i
Definition: DBlmapReader.cc:9
#define end
Definition: vmac.h:38
edm::RefToBase< Candidate > CandidateBaseRef
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:31
#define begin
Definition: vmac.h:31