CbmRoot
CbmLitField.h
Go to the documentation of this file.
1 
7 #ifndef CBMLITFIELD_H_
8 #define CBMLITFIELD_H_
9 
10 #include "base/CbmLitFloat.h"
11 #include <string>
12 using std::string;
13 
20 class CbmLitField {
21 public:
26 
30  virtual ~CbmLitField() {};
31 
41  virtual void GetFieldValue(litfloat x,
42  litfloat y,
43  litfloat z,
44  litfloat& Bx,
45  litfloat& By,
46  litfloat& Bz) const = 0;
47 
48  /*
49  * \brief Return string representation of class.
50  * \return String representation of this class.
51  */
52  virtual string ToString() const { return "CbmLitField::ToString"; }
53 };
54 
55 #endif /* CBMLITFIELD_H_ */
CbmLitField::~CbmLitField
virtual ~CbmLitField()
Destructor.
Definition: CbmLitField.h:30
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitField
Interface for accessing the magnetic field.
Definition: CbmLitField.h:20
CbmLitField::GetFieldValue
virtual void GetFieldValue(litfloat x, litfloat y, litfloat z, litfloat &Bx, litfloat &By, litfloat &Bz) const =0
Return field value at (x,y,z) position.
CbmLitFloat.h
Define floating point number type litfloat.
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmLitField::ToString
virtual string ToString() const
Definition: CbmLitField.h:52
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmLitField::CbmLitField
CbmLitField()
Constructor.
Definition: CbmLitField.h:25