CMS 3D CMS Logo

List of all members | Static Public Member Functions
helper::BFieldIsolationAlgorithmSetup< Alg > Struct Template Reference

#include <CalIsolationExtrapolate.h>

Static Public Member Functions

static void init (Alg &algo, const edm::EventSetup &es)
 

Detailed Description

template<typename Alg>
struct helper::BFieldIsolationAlgorithmSetup< Alg >

Definition at line 17 of file CalIsolationExtrapolate.h.

Member Function Documentation

template<typename Alg >
static void helper::BFieldIsolationAlgorithmSetup< Alg >::init ( Alg &  algo,
const edm::EventSetup es 
)
inlinestatic

Definition at line 18 of file CalIsolationExtrapolate.h.

References edm::ESHandle< T >::product().

18  {
19  edm::ESHandle<MagneticField> bFieldHandle;
20  es.template get<IdealMagneticFieldRecord>().get( bFieldHandle );
21  algo.setBfield( bFieldHandle.product() );
22  }
T const * product() const
Definition: ESHandle.h:86