CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

helpers::CompositeCandidateMaker Struct Reference

#include <makeCompositeCandidate.h>

List of all members.

Public Member Functions

void addDaughter (const reco::Candidate &dau)
void addDaughter (const reco::Candidate &dau)
 CompositeCandidateMaker (std::auto_ptr< reco::CompositeCandidate > cmp)
 CompositeCandidateMaker (std::auto_ptr< reco::CompositeCandidate > 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::CompositeCandidate
cmp_

Detailed Description

Definition at line 9 of file makeCompositeCandidate.h.


Constructor & Destructor Documentation

helpers::CompositeCandidateMaker::CompositeCandidateMaker ( std::auto_ptr< reco::CompositeCandidate cmp) [inline]

Definition at line 10 of file makeCompositeCandidate.h.

                                                                     :
      cmp_( cmp ) {
    }
helpers::CompositeCandidateMaker::CompositeCandidateMaker ( std::auto_ptr< reco::CompositeCandidate cmp) [inline]

Definition at line 9 of file makeCompositeCandidate.h.

                                                                       :
      cmp_( cmp ) {
    }

Member Function Documentation

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

Definition at line 13 of file makeCompositeCandidate.h.

References cmp_.

Referenced by makeCompositeCandidate(), and makeCompositeCandidateWithRefsToMaster().

                                                {
      cmp_->addDaughter( dau );
    }
void helpers::CompositeCandidateMaker::addDaughter ( const reco::Candidate dau) [inline]

Definition at line 12 of file makeCompositeCandidate.h.

References cmp_.

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

Definition at line 16 of file makeCompositeCandidate.h.

References cmp_, and release().

                                                             {
      setup.set( * cmp_ );
      return release();
    }
template<typename S >
std::auto_ptr<reco::Candidate> helpers::CompositeCandidateMaker::operator[] ( const S &  setup) [inline]

Definition at line 17 of file makeCompositeCandidate.h.

References cmp_, and release().

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

Definition at line 23 of file makeCompositeCandidate.h.

References cmp_, and run_regression::ret.

Referenced by operator[]().

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

Definition at line 22 of file makeCompositeCandidate.h.

References cmp_, and run_regression::ret.

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

Member Data Documentation

Definition at line 22 of file makeCompositeCandidate.h.

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