CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
helpers::CompositeCandidateMaker Struct Reference

#include <makeCompositeCandidate.h>

Public Member Functions

void addDaughter (const reco::Candidate &dau)
 
 CompositeCandidateMaker (std::unique_ptr< reco::CompositeCandidate > cmp)
 
template<typename S >
std::unique_ptr< reco::Candidateoperator[] (const S &setup)
 

Private Member Functions

std::unique_ptr< reco::Candidaterelease ()
 

Private Attributes

std::unique_ptr< reco::CompositeCandidatecmp_
 

Detailed Description

Definition at line 9 of file makeCompositeCandidate.h.

Constructor & Destructor Documentation

helpers::CompositeCandidateMaker::CompositeCandidateMaker ( std::unique_ptr< reco::CompositeCandidate cmp)
inline

Definition at line 10 of file makeCompositeCandidate.h.

10  :
11  cmp_( std::move(cmp) ) {
12  }
std::unique_ptr< reco::CompositeCandidate > cmp_
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

void helpers::CompositeCandidateMaker::addDaughter ( const reco::Candidate dau)
inline

Definition at line 13 of file makeCompositeCandidate.h.

References cmp_.

Referenced by makeCompositeCandidate(), and makeCompositeCandidateWithRefsToMaster().

13  {
14  cmp_->addDaughter( dau );
15  }
std::unique_ptr< reco::CompositeCandidate > cmp_
template<typename S >
std::unique_ptr<reco::Candidate> helpers::CompositeCandidateMaker::operator[] ( const S setup)
inline

Definition at line 17 of file makeCompositeCandidate.h.

References cmp_, and release().

17  {
18  setup.set( * cmp_ );
19  return release();
20  }
std::unique_ptr< reco::CompositeCandidate > cmp_
std::unique_ptr< reco::Candidate > release()
std::unique_ptr<reco::Candidate> helpers::CompositeCandidateMaker::release ( )
inlineprivate

Definition at line 23 of file makeCompositeCandidate.h.

References eostools::move().

Referenced by operator[](), and helpers::CompositePtrCandidateMaker::operator[]().

23  {
24  std::unique_ptr<reco::Candidate> ret( std::move(cmp_.get()) );
25  cmp_.release();
26  return ret;
27  }
std::unique_ptr< reco::CompositeCandidate > cmp_
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

std::unique_ptr<reco::CompositeCandidate> helpers::CompositeCandidateMaker::cmp_
private