#include <ZReflectedMFGrid.h>
Public Member Functions | |
virtual Dimensions | dimensions () const |
virtual LocalPoint | fromGridFrame (double a, double b, double c) const |
find grid coordinates for point. For debugging and validation only. | |
virtual LocalPoint | nodePosition (int i, int j, int k) const |
Position of node in local frame. | |
virtual LocalVector | nodeValue (int i, int j, int k) const |
Field value at node. | |
virtual void | toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const |
find grid coordinates for point. For debugging and validation only. | |
virtual LocalVector | valueInTesla (const LocalPoint &p) const |
Interpolated field value at given point. | |
ZReflectedMFGrid (const GloballyPositioned< float > &vol, MFGrid *sectorGrid) | |
~ZReflectedMFGrid () | |
Private Member Functions | |
void | throwUp (const char *message) const |
Private Attributes | |
double | theDelta |
double | thePhiMax |
double | thePhiMin |
MFGrid * | theSectorGrid |
Definition at line 7 of file ZReflectedMFGrid.h.
ZReflectedMFGrid::ZReflectedMFGrid | ( | const GloballyPositioned< float > & | vol, |
MFGrid * | sectorGrid | ||
) |
Definition at line 8 of file ZReflectedMFGrid.cc.
: MFGrid(vol), theSectorGrid( sectorGrid) {}
ZReflectedMFGrid::~ZReflectedMFGrid | ( | ) |
Definition at line 14 of file ZReflectedMFGrid.cc.
References theSectorGrid.
{ delete theSectorGrid; }
Dimensions ZReflectedMFGrid::dimensions | ( | void | ) | const [virtual] |
Implements MFGrid.
Definition at line 43 of file ZReflectedMFGrid.cc.
References MFGrid::dimensions(), and theSectorGrid.
{return theSectorGrid->dimensions();}
MFGrid::LocalPoint ZReflectedMFGrid::fromGridFrame | ( | double | a, |
double | b, | ||
double | c | ||
) | const [virtual] |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 37 of file ZReflectedMFGrid.cc.
References throwUp().
{ throwUp("Not implemented yet"); return LocalPoint(); }
MFGrid::LocalPoint ZReflectedMFGrid::nodePosition | ( | int | i, |
int | j, | ||
int | k | ||
) | const [virtual] |
Position of node in local frame.
Implements MFGrid.
Definition at line 45 of file ZReflectedMFGrid.cc.
References throwUp().
{ throwUp("Not implemented yet"); return LocalPoint(); }
MFGrid::LocalVector ZReflectedMFGrid::nodeValue | ( | int | i, |
int | j, | ||
int | k | ||
) | const [virtual] |
Field value at node.
Implements MFGrid.
Definition at line 51 of file ZReflectedMFGrid.cc.
References throwUp().
{ throwUp("Not implemented yet"); return LocalVector(); }
void ZReflectedMFGrid::throwUp | ( | const char * | message | ) | const [private] |
Definition at line 27 of file ZReflectedMFGrid.cc.
References gather_cfg::cout.
Referenced by fromGridFrame(), nodePosition(), nodeValue(), and toGridFrame().
{ std::cout << "Throwing exception " << message << std::endl; throw MagGeometryError(message); }
void ZReflectedMFGrid::toGridFrame | ( | const LocalPoint & | p, |
double & | a, | ||
double & | b, | ||
double & | c | ||
) | const [virtual] |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 32 of file ZReflectedMFGrid.cc.
References throwUp().
{ throwUp("Not implemented yet"); }
MFGrid::LocalVector ZReflectedMFGrid::valueInTesla | ( | const LocalPoint & | p | ) | const [virtual] |
Interpolated field value at given point.
Implements MFGrid.
Definition at line 19 of file ZReflectedMFGrid.cc.
References theSectorGrid, and MFGrid::valueInTesla().
{ // Z reflection of point LocalPoint mirrorp( p.x(), p.y(), -p.z()); LocalVector mirrorB = theSectorGrid->valueInTesla( mirrorp); return LocalVector( -mirrorB.x(), -mirrorB.y(), mirrorB.z()); }
double ZReflectedMFGrid::theDelta [private] |
Definition at line 33 of file ZReflectedMFGrid.h.
double ZReflectedMFGrid::thePhiMax [private] |
Definition at line 31 of file ZReflectedMFGrid.h.
double ZReflectedMFGrid::thePhiMin [private] |
Definition at line 30 of file ZReflectedMFGrid.h.
MFGrid* ZReflectedMFGrid::theSectorGrid [private] |
Definition at line 32 of file ZReflectedMFGrid.h.
Referenced by dimensions(), valueInTesla(), and ~ZReflectedMFGrid().