CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
helpers::CompositeCandidateMaker Struct Reference

#include <makeCompositeCandidate.h>

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.

10  :
11  cmp_( cmp ) {
12  }
std::auto_ptr< reco::CompositeCandidate > cmp_
helpers::CompositeCandidateMaker::CompositeCandidateMaker ( std::auto_ptr< reco::CompositeCandidate cmp)
inline

Definition at line 9 of file makeCompositeCandidate.h.

9  :
10  cmp_( cmp ) {
11  }
std::auto_ptr< reco::CompositeCandidate > cmp_

Member Function Documentation

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

Definition at line 12 of file makeCompositeCandidate.h.

References cmp_.

12  {
13  cmp_->addDaughter( dau );
14  }
std::auto_ptr< reco::CompositeCandidate > cmp_
void helpers::CompositeCandidateMaker::addDaughter ( const reco::Candidate dau)
inline

Definition at line 13 of file makeCompositeCandidate.h.

References cmp_.

Referenced by makeCompositeCandidate(), and makeCompositeCandidateWithRefsToMaster().

13  {
14  cmp_->addDaughter( dau );
15  }
std::auto_ptr< reco::CompositeCandidate > cmp_
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().

16  {
17  setup.set( * cmp_ );
18  return release();
19  }
std::auto_ptr< reco::CompositeCandidate > cmp_
std::auto_ptr< reco::Candidate > 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().

17  {
18  setup.set( * cmp_ );
19  return release();
20  }
std::auto_ptr< reco::CompositeCandidate > cmp_
std::auto_ptr< reco::Candidate > release()
std::auto_ptr<reco::Candidate> helpers::CompositeCandidateMaker::release ( )
inlineprivate

Definition at line 22 of file makeCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

22  {
23  std::auto_ptr<reco::Candidate> ret( cmp_.get() );
24  cmp_.release();
25  return ret;
26  }
std::auto_ptr< reco::CompositeCandidate > cmp_
std::auto_ptr<reco::Candidate> helpers::CompositeCandidateMaker::release ( )
inlineprivate

Definition at line 23 of file makeCompositeCandidate.h.

References cmp_, and runTheMatrix::ret.

Referenced by operator[]().

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

Member Data Documentation

std::auto_ptr< reco::CompositeCandidate > helpers::CompositeCandidateMaker::cmp_
private

Definition at line 22 of file makeCompositeCandidate.h.

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