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

◆ CompositeCandidateMaker()

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

Definition at line 10 of file makeCompositeCandidate.h.

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

Member Function Documentation

◆ addDaughter()

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

Definition at line 11 of file makeCompositeCandidate.h.

11 { cmp_->addDaughter(dau); }

References cmp_.

◆ operator[]()

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

Definition at line 13 of file makeCompositeCandidate.h.

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

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

◆ release()

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

Definition at line 20 of file makeCompositeCandidate.h.

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

References cmp_, eostools::move(), and runTheMatrix::ret.

Referenced by operator[]().

Member Data Documentation

◆ cmp_

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

Definition at line 19 of file makeCompositeCandidate.h.

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

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:373
helpers::CompositeCandidateMaker::cmp_
std::unique_ptr< reco::CompositeCandidate > cmp_
Definition: makeCompositeCandidate.h:19
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
helpers::CompositeCandidateMaker::release
std::unique_ptr< reco::Candidate > release()
Definition: makeCompositeCandidate.h:20
eostools.move
def move(src, dest)
Definition: eostools.py:511
fileCollector.cmp
cmp
Definition: fileCollector.py:125