8 MFGrid(vol), thePhiMin(phiMin), thePhiMax(phiMax), theSectorGrid( sectorGrid)
26 double c =
cos(phiRot);
27 double s =
sin(phiRot);
28 double xrot = p.x()*c + p.y()*
s;
29 double yrot = -p.x()*s + p.y()*
c;
41 std::cout <<
"Throwing exception " << message << std::endl;
~CylinderFromSectorMFGrid() override
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
Dimensions dimensions() const override
Sin< T >::type sin(const T &t)
GloballyPositioned< float >::LocalPoint LocalPoint
void throwUp(const char *message) const
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
LocalVector valueInTesla(const LocalPoint &p) const override=0
Interpolated field value at given point.
LocalVector nodeValue(int i, int j, int k) const override
Field value at node.
CylinderFromSectorMFGrid(const GloballyPositioned< float > &vol, double phiMin, double phiMax, MFGrid *sectorGrid)
Cos< T >::type cos(const T &t)
GloballyPositioned< float >::LocalVector LocalVector
std::vector< std::vector< double > > tmp
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
virtual Dimensions dimensions() const =0
LocalPoint nodePosition(int i, int j, int k) const override
Position of node in local frame.