CMS 3D CMS Logo

Static Public Member Functions

helper::BFieldIsolationAlgorithmSetup< Alg > Struct Template Reference

#include <CalIsolationExtrapolate.h>

List of all members.

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 16 of file CalIsolationExtrapolate.h.


Member Function Documentation

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

Definition at line 17 of file CalIsolationExtrapolate.h.

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

                                                            {
      edm::ESHandle<MagneticField> bFieldHandle;
      es.template get<IdealMagneticFieldRecord>().get( bFieldHandle );
      algo.setBfield( bFieldHandle.product() );
    }