CMS 3D CMS Logo

Static Public Member Functions

reco::componenthelper::SingleComponent< C, T, F > Struct Template Reference

#include <component.h>

List of all members.

Static Public Member Functions

static T get (const Candidate &c)

Detailed Description

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

Definition at line 27 of file component.h.


Member Function Documentation

template<typename C , typename T , T(C::*)() const F>
static T reco::componenthelper::SingleComponent< C, T, F >::get ( const Candidate c) [inline, static]

Definition at line 28 of file component.h.

References trackerHits::c, funct::C, and F().

                                          {
        const C * dc = dynamic_cast<const C *>( & c );
        if ( dc == 0 ) return T();
        return (dc->*F)();
      }