CMS 3D CMS Logo

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

#include <makeCompositeCandidate.h>

Public Member Functions

void addDaughter (const reco::CandidatePtr &dau)
 
 CompositePtrCandidateMaker (std::unique_ptr< reco::CompositePtrCandidate > 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::CompositePtrCandidatecmp_
 

Detailed Description

Definition at line 27 of file makeCompositeCandidate.h.

Constructor & Destructor Documentation

◆ CompositePtrCandidateMaker()

helpers::CompositePtrCandidateMaker::CompositePtrCandidateMaker ( std::unique_ptr< reco::CompositePtrCandidate cmp)
inline

Definition at line 28 of file makeCompositeCandidate.h.

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

Member Function Documentation

◆ addDaughter()

void helpers::CompositePtrCandidateMaker::addDaughter ( const reco::CandidatePtr dau)
inline

Definition at line 29 of file makeCompositeCandidate.h.

29 { cmp_->addDaughter(dau); }

References cmp_.

◆ operator[]()

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

Definition at line 31 of file makeCompositeCandidate.h.

31  {
32  setup.set(*cmp_);
33  return release();
34  }

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

◆ release()

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

Definition at line 38 of file makeCompositeCandidate.h.

38  {
39  std::unique_ptr<reco::Candidate> ret(cmp_.get());
40  cmp_.release();
41  return ret;
42  }

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

Member Data Documentation

◆ cmp_

std::unique_ptr<reco::CompositePtrCandidate> helpers::CompositePtrCandidateMaker::cmp_
private

Definition at line 37 of file makeCompositeCandidate.h.

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

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