CMS 3D CMS Logo

List of all members | Static Public Member Functions
reco::modules::CandVertexFitterEventSetupInit< Fitter > Struct Template Reference

#include <CandCommonVertexFitter.h>

Static Public Member Functions

static void init (CandCommonVertexFitter< Fitter > &fitter, const edm::Event &evt, const edm::EventSetup &es)
 

Detailed Description

template<typename Fitter>
struct reco::modules::CandVertexFitterEventSetupInit< Fitter >

Definition at line 12 of file CandCommonVertexFitter.h.

Member Function Documentation

template<typename Fitter >
static void reco::modules::CandVertexFitterEventSetupInit< Fitter >::init ( CandCommonVertexFitter< Fitter > &  fitter,
const edm::Event evt,
const edm::EventSetup es 
)
inlinestatic

Definition at line 13 of file CandCommonVertexFitter.h.

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

15  {
17  es.get<IdealMagneticFieldRecord>().get(h);
18  fitter.set(h.product());
19  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void set(const MagneticField *bField)
T get() const
Definition: EventSetup.h:71
T const * product() const
Definition: ESHandle.h:86