#include <SpecialCylindricalMFGrid.h>
Public Member Functions | |
virtual void | dump () const |
virtual LocalPoint | fromGridFrame (double a, double b, double c) const |
find grid coordinates for point. For debugging and validation only. More... | |
SpecialCylindricalMFGrid (binary_ifstream &istr, const GloballyPositioned< float > &vol, int gridType) | |
virtual void | toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const |
find grid coordinates for point. For debugging and validation only. More... | |
virtual LocalVector | uncheckedValueInTesla (const LocalPoint &p) const |
Interpolated field value at given point; does not check for exceptions. More... | |
Public Member Functions inherited from MFGrid3D | |
virtual Dimensions | dimensions (void) const |
virtual Indexes | index (const LocalPoint &p) const |
MFGrid3D (const GloballyPositioned< float > &vol) | |
virtual LocalPoint | nodePosition (int i, int j, int k) const |
Position of node in local frame. More... | |
virtual LocalVector | nodeValue (int i, int j, int k) const |
Field value at node. More... | |
virtual LocalVector | valueInTesla (const LocalPoint &p) const |
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) | |
virtual | ~MFGrid () |
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 | |
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 |
Protected Types inherited from MFGrid3D | |
typedef Basic3DVector< float > | BVector |
typedef Grid3D | GridType |
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 19 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 10 of file SpecialCylindricalMFGrid.cc.
References gather_cfg::cout, MFGrid::frame(), MFGrid3D::grid_, i, 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().
|
virtual |
|
virtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 104 of file SpecialCylindricalMFGrid.cc.
References funct::cos(), MFGrid::frame(), dttmaxenums::R, sector1, funct::sin(), startingPoint(), stepSize(), and GloballyPositioned< T >::toLocal().
|
inlineprivate |
Definition at line 47 of file SpecialCylindricalMFGrid.h.
Referenced by fromGridFrame(), and toGridFrame().
|
inlineprivate |
Definition at line 46 of file SpecialCylindricalMFGrid.h.
Referenced by fromGridFrame(), and toGridFrame().
|
virtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 120 of file SpecialCylindricalMFGrid.cc.
References funct::cos(), gather_cfg::cout, MFGrid::frame(), sector1, funct::sin(), startingPoint(), stepSize(), and GloballyPositioned< T >::toGlobal().
Referenced by uncheckedValueInTesla().
|
virtual |
Interpolated field value at given point; does not check for exceptions.
Implements MFGrid3D.
Definition at line 87 of file SpecialCylindricalMFGrid.cc.
References a, b, trackerHits::c, MFGrid3D::grid_, LinearGridInterpolator3D::interpolate(), and toGridFrame().
|
private |
Definition at line 48 of file SpecialCylindricalMFGrid.h.
Referenced by fromGridFrame(), SpecialCylindricalMFGrid(), and toGridFrame().
|
private |
Definition at line 43 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 44 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 41 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().
|
private |
Definition at line 42 of file SpecialCylindricalMFGrid.h.
Referenced by SpecialCylindricalMFGrid().