CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PixelRecoUtilities::FieldAt0 Struct Reference

#include <PixelRecoUtilities.h>

Public Member Functions

 FieldAt0 (const edm::EventSetup &es)
 

Public Attributes

float fieldInInvGev
 

Detailed Description

The magnetic field at 0,0,0

Definition at line 17 of file PixelRecoUtilities.h.

Constructor & Destructor Documentation

PixelRecoUtilities::FieldAt0::FieldAt0 ( const edm::EventSetup es)

Definition at line 9 of file PixelRecoUtilities.cc.

References funct::abs(), f, fieldInInvGev, edm::EventSetup::get(), MagneticField::inTesla(), and PV3DBase< T, PVType, FrameType >::z().

9  {
11  es.get<IdealMagneticFieldRecord>().get(pSetup);
12  fieldInInvGev = 1.f/std::abs(pSetup->inTesla(GlobalPoint(0,0,0)).z() *2.99792458e-3f);
13  }
T z() const
Definition: PV3DBase.h:64
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
const T & get() const
Definition: EventSetup.h:56

Member Data Documentation

float PixelRecoUtilities::FieldAt0::fieldInInvGev