Go to the documentation of this file.00001 #include "RecoTracker/TkMSParametrization/interface/PixelRecoUtilities.h"
00002 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00003 #include "FWCore/Framework/interface/ESHandle.h"
00004 #include "FWCore/Framework/interface/EventSetup.h"
00005 #include "MagneticField/Engine/interface/MagneticField.h"
00006 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
00007
00008 namespace PixelRecoUtilities {
00009 FieldAt0::FieldAt0(const edm::EventSetup& es) {
00010 edm::ESHandle<MagneticField> pSetup;
00011 es.get<IdealMagneticFieldRecord>().get(pSetup);
00012 fieldInInvGev = 1.f/std::abs(pSetup->inTesla(GlobalPoint(0,0,0)).z() *2.99792458e-3f);
00013 }
00014
00015 }