CbmRoot
Loading...
Searching...
No Matches
CbmLitField.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
11#ifndef CBMLITFIELD_H_
12#define CBMLITFIELD_H_
13
14#include "base/CbmLitFloat.h"
15
16#include <string>
17using std::string;
18
26 public:
31
35 virtual ~CbmLitField(){};
36
46 virtual void GetFieldValue(litfloat x, litfloat y, litfloat z, litfloat& Bx, litfloat& By, 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_ */
Define floating point number type litfloat.
double litfloat
Definition CbmLitFloat.h:19
Interface for accessing the magnetic field.
Definition CbmLitField.h:25
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.
virtual ~CbmLitField()
Destructor.
Definition CbmLitField.h:35
CbmLitField()
Constructor.
Definition CbmLitField.h:30
virtual string ToString() const
Definition CbmLitField.h:52