CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

MFGrid Class Reference

#include <MFGrid.h>

Inheritance diagram for MFGrid:
MagneticFieldProvider< float > CylinderFromSectorMFGrid GlobalGridWrapper MFGrid3D ZReflectedMFGrid RectangularCartesianMFGrid RectangularCylindricalMFGrid SpecialCylindricalMFGrid TrapezoidalCartesianMFGrid TrapezoidalCylindricalMFGrid

List of all members.

Public Types

typedef GloballyPositioned
< float >::GlobalPoint 
GlobalPoint
typedef GloballyPositioned
< float >::GlobalVector 
GlobalVector
typedef GloballyPositioned
< float >::LocalPoint 
LocalPoint
typedef GloballyPositioned
< float >::LocalVector 
LocalVector

Public Member Functions

virtual Dimensions dimensions () const =0
virtual void dump () const
const GloballyPositioned< float > & frame () const
 Local reference frame.
virtual LocalPoint fromGridFrame (double a, double b, double c) const =0
 find grid coordinates for point. For debugging and validation only.
virtual Indexes index (const LocalPoint &p) const
 MFGrid (const GloballyPositioned< float > &vol)
virtual LocalPoint nodePosition (int i, int j, int k) const =0
 Position of node in local frame.
virtual LocalVector nodeValue (int i, int j, int k) const =0
 Field value at node.
virtual void toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const =0
 find grid coordinates for point. For debugging and validation only.
virtual LocalVector valueInTesla (const LocalPoint &p) const =0
 Interpolated field value at given point.
virtual ~MFGrid ()

Private Attributes

GloballyPositioned< float > frame_

Detailed Description

Virtual interface for a field provider that is based on interpolation on a regular grid.

Date:
2009/08/11 07:16:33
Revision:
1.5
Author:
T. Todorov

Definition at line 31 of file MFGrid.h.


Member Typedef Documentation

Definition at line 34 of file MFGrid.h.

Definition at line 35 of file MFGrid.h.

Definition at line 36 of file MFGrid.h.

Definition at line 37 of file MFGrid.h.


Constructor & Destructor Documentation

MFGrid::MFGrid ( const GloballyPositioned< float > &  vol) [inline, explicit]

Definition at line 39 of file MFGrid.h.

: frame_(vol) {}
virtual MFGrid::~MFGrid ( ) [inline, virtual]

Definition at line 41 of file MFGrid.h.

{}

Member Function Documentation

virtual Dimensions MFGrid::dimensions ( ) const [pure virtual]
virtual void MFGrid::dump ( void  ) const [inline, virtual]
const GloballyPositioned<float>& MFGrid::frame ( ) const [inline]
virtual LocalPoint MFGrid::fromGridFrame ( double  a,
double  b,
double  c 
) const [pure virtual]
virtual Indexes MFGrid::index ( const LocalPoint p) const [inline, virtual]

Reimplemented in MFGrid3D.

Definition at line 62 of file MFGrid.h.

{return Indexes();}
virtual LocalPoint MFGrid::nodePosition ( int  i,
int  j,
int  k 
) const [pure virtual]

Position of node in local frame.

Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.

virtual LocalVector MFGrid::nodeValue ( int  i,
int  j,
int  k 
) const [pure virtual]

Field value at node.

Implemented in CylinderFromSectorMFGrid, GlobalGridWrapper, MFGrid3D, and ZReflectedMFGrid.

virtual void MFGrid::toGridFrame ( const LocalPoint p,
double &  a,
double &  b,
double &  c 
) const [pure virtual]
virtual LocalVector MFGrid::valueInTesla ( const LocalPoint p) const [pure virtual]

Member Data Documentation

Definition at line 69 of file MFGrid.h.

Referenced by frame().