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 35 of file component.h.

Member Function Documentation

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

Definition at line 41 of file component.h.

References EnergyCorrector::c, patCaloMETCorrections_cff::C, Exception, F(), mps_fire::i, and S().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

41  {
42  const C * dc = dynamic_cast<const C *>( & c );
43  if ( dc == 0 ) return T();
44  if ( i < (dc->*S)() ) return (dc->*F)( i );
45  else throw cms::Exception( "Error" ) << "index " << i << " out ot range";
46  }
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
long double T
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 36 of file component.h.

References EnergyCorrector::c, patCaloMETCorrections_cff::C, and S().

36  {
37  const C * dc = dynamic_cast<const C *>( & c );
38  if ( dc == 0 ) return 0;
39  return (dc->*S)();
40  }
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99