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

Member Function Documentation

◆ addDaughter()

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

Definition at line 11 of file makeCompositeCandidate.h.

References cmp_.

11 { cmp_->addDaughter(dau); }
std::unique_ptr< reco::CompositeCandidate > 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.

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

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

◆ 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  }
std::unique_ptr< reco::CompositeCandidate > cmp_
ret
prodAgent to be discontinued

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().