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::auto_ptr< reco::NamedCompositeCandidate > cmp)
 
template<typename S >
std::auto_ptr< reco::Candidateoperator[] (const S &setup)
 

Private Member Functions

std::auto_ptr< reco::Candidaterelease ()
 

Private Attributes

std::auto_ptr< reco::NamedCompositeCandidatecmp_
 

Detailed Description

Definition at line 9 of file makeNamedCompositeCandidate.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file makeNamedCompositeCandidate.h.

10  :
11  cmp_( cmp ) {
12  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_

Member Function Documentation

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

Definition at line 13 of file makeNamedCompositeCandidate.h.

References cmp_.

Referenced by makeNamedCompositeCandidate(), and makeNamedCompositeCandidateWithRefsToMaster().

13  {
14  cmp_->addDaughter( dau, name );
15  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_
template<typename S >
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::operator[] ( const S setup)
inline

Definition at line 17 of file makeNamedCompositeCandidate.h.

References cmp_, and release().

17  {
18  setup.set( * cmp_ );
19  return release();
20  }
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
std::auto_ptr< reco::NamedCompositeCandidate > cmp_
std::auto_ptr< reco::Candidate > release()
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( )
inlineprivate

Definition at line 23 of file makeNamedCompositeCandidate.h.

References alignmentValidation::c1, makeNamedCompositeCandidate(), indexGen::s2, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator[]().

23  {
24  std::auto_ptr<reco::Candidate> ret( cmp_.get() );
25  cmp_.release();
26  return ret;
27  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_

Member Data Documentation

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

Definition at line 22 of file makeNamedCompositeCandidate.h.

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