CMS 3D CMS Logo

PixelRecoUtilities.cc
Go to the documentation of this file.
7 
8 namespace PixelRecoUtilities {
11  es.get<IdealMagneticFieldRecord>().get(pSetup);
12  fieldInInvGev = 1.f / std::abs(pSetup->inTesla(GlobalPoint(0, 0, 0)).z() * 2.99792458e-3f);
13  }
14 
15 } // namespace PixelRecoUtilities
MagneticField::inTesla
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
ESHandle.h
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
PixelRecoUtilities::FieldAt0::fieldInInvGev
float fieldInInvGev
Definition: PixelRecoUtilities.h:18
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
IdealMagneticFieldRecord.h
edm::ESHandle< MagneticField >
PixelRecoUtilities.h
Point3DBase< float, GlobalTag >
PixelRecoUtilities::FieldAt0::FieldAt0
FieldAt0(const edm::EventSetup &es)
Definition: PixelRecoUtilities.cc:9
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
PixelRecoUtilities
EventSetup.h
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GlobalPoint.h