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::NamedCompositeCandidateMaker Struct Reference

#include <makeNamedCompositeCandidate.h>

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.

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

Definition at line 10 of file makeNamedCompositeCandidate.h.

10  :
11  cmp_( cmp ) {
12  }
std::auto_ptr< reco::NamedCompositeCandidate > 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().

13  {
14  cmp_->addDaughter( dau, name );
15  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_
void helpers::NamedCompositeCandidateMaker::addDaughter ( const reco::Candidate dau,
std::string  name 
)
inline

Definition at line 13 of file makeNamedCompositeCandidate.h.

References cmp_.

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

17  {
18  setup.set( * cmp_ );
19  return release();
20  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::auto_ptr< reco::Candidate > 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().

17  {
18  setup.set( * cmp_ );
19  return release();
20  }
std::auto_ptr< reco::NamedCompositeCandidate > cmp_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::auto_ptr< reco::Candidate > release()
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( )
inlineprivate

Definition at line 23 of file makeNamedCompositeCandidate.h.

References cmp_, and run_regression::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::NamedCompositeCandidate > cmp_
std::auto_ptr<reco::Candidate> helpers::NamedCompositeCandidateMaker::release ( )
inlineprivate

Definition at line 23 of file makeNamedCompositeCandidate.h.

References cmp_, and run_regression::ret.

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

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