#include <PixelRecoUtilities.h>
Public Member Functions | |
FieldAt0 (const edm::EventSetup &es) | |
Public Attributes | |
float | fieldInInvGev |
The magnetic field at 0,0,0
Definition at line 17 of file PixelRecoUtilities.h.
PixelRecoUtilities::FieldAt0::FieldAt0 | ( | const edm::EventSetup & | es | ) |
Definition at line 9 of file PixelRecoUtilities.cc.
References abs, f, fieldInInvGev, and edm::EventSetup::get().
{ edm::ESHandle<MagneticField> pSetup; es.get<IdealMagneticFieldRecord>().get(pSetup); fieldInInvGev = 1.f/std::abs(pSetup->inTesla(GlobalPoint(0,0,0)).z() *2.99792458e-3f); }
Definition at line 19 of file PixelRecoUtilities.h.
Referenced by FieldAt0(), and PixelRecoUtilities::fieldInInvGev().