CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

helpers::CompositePtrCandidateMaker Struct Reference

#include <makeCompositeCandidate.h>

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 30 of file makeCompositeCandidate.h.


Constructor & Destructor Documentation

helpers::CompositePtrCandidateMaker::CompositePtrCandidateMaker ( std::auto_ptr< reco::CompositePtrCandidate cmp) [inline]

Definition at line 31 of file makeCompositeCandidate.h.

                                                                           :
      cmp_( cmp ) {
    }

Member Function Documentation

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

Definition at line 34 of file makeCompositeCandidate.h.

References cmp_.

Referenced by makeCompositePtrCandidate().

                                                   {
      cmp_->addDaughter( dau );
    }
template<typename S >
std::auto_ptr<reco::Candidate> helpers::CompositePtrCandidateMaker::operator[] ( const S &  setup) [inline]

Definition at line 38 of file makeCompositeCandidate.h.

References cmp_, and release().

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

Definition at line 44 of file makeCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

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

Member Data Documentation

Definition at line 43 of file makeCompositeCandidate.h.

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