Main Page
Namespaces
Classes
Package Documentation
src
RecoTracker
TkMSParametrization
src
PixelRecoUtilities.cc
Go to the documentation of this file.
1
#include "
RecoTracker/TkMSParametrization/interface/PixelRecoUtilities.h
"
2
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
3
#include "
FWCore/Framework/interface/ESHandle.h
"
4
#include "
FWCore/Framework/interface/EventSetup.h
"
5
#include "
MagneticField/Engine/interface/MagneticField.h
"
6
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
7
8
namespace
PixelRecoUtilities
{
9
FieldAt0::FieldAt0
(
const
edm::EventSetup
& es) {
10
edm::ESHandle<MagneticField>
pSetup;
11
es.
get
<
IdealMagneticFieldRecord
>().
get
(pSetup);
12
fieldInInvGev
= 1.f/
std::abs
(pSetup->
inTesla
(
GlobalPoint
(0,0,0)).
z
() *2.99792458e-3
f
);
13
}
14
15
}
PixelRecoUtilities::FieldAt0::fieldInInvGev
float fieldInInvGev
Definition:
PixelRecoUtilities.h:19
PixelRecoUtilities.h
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
MagneticField.h
edm::ESHandle< MagneticField >
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
ESHandle.h
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
edm::EventSetup
Definition:
EventSetup.h:57
MagneticField::inTesla
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
PixelRecoUtilities
Point3DBase< float, GlobalTag >
PixelRecoUtilities::FieldAt0::FieldAt0
FieldAt0(const edm::EventSetup &es)
Definition:
PixelRecoUtilities.cc:9
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:71
IdealMagneticFieldRecord.h
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.11