Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldUniform.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHFieldUniform.h
1 #ifndef PHFIELD_PHFIELDUNIFORM_H
2 #define PHFIELD_PHFIELDUNIFORM_H
3 
4 #include "PHField.h"
5 
6 class PHFieldUniform : public PHField
7 {
8  public:
11  double field_mag_x,
12  double field_mag_y,
13  double field_mag_z);
14  ~PHFieldUniform() override {}
19  void GetFieldValue(const double Point[4], double *Bfield) const override;
20 
21  double get_field_mag_x() const
22  {
23  return field_mag_x_;
24  }
25 
26  void set_field_mag_x(double fieldMagX)
27  {
28  field_mag_x_ = fieldMagX;
29  }
30 
31  double get_field_mag_y() const
32  {
33  return field_mag_y_;
34  }
35 
36  void set_field_mag_y(double fieldMagY)
37  {
38  field_mag_y_ = fieldMagY;
39  }
40 
41  double get_field_mag_z() const
42  {
43  return field_mag_z_;
44  }
45 
46  void set_field_mag_z(double fieldMagZ)
47  {
48  field_mag_z_ = fieldMagZ;
49  }
50 
51  protected:
52  double field_mag_x_;
53  double field_mag_y_;
54  double field_mag_z_;
55 
56  private:
57 };
58 
59 #endif