CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
helpers::NamedCompositeCandidateMaker Struct Reference

#include <makeNamedCompositeCandidate.h>

Public Member Functions

void addDaughter (const reco::Candidate &dau, std::string name)
 
 NamedCompositeCandidateMaker (std::unique_ptr< reco::NamedCompositeCandidate > 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::NamedCompositeCandidate
cmp_
 

Detailed Description

Definition at line 9 of file makeNamedCompositeCandidate.h.

Constructor & Destructor Documentation

helpers::NamedCompositeCandidateMaker::NamedCompositeCandidateMaker ( std::unique_ptr< reco::NamedCompositeCandidate cmp)
inline

Definition at line 10 of file makeNamedCompositeCandidate.h.

10 : cmp_(std::move(cmp)) {}
def move
Definition: eostools.py:511
std::unique_ptr< reco::NamedCompositeCandidate > cmp_

Member Function Documentation

void helpers::NamedCompositeCandidateMaker::addDaughter ( const reco::Candidate dau,
std::string  name 
)
inline

Definition at line 12 of file makeNamedCompositeCandidate.h.

References cmp_.

Referenced by makeNamedCompositeCandidate(), and makeNamedCompositeCandidateWithRefsToMaster().

12 { cmp_->addDaughter(dau, name); }
std::unique_ptr< reco::NamedCompositeCandidate > cmp_
template<typename S >
std::unique_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::operator[] ( const S setup)
inline

Definition at line 14 of file makeNamedCompositeCandidate.h.

References cmp_, and release().

14  {
15  setup.set(*cmp_);
16  return release();
17  }
std::unique_ptr< reco::Candidate > release()
std::unique_ptr< reco::NamedCompositeCandidate > cmp_
std::unique_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( )
inlineprivate

Definition at line 21 of file makeNamedCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

21  {
22  std::unique_ptr<reco::Candidate> ret(cmp_.get());
23  cmp_.release();
24  return ret;
25  }
tuple ret
prodAgent to be discontinued
std::unique_ptr< reco::NamedCompositeCandidate > cmp_

Member Data Documentation

std::unique_ptr<reco::NamedCompositeCandidate> helpers::NamedCompositeCandidateMaker::cmp_
private

Definition at line 20 of file makeNamedCompositeCandidate.h.

Referenced by addDaughter(), operator[](), and release().