ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldCleo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHFieldCleo.h
1 #ifndef PHFIELD_PHFIELDCLEO_H
2 #define PHFIELD_PHFIELDCLEO_H
3 
4 #include "PHField.h"
5 
6 #include <string>
7 #include <vector>
8 
9 class PHFieldCleo : public PHField
10 {
11  public:
12  PHFieldCleo(const std::string &filename, const int verb = 0, const float magfield_rescale = 1.0);
13  ~PHFieldCleo() override {}
18  void GetFieldValue(const double Point[4], double *Bfield) const override;
19 
20  private:
21  std::vector<std::vector<std::vector<double> > > xField;
22  std::vector<std::vector<std::vector<double> > > yField;
23  std::vector<std::vector<std::vector<double> > > zField;
24 
25  // The dimensions of the table
26  int nx;
27  int ny;
28  int nz;
29  // The physical limits of the defined region
30  double minx;
31  double maxx;
32  double miny;
33  double maxy;
34  double minz;
35  double maxz;
36  // The physical extent of the defined region
37  double dx;
38  double dy;
39  double dz;
40 
42 };
43 
44 #endif // PHFIELD_PHFIELDCLEO_H