CMS 3D CMS Logo

List of all members | Static Public Member Functions
reco::componenthelper::MultipleComponents< C, T, F, S > Struct Template Reference

#include <component.h>

Static Public Member Functions

static T get (const Candidate &c, size_t i)
 
static size_t numberOf (const Candidate &c)
 

Detailed Description

template<typename C, typename T, T(C::*)(size_t) const F, size_t(C::*)() const S>
struct reco::componenthelper::MultipleComponents< C, T, F, S >

Definition at line 36 of file component.h.

Member Function Documentation

◆ get()

template<typename C , typename T , T(C::*)(size_t) const F, size_t(C::*)() const S>
static T reco::componenthelper::MultipleComponents< C, T, F, S >::get ( const Candidate c,
size_t  i 
)
inlinestatic

◆ numberOf()

template<typename C , typename T , T(C::*)(size_t) const F, size_t(C::*)() const S>
static size_t reco::componenthelper::MultipleComponents< C, T, F, S >::numberOf ( const Candidate c)
inlinestatic

Definition at line 37 of file component.h.

37  {
38  const C *dc = dynamic_cast<const C *>(&c);
39  if (dc == nullptr)
40  return 0;
41  return (dc->*S)();
42  }

References HltBtagPostValidation_cff::c, and gen::C.

mps_fire.i
i
Definition: mps_fire.py:355
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
gen::C
C
Definition: PomwigHadronizer.cc:76
T
long double T
Definition: Basic3DVectorLD.h:48
Exception
Definition: hltDiff.cc:246
S
Definition: CSCDBL1TPParametersExtended.h:16