CMS 3D CMS Logo

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.

Namespaces

namespace  helpers

Classes

struct  helpers::NamedCompositeCandidateMaker

Functions

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 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)
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)
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)
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)
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)


Function Documentation

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 
) [inline]

Definition at line 54 of file makeNamedCompositeCandidate.h.

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

00057                                                                              {
00058   helpers::NamedCompositeCandidateMaker 
00059     cmp( std::auto_ptr<reco::NamedCompositeCandidate>( new reco::NamedCompositeCandidate ) );
00060   std::vector<std::string>::const_iterator si = sbegin;
00061   for( typename C::const_iterator i = begin; i != end && si != send; ++ i, ++si ) 
00062     cmp.addDaughter( * i, * si );
00063   return cmp;
00064 }

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().

00026                                                                                                          {
00027   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00028   cmp.addDaughter( c1, s1 );
00029   cmp.addDaughter( c2, s2 );
00030   cmp.addDaughter( c3, s3 );
00031   cmp.addDaughter( c4, s4 );
00032   return cmp;
00033 }

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().

00015                                                                                                         {
00016   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00017   cmp.addDaughter( c1, s1 );
00018   cmp.addDaughter( c2, s2 );
00019   cmp.addDaughter( c3, s3 );
00020   return cmp;
00021 }

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().

00006                                                                                                          {
00007   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00008   cmp.addDaughter( c1, s1 );
00009   cmp.addDaughter( c2, s2 );
00010   return cmp;
00011 }

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 
) [inline]

Definition at line 83 of file makeNamedCompositeCandidate.h.

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

00086                                                                              {
00087   helpers::NamedCompositeCandidateMaker 
00088     cmp( std::auto_ptr<reco::NamedCompositeCandidate>( new reco::NamedCompositeCandidate ) );
00089   std::vector<std::string>::const_iterator si = sbegin;
00090   for( typename C::const_iterator i = begin; i != end && si != send; ++ i, ++ si ) 
00091     cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( * i ) ), * si );
00092   return cmp;
00093 }

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().

00059                                                                                           {
00060   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00061   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
00062   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
00063   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ), s3 );
00064   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c4 ) ), s4 );
00065   return cmp;
00066 }

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().

00047                                                                                          {
00048   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00049   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
00050   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
00051   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ), s3 );
00052   return cmp;
00053 }

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().

00037                                                                                           {
00038   helpers::NamedCompositeCandidateMaker cmp( auto_ptr<NamedCompositeCandidate>( new NamedCompositeCandidate ) );
00039   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ), s1 );
00040   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ), s2 );
00041   return cmp;
00042 }


Generated on Tue Jun 9 17:54:45 2009 for CMSSW by  doxygen 1.5.4