CMS 3D CMS Logo

makeCompositeCandidate.h File Reference

#include "DataFormats/Candidate/interface/CompositeCandidate.h"
#include "DataFormats/Candidate/interface/ShallowCloneCandidate.h"
#include <memory>

Go to the source code of this file.

Namespaces

namespace  helpers

Classes

struct  helpers::CompositeCandidateMaker

Functions

template<typename C>
helpers::CompositeCandidateMaker makeCompositeCandidate (const typename C::const_iterator &begin, const typename C::const_iterator &end)
helpers::CompositeCandidateMaker makeCompositeCandidate (const reco::Candidate &c1, const reco::Candidate &c2, const reco::Candidate &c3, const reco::Candidate &c4)
helpers::CompositeCandidateMaker makeCompositeCandidate (const reco::Candidate &c1, const reco::Candidate &c2, const reco::Candidate &c3)
helpers::CompositeCandidateMaker makeCompositeCandidate (const reco::Candidate &c1, const reco::Candidate &c2)
template<typename C>
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster (const typename C::const_iterator &begin, const typename C::const_iterator &end)
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster (const reco::CandidateRef &c1, const reco::CandidateRef &c2, const reco::CandidateRef &c3, const reco::CandidateRef &c4)
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)


Function Documentation

template<typename C>
helpers::CompositeCandidateMaker makeCompositeCandidate ( const typename C::const_iterator &  begin,
const typename C::const_iterator &  end 
) [inline]

Definition at line 53 of file makeCompositeCandidate.h.

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

00054                                                                {
00055   helpers::CompositeCandidateMaker 
00056     cmp( std::auto_ptr<reco::CompositeCandidate>( new reco::CompositeCandidate ) );
00057   for( typename C::const_iterator i = begin; i != end; ++ i ) 
00058     cmp.addDaughter( * i );
00059   return cmp;
00060 }

helpers::CompositeCandidateMaker makeCompositeCandidate ( const reco::Candidate c1,
const reco::Candidate c2,
const reco::Candidate c3,
const reco::Candidate c4 
)

Definition at line 21 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

00022                                                                                                      {
00023   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00024   cmp.addDaughter( c1 );
00025   cmp.addDaughter( c2 );
00026   cmp.addDaughter( c3 );
00027   cmp.addDaughter( c4 );
00028   return cmp;
00029 }

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

Definition at line 12 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

00013                                                                                 {
00014   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00015   cmp.addDaughter( c1 );
00016   cmp.addDaughter( c2 );
00017   cmp.addDaughter( c3 );
00018   return cmp;
00019 }

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

Definition at line 5 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

00005                                                                                                     {
00006   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00007   cmp.addDaughter( c1 );
00008   cmp.addDaughter( c2 );
00009   return cmp;
00010 }

template<typename C>
helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const typename C::const_iterator &  begin,
const typename C::const_iterator &  end 
) [inline]

Definition at line 79 of file makeCompositeCandidate.h.

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

00080                                                                                {
00081   helpers::CompositeCandidateMaker 
00082     cmp( std::auto_ptr<reco::CompositeCandidate>( new reco::CompositeCandidate ) );
00083   for( typename C::const_iterator i = begin; i != end; ++ i ) 
00084     cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( * i ) ) );
00085   return cmp;
00086 }

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

00055                                                                       {
00056   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00057   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
00058   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
00059   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ) );
00060   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c4 ) ) );
00061   return cmp;
00062 }

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

00043                                                                       {
00044   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00045   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
00046   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
00047   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c3 ) ) );
00048   return cmp;
00049 }

helpers::CompositeCandidateMaker makeCompositeCandidateWithRefsToMaster ( const reco::CandidateRef c1,
const reco::CandidateRef c2 
)

Definition at line 32 of file makeCompositeCandidate.cc.

References helpers::CompositeCandidateMaker::addDaughter().

00033                                                                       {
00034   helpers::CompositeCandidateMaker cmp( auto_ptr<CompositeCandidate>( new CompositeCandidate ) );
00035   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c1 ) ) );
00036   cmp.addDaughter( ShallowCloneCandidate( CandidateBaseRef( c2 ) ) );
00037   return cmp;
00038 }


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