CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
reco::modules::CandKinematicVertexFitterEventSetupInit Struct Reference

#include <CandKinematicVertexFitter.h>

Public Member Functions

 CandKinematicVertexFitterEventSetupInit (edm::ConsumesCollector iC)
 
void init (CandKinematicVertexFitter &fitter, const edm::Event &evt, const edm::EventSetup &es)
 

Public Attributes

edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagToken_
 
edm::ESGetToken< ParticleDataTable, edm::DefaultRecordpdtToken_
 

Detailed Description

Definition at line 12 of file CandKinematicVertexFitter.h.

Constructor & Destructor Documentation

◆ CandKinematicVertexFitterEventSetupInit()

reco::modules::CandKinematicVertexFitterEventSetupInit::CandKinematicVertexFitterEventSetupInit ( edm::ConsumesCollector  iC)
inlineexplicit

Definition at line 13 of file CandKinematicVertexFitter.h.

14  : magToken_(iC.esConsumes()), pdtToken_(iC.esConsumes()) {}
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magToken_
edm::ESGetToken< ParticleDataTable, edm::DefaultRecord > pdtToken_

Member Function Documentation

◆ init()

void reco::modules::CandKinematicVertexFitterEventSetupInit::init ( CandKinematicVertexFitter fitter,
const edm::Event evt,
const edm::EventSetup es 
)
inline

Definition at line 16 of file CandKinematicVertexFitter.h.

References edm::EventSetup::getData(), magToken_, pdtToken_, and CandKinematicVertexFitter::set().

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

Member Data Documentation

◆ magToken_

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> reco::modules::CandKinematicVertexFitterEventSetupInit::magToken_

Definition at line 21 of file CandKinematicVertexFitter.h.

Referenced by init().

◆ pdtToken_

edm::ESGetToken<ParticleDataTable, edm::DefaultRecord> reco::modules::CandKinematicVertexFitterEventSetupInit::pdtToken_

Definition at line 22 of file CandKinematicVertexFitter.h.

Referenced by init().