CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions
combiner::helpers::ShallowClone Struct Reference

#include <CandCombiner.h>

Public Types

typedef reco::CandidateBaseRef CandPtr
 
typedef reco::CandidateBaseRef CandPtr
 

Static Public Member Functions

template<typename CMP >
static void addDaughter (CMP &cmp, const reco::CandidatePtr &c, std::string name)
 
template<typename CMP >
static void addDaughter (CMP &cmp, const reco::CandidatePtr &c, std::string name)
 
static void addDaughter (reco::CompositeCandidate &cmp, const reco::CandidateBaseRef &c, const std::string name="")
 
static void addDaughter (reco::CompositeCandidate &cmp, const reco::CandidateBaseRef &c, const std::string name="")
 

Detailed Description

Definition at line 27 of file CandCombiner.h.

Member Typedef Documentation

Definition at line 28 of file CandCombiner.h.

Definition at line 28 of file CandCombiner.h.

Member Function Documentation

template<typename CMP >
static void combiner::helpers::ShallowClone::addDaughter ( CMP &  cmp,
const reco::CandidatePtr c,
std::string  name 
)
inlinestatic

Definition at line 27 of file NamedCandCombiner.h.

27  {
28  if(c->numberOfDaughters()==0)
29  cmp.addDaughter(reco::ShallowClonePtrCandidate(c), name);
30  else
31  cmp.addDaughter(*c, name);
32  }
template<typename CMP >
static void combiner::helpers::ShallowClone::addDaughter ( CMP &  cmp,
const reco::CandidatePtr c,
std::string  name 
)
inlinestatic

Definition at line 27 of file NamedCandCombiner.h.

27  {
28  if(c->numberOfDaughters()==0)
29  cmp.addDaughter(reco::ShallowClonePtrCandidate(c), name);
30  else
31  cmp.addDaughter(*c, name);
32  }
static void combiner::helpers::ShallowClone::addDaughter ( reco::CompositeCandidate cmp,
const reco::CandidateBaseRef c,
const std::string  name = "" 
)
inlinestatic

Definition at line 29 of file CandCombiner.h.

References reco::CompositeCandidate::addDaughter(), and mergeVDriftHistosByStation::name.

29  {
30  if(c->numberOfDaughters()==0)
32  else
33  cmp.addDaughter(*c, name);
34  }
virtual size_type numberOfDaughters() const =0
number of daughters
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
static void combiner::helpers::ShallowClone::addDaughter ( reco::CompositeCandidate cmp,
const reco::CandidateBaseRef c,
const std::string  name = "" 
)
inlinestatic

Definition at line 29 of file CandCombiner.h.

References reco::CompositeCandidate::addDaughter(), and mergeVDriftHistosByStation::name.

29  {
31  }
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter