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::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::CompositeCandidate
cmp_
 

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 : cmp_(std::move(cmp)) {}
std::unique_ptr< reco::CompositeCandidate > cmp_
def move
Definition: eostools.py:511

Member Function Documentation

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

Definition at line 11 of file makeCompositeCandidate.h.

References cmp_.

Referenced by makeCompositeCandidate(), and makeCompositeCandidateWithRefsToMaster().

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

Definition at line 13 of file makeCompositeCandidate.h.

References cmp_, and release().

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

Definition at line 20 of file makeCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

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

Member Data Documentation

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

Definition at line 19 of file makeCompositeCandidate.h.

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