Go to the documentation of this file.00001 #ifndef GlobalGridWrapper_h
00002 #define GlobalGridWrapper_h
00003
00015 #include "MagneticField/Interpolation/interface/MFGrid.h"
00016
00017 #include <string>
00018
00019 class binary_ifstream;
00020 class MagneticFieldGrid;
00021
00022 class GlobalGridWrapper : public MFGrid {
00023 public:
00024
00025 GlobalGridWrapper( const GloballyPositioned<float>& vol,
00026 const std::string& fileName);
00027
00028 virtual LocalVector valueInTesla( const LocalPoint& p) const;
00029
00030 void dump() const;
00031
00032 virtual void toGridFrame( const LocalPoint& p, double& a, double& b, double& c) const;
00033
00034 virtual LocalPoint fromGridFrame( double a, double b, double c) const;
00035
00036 virtual Dimensions dimensions() const;
00037
00038 virtual LocalPoint nodePosition( int i, int j, int k) const;
00039
00040 virtual LocalVector nodeValue( int i, int j, int k) const;
00041
00042 private:
00043
00044 MagneticFieldGrid* theRealOne;
00045
00046 };
00047
00048 #endif