CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
combiner::helpers::ShallowClone Struct Reference

#include <CandCombiner.h>

Public Types

typedef reco::CandidateBaseRef CandPtr
 

Static Public Member Functions

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="")
 

Detailed Description

Definition at line 27 of file CandCombiner.h.

Member Typedef Documentation

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.

References ALCARECOPromptCalibProdSiPixelAli0T_cff::Selector.

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

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