CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SpecialCylindricalMFGrid.h
Go to the documentation of this file.
1 #ifndef Interpolation_SpecialCylindricalMFGrid_h
2 #define Interpolation_SpecialCylindricalMFGrid_h
3 
13 #include "MFGrid3D.h"
14 
15 class binary_ifstream;
16 
18 public:
19 
24  const GloballyPositioned<float>& vol,
25  int gridType);
26 
27  virtual LocalVector uncheckedValueInTesla( const LocalPoint& p) const;
28 
29  virtual void dump() const;
30 
31  virtual void toGridFrame( const LocalPoint& p, double& a, double& b, double& c) const;
32 
33  virtual LocalPoint fromGridFrame( double a, double b, double c) const;
34 
35 private:
36 
37  //double RParAsFunOfPhi[4]; // R = f(phi) or const. (0,2: const. par. ; 1,3: const./sin(phi))
38 
40  double stepPhiTerm_;
42  double startPhiTerm_;
43 
44  double stepSize( double sinPhi) const {return stepConstTerm_ + stepPhiTerm_ /sinPhi;}
45  double startingPoint( double sinPhi) const {return startConstTerm_ + startPhiTerm_/sinPhi;}
46  bool sector1;
47 };
48 
49 #endif
virtual LocalVector uncheckedValueInTesla(const LocalPoint &p) const =0
Interpolated field value at given point; does not check for exceptions.
double startingPoint(double sinPhi) const
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:34
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 LocalPoint fromGridFrame(double a, double b, double c) const =0
find grid coordinates for point. For debugging and validation only.
virtual void dump() const
Definition: MFGrid.h:44
double stepSize(double sinPhi) const
double b
Definition: hdecay.h:120
GloballyPositioned< float >::LocalVector LocalVector
Definition: MFGrid.h:35
#define dso_internal
double a
Definition: hdecay.h:121