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

◆ CandPtr

Definition at line 28 of file CandCombiner.h.

Member Function Documentation

◆ addDaughter() [1/2]

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)
30  else
31  cmp.addDaughter(*c, name);
32  }

References HltBtagPostValidation_cff::c, fileCollector::cmp, and Skims_PA_cff::name.

◆ addDaughter() [2/2]

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.

31  {
32  cmp.addDaughter(reco::ShallowCloneCandidate(c), name);
33  }

References HltBtagPostValidation_cff::c, fileCollector::cmp, and Skims_PA_cff::name.

HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
fileCollector.cmp
cmp
Definition: fileCollector.py:125
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
reco::ShallowCloneCandidate
Definition: ShallowCloneCandidate.h:15
reco::ShallowClonePtrCandidate
Definition: ShallowClonePtrCandidate.h:15