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

Member Function Documentation

◆ init()

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

Definition at line 17 of file CalIsolationExtrapolate.h.

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

References edm::EventSetup::get(), and edm::ESHandle< T >::product().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
cmsdt::algo
algo
Definition: constants.h:165
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
edm::ESHandle< MagneticField >