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
}
MFGrid3D::uncheckedValueInTesla
virtual LocalVector uncheckedValueInTesla(const LocalPoint &p) const =0
Interpolated field value at given point; does not check for exceptions.
GridInterpolator3DException
Definition:
MagExceptions.h:32
MFGrid::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition:
MFGrid.h:31
MagVolumeOutsideValidity.h
MagExceptions.h
MFGrid3D.h
MagVolumeOutsideValidity
Definition:
MagVolumeOutsideValidity.h:7
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
MFGrid::LocalVector
GloballyPositioned< float >::LocalVector LocalVector
Definition:
MFGrid.h:32
MFGrid3D::valueInTesla
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
Definition:
MFGrid3D.cc:5
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
GridInterpolator3DException::limits
double * limits(void)
Definition:
MagExceptions.h:37
Generated for CMSSW Reference Manual by
1.8.14