#include <SpecialCylindricalMFGrid.h>
Public Types | |
using | binary_ifstream = magneticfield::interpolation::binary_ifstream |
Public Types inherited from MFGrid | |
typedef GloballyPositioned< float >::GlobalPoint | GlobalPoint |
typedef GloballyPositioned< float >::GlobalVector | GlobalVector |
typedef GloballyPositioned< float >::LocalPoint | LocalPoint |
typedef GloballyPositioned< float >::LocalVector | LocalVector |
Public Types inherited from MagneticFieldProvider< float > | |
typedef Point3DBase< float, GlobalTag > | GlobalPointType |
typedef Vector3DBase< float, GlobalTag > | GlobalVectorType |
typedef Point3DBase< float, LocalTag > | LocalPointType |
typedef Vector3DBase< float, LocalTag > | LocalVectorType |
Public Member Functions | |
void | dump () const override |
LocalPoint | fromGridFrame (double a, double b, double c) const override |
find grid coordinates for point. For debugging and validation only. More... | |
SpecialCylindricalMFGrid (binary_ifstream &istr, const GloballyPositioned< float > &vol, int gridType) | |
void | toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const override |
find grid coordinates for point. For debugging and validation only. More... | |
LocalVector | uncheckedValueInTesla (const LocalPoint &p) const override |
Interpolated field value at given point; does not check for exceptions. More... | |
Public Member Functions inherited from MFGrid3D | |
Dimensions | dimensions (void) const override |
Indexes | index (const LocalPoint &p) const override |
MFGrid3D (const GloballyPositioned< float > &vol) | |
LocalPoint | nodePosition (int i, int j, int k) const override |
Position of node in local frame. More... | |
LocalVector | nodeValue (int i, int j, int k) const override |
Field value at node. More... | |
LocalVector | valueInTesla (const LocalPoint &p) const override |
Interpolated field value at given point. More... | |
Public Member Functions inherited from MFGrid | |
const GloballyPositioned< float > & | frame () const |
Local reference frame. More... | |
MFGrid (const GloballyPositioned< float > &vol) | |
~MFGrid () override | |
Public Member Functions inherited from MagneticFieldProvider< float > | |
virtual LocalVectorType | derivativeInTeslaPerMeter (const LocalPointType &p, int N) const |
virtual int | hasDerivatives () const |
virtual LocalVectorType | valueInTesla (const LocalPointType &p) const=0 |
virtual | ~MagneticFieldProvider () |
Private Member Functions | |
double | startingPoint (double sinPhi) const |
double | stepSize (double sinPhi) const |
Private Attributes | |
bool | sector1 |
double | startConstTerm_ |
double | startPhiTerm_ |
double | stepConstTerm_ |
double | stepPhiTerm_ |
Additional Inherited Members | |
Protected Types inherited from MFGrid3D | |
using | BVector = Grid3D::BVector |
using | GridType = Grid3D |
Protected Member Functions inherited from MFGrid3D | |
void | setGrid (const GridType &grid) |
Protected Attributes inherited from MFGrid3D | |
GridType | grid_ |
Interpolator for cylindrical grids type 5 or 6 (r,phi,z) 1/sin(phi) or 1/cos(phi)
Definition at line 18 of file SpecialCylindricalMFGrid.h.
Definition at line 20 of file SpecialCylindricalMFGrid.h.
SpecialCylindricalMFGrid::SpecialCylindricalMFGrid | ( | binary_ifstream & | istr, |
const GloballyPositioned< float > & | vol, | ||
int | gridType | ||
) |
Constructor. gridType = 5 => 1/sin(phi); i.e. master sector is #4 gridType = 6 => 1/cos(phi); i.e. master sector is #1
Definition at line 9 of file SpecialCylindricalMFGrid.cc.
References gather_cfg::cout, MFGrid::frame(), MFGrid3D::grid_, mps_fire::i, testHGCalDigi_cfg::inFile, submitDQMOfflineCAF::nLines, sector1, startConstTerm_, startPhiTerm_, stepConstTerm_, stepPhiTerm_, GloballyPositioned< T >::toLocal(), PV3DBase< T, VectorTag, FrameTag >::x(), PV3DBase< T, VectorTag, FrameTag >::y(), and PV3DBase< T, VectorTag, FrameTag >::z().
|
overridevirtual |
|
overridevirtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 102 of file SpecialCylindricalMFGrid.cc.
References a, b, c, funct::cos(), MFGrid::frame(), runTauDisplay::gp, dttmaxenums::R, sector1, funct::sin(), l1tSlwPFPuppiJets_cfi::sinPhi, startingPoint(), stepSize(), and GloballyPositioned< T >::toLocal().
|
inlineprivate |
Definition at line 44 of file SpecialCylindricalMFGrid.h.
References l1tSlwPFPuppiJets_cfi::sinPhi.
Referenced by fromGridFrame(), and toGridFrame().
|
inlineprivate |
Definition at line 43 of file SpecialCylindricalMFGrid.h.
References l1tSlwPFPuppiJets_cfi::sinPhi.
Referenced by fromGridFrame(), and toGridFrame().
|
overridevirtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 117 of file SpecialCylindricalMFGrid.cc.
References a, b, c, funct::cos(), gather_cfg::cout, MFGrid::frame(), runTauDisplay::gp, AlCaHLTBitMon_ParallelJobs::p, sector1, funct::sin(), l1tSlwPFPuppiJets_cfi::sinPhi, startingPoint(), stepSize(), and GloballyPositioned< T >::toGlobal().
Referenced by uncheckedValueInTesla().
|
overridevirtual |
Interpolated field value at given point; does not check for exceptions.
Implements MFGrid3D.
Definition at line 87 of file SpecialCylindricalMFGrid.cc.
References a, b, c, MFGrid3D::grid_, LinearGridInterpolator3D::interpolate(), AlCaHLTBitMon_ParallelJobs::p, and toGridFrame().
|
private |
Definition at line 45 of file SpecialCylindricalMFGrid.h.
Referenced by fromGridFrame(), SpecialCylindricalMFGrid(), and toGridFrame().
|
private |
Definition at line 40 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 41 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 38 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 39 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().