CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

helpers::NamedCompositeCandidateMaker Struct Reference

#include <makeNamedCompositeCandidate.h>

List of all members.

Public Member Functions

void addDaughter (const reco::Candidate &dau, std::string name)
void addDaughter (const reco::Candidate &dau, std::string name)
 NamedCompositeCandidateMaker (std::auto_ptr< reco::NamedCompositeCandidate > cmp)
 NamedCompositeCandidateMaker (std::auto_ptr< reco::NamedCompositeCandidate > cmp)
template<typename S >
std::auto_ptr< reco::Candidateoperator[] (const S &setup)
template<typename S >
std::auto_ptr< reco::Candidateoperator[] (const S &setup)

Private Member Functions

std::auto_ptr< reco::Candidaterelease ()
std::auto_ptr< reco::Candidaterelease ()

Private Attributes

std::auto_ptr
< reco::NamedCompositeCandidate
cmp_

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.

                                                                                 :
      cmp_( cmp ) {
    }
helpers::NamedCompositeCandidateMaker::NamedCompositeCandidateMaker ( std::auto_ptr< reco::NamedCompositeCandidate cmp) [inline]

Definition at line 10 of file makeNamedCompositeCandidate.h.

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

                                                                  {
      cmp_->addDaughter( dau, name );
    }
void helpers::NamedCompositeCandidateMaker::addDaughter ( const reco::Candidate dau,
std::string  name 
) [inline]

Definition at line 13 of file makeNamedCompositeCandidate.h.

References cmp_.

                                                                  {
      cmp_->addDaughter( dau, name );
    }
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().

                                                             {
      setup.set( * cmp_ );
      return release();
    }
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().

                                                             {
      setup.set( * cmp_ );
      return release();
    }
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( ) [inline, private]

Definition at line 23 of file makeNamedCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

                                         {
      std::auto_ptr<reco::Candidate> ret( cmp_.get() );
      cmp_.release();
      return ret;
    }
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( ) [inline, private]

Definition at line 23 of file makeNamedCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

                                         {
      std::auto_ptr<reco::Candidate> ret( cmp_.get() );
      cmp_.release();
      return ret;
    }

Member Data Documentation

Definition at line 22 of file makeNamedCompositeCandidate.h.

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