CMS 3D CMS Logo

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

#include <CandCommonVertexFitter.h>

Public Member Functions

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

Public Attributes

edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagToken_
 

Detailed Description

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

Definition at line 12 of file CandCommonVertexFitter.h.

Constructor & Destructor Documentation

◆ CandVertexFitterEventSetupInit()

template<typename Fitter >
reco::modules::CandVertexFitterEventSetupInit< Fitter >::CandVertexFitterEventSetupInit ( edm::ConsumesCollector  iC)
inlineexplicit

Definition at line 13 of file CandCommonVertexFitter.h.

13 : magToken_(iC.esConsumes()) {}
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magToken_

Member Function Documentation

◆ init()

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

Definition at line 14 of file CandCommonVertexFitter.h.

References edm::EventSetup::getData(), reco::modules::CandVertexFitterEventSetupInit< Fitter >::magToken_, and CandCommonVertexFitterBase::set().

14  {
15  fitter.set(&es.getData(magToken_));
16  }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magToken_
void set(const MagneticField *bField)

Member Data Documentation

◆ magToken_