CMS 3D CMS Logo

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::NamedCompositeCandidatecmp_
 

Detailed Description

Definition at line 9 of file makeNamedCompositeCandidate.h.

Constructor & Destructor Documentation

◆ NamedCompositeCandidateMaker()

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

Definition at line 10 of file makeNamedCompositeCandidate.h.

10 : cmp_(std::move(cmp)) {}

Member Function Documentation

◆ addDaughter()

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

Definition at line 12 of file makeNamedCompositeCandidate.h.

12 { cmp_->addDaughter(dau, name); }

References cmp_, and Skims_PA_cff::name.

◆ operator[]()

template<typename S >
std::unique_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::operator[] ( const S setup)
inline

Definition at line 14 of file makeNamedCompositeCandidate.h.

14  {
15  setup.set(*cmp_);
16  return release();
17  }

References cmp_, release(), and singleTopDQM_cfi::setup.

◆ release()

std::unique_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( )
inlineprivate

Definition at line 21 of file makeNamedCompositeCandidate.h.

21  {
22  std::unique_ptr<reco::Candidate> ret(cmp_.get());
23  cmp_.release();
24  return ret;
25  }

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

Member Data Documentation

◆ cmp_

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

Definition at line 20 of file makeNamedCompositeCandidate.h.

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

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:543
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
helpers::NamedCompositeCandidateMaker::cmp_
std::unique_ptr< reco::NamedCompositeCandidate > cmp_
Definition: makeNamedCompositeCandidate.h:20
helpers::NamedCompositeCandidateMaker::release
std::unique_ptr< reco::Candidate > release()
Definition: makeNamedCompositeCandidate.h:21
eostools.move
def move(src, dest)
Definition: eostools.py:511
fileCollector.cmp
cmp
Definition: fileCollector.py:125
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17