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

#include <makeCompositeCandidate.h>

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.

31  :
32  cmp_( cmp ) {
33  }
std::auto_ptr< reco::CompositePtrCandidate > 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().

34  {
35  cmp_->addDaughter( dau );
36  }
std::auto_ptr< reco::CompositePtrCandidate > cmp_
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().

38  {
39  setup.set( * cmp_ );
40  return release();
41  }
std::auto_ptr< reco::CompositePtrCandidate > cmp_
std::auto_ptr< reco::Candidate > release()
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::auto_ptr<reco::Candidate> helpers::CompositePtrCandidateMaker::release ( )
inlineprivate

Definition at line 44 of file makeCompositeCandidate.h.

References cmp_, and run_regression::ret.

Referenced by cuy.ValElement::__init__(), and operator[]().

44  {
45  std::auto_ptr<reco::Candidate> ret( cmp_.get() );
46  cmp_.release();
47  return ret;
48  }
std::auto_ptr< reco::CompositePtrCandidate > cmp_

Member Data Documentation

std::auto_ptr<reco::CompositePtrCandidate> helpers::CompositePtrCandidateMaker::cmp_
private

Definition at line 43 of file makeCompositeCandidate.h.

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