CMS 3D CMS Logo

helpers::NamedCompositeCandidateMaker Struct Reference

#include <PhysicsTools/CandUtils/interface/makeNamedCompositeCandidate.h>

List of all members.

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::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.

00010                                                                                  :
00011       cmp_( cmp ) {
00012     }


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

00013                                                                   {
00014       cmp_->addDaughter( dau, name );
00015     }

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

00017                                                              {
00018       setup.set( * cmp_ );
00019       return release();
00020     }

std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( void   )  [inline, private]

Definition at line 23 of file makeNamedCompositeCandidate.h.

References cmp_.

Referenced by operator[]().

00023                                          {
00024       std::auto_ptr<reco::Candidate> ret( cmp_.get() );
00025       cmp_.release();
00026       return ret;
00027     }


Member Data Documentation

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

Definition at line 22 of file makeNamedCompositeCandidate.h.

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


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:30 2009 for CMSSW by  doxygen 1.5.4