CMS 3D CMS Logo

Public Member Functions | Public Attributes

PixelRecoUtilities::FieldAt0 Struct Reference

#include <PixelRecoUtilities.h>

List of all members.

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 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);
    }

Member Data Documentation

Definition at line 19 of file PixelRecoUtilities.h.

Referenced by FieldAt0(), and PixelRecoUtilities::fieldInInvGev().