/** CbmLitField.h * @author Andrey Lebedev * @since 2009 * @version 1.0 ** ** Interface for accessing the magnetic field. **/ #ifndef CBMLITFIELD_H_ #define CBMLITFIELD_H_ #include "CbmLitFieldValue.h" class CbmLitField { public: /* Constructor */ CbmLitField(){}; /* Destructor */ virtual ~CbmLitField(){}; /* Returns field value at (x,y,z) position * @param x X coordinate [cm]. * @param y Y coordinate [cm]. * @param z Z coordinate [cm]. * @param value Output field value. */ virtual void GetFieldValue(myf x, myf y, myf z, CbmLitFieldValue& value) const = 0; /* Returns std::string representation of this class * @return String representation of the class */ virtual std::string ToString() const { return "CbmLitField::ToString";} }; #endif /* CBMLITFIELD_H_ */