MagneticField
Interpolation
src
MFGrid3D.cc
Go to the documentation of this file.
1
#include "
MFGrid3D.h
"
2
#include "
MagneticField/VolumeGeometry/interface/MagVolumeOutsideValidity.h
"
3
#include "
MagneticField/VolumeGeometry/interface/MagExceptions.h
"
4
5
MFGrid::LocalVector
MFGrid3D::valueInTesla
(
const
LocalPoint
&
p
)
const
{
6
try
{
7
return
uncheckedValueInTesla
(
p
);
8
}
catch
(
GridInterpolator3DException
& outside) {
9
double
*
limits
= outside.
limits
();
10
LocalPoint
lower =
fromGridFrame
(
limits
[0],
limits
[1],
limits
[2]);
11
LocalPoint
upper
=
fromGridFrame
(
limits
[3],
limits
[4],
limits
[5]);
12
throw
MagVolumeOutsideValidity
(lower,
upper
);
13
}
14
}
MFGrid::LocalVector
GloballyPositioned< float >::LocalVector LocalVector
Definition:
MFGrid.h:32
GridInterpolator3DException
Definition:
MagExceptions.h:32
MagExceptions.h
MFGrid::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition:
MFGrid.h:31
MFGrid3D.h
MFGrid3D::uncheckedValueInTesla
virtual LocalVector uncheckedValueInTesla(const LocalPoint &p) const =0
Interpolated field value at given point; does not check for exceptions.
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
MFGrid3D::valueInTesla
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
Definition:
MFGrid3D.cc:5
GridInterpolator3DException::limits
double * limits(void)
Definition:
MagExceptions.h:37
MFGrid::fromGridFrame
virtual LocalPoint fromGridFrame(double a, double b, double c) const =0
find grid coordinates for point. For debugging and validation only.
TH2PolyOfflineMaps.limits
limits
Definition:
TH2PolyOfflineMaps.py:44
MagVolumeOutsideValidity.h
MagVolumeOutsideValidity
Definition:
MagVolumeOutsideValidity.h:7
pileupCalc.upper
upper
Definition:
pileupCalc.py:213
Generated for CMSSW Reference Manual by
1.8.16