Class Reference for E1039 Core & Analysis Software
PHFieldUniform.h
Go to the documentation of this file.
1
2
#ifndef __PHFieldUniform_H__
3
#define __PHFieldUniform_H__
4
5
#include "
PHField.h
"
6
7
#include <map>
8
#include <string>
9
#include <vector>
10
11
class
PHFieldUniform
:
public
PHField
12
{
13
public
:
15
PHFieldUniform
(
16
double
field_mag_x,
17
double
field_mag_y,
18
double
field_mag_z);
19
virtual
~PHFieldUniform
() {}
24
void
GetFieldValue
(
const
double
Point[4],
double
*Bfield)
const
;
25
26
double
get_field_mag_x
()
const
27
{
28
return
field_mag_x_
;
29
}
30
31
void
set_field_mag_x
(
double
fieldMagX)
32
{
33
field_mag_x_
= fieldMagX;
34
}
35
36
double
get_field_mag_y
()
const
37
{
38
return
field_mag_y_
;
39
}
40
41
void
set_field_mag_y
(
double
fieldMagY)
42
{
43
field_mag_y_
= fieldMagY;
44
}
45
46
double
get_field_mag_z
()
const
47
{
48
return
field_mag_z_
;
49
}
50
51
void
set_field_mag_z
(
double
fieldMagZ)
52
{
53
field_mag_z_
= fieldMagZ;
54
}
55
56
protected
:
57
double
field_mag_x_
;
58
double
field_mag_y_
;
59
double
field_mag_z_
;
60
61
private
:
62
};
63
64
#endif
// __PHFieldUniform_H
PHField.h
PHFieldUniform
Definition:
PHFieldUniform.h:12
PHFieldUniform::field_mag_y_
double field_mag_y_
Definition:
PHFieldUniform.h:58
PHFieldUniform::set_field_mag_y
void set_field_mag_y(double fieldMagY)
Definition:
PHFieldUniform.h:41
PHFieldUniform::field_mag_x_
double field_mag_x_
Definition:
PHFieldUniform.h:57
PHFieldUniform::set_field_mag_x
void set_field_mag_x(double fieldMagX)
Definition:
PHFieldUniform.h:31
PHFieldUniform::get_field_mag_y
double get_field_mag_y() const
Definition:
PHFieldUniform.h:36
PHFieldUniform::PHFieldUniform
PHFieldUniform(double field_mag_x, double field_mag_y, double field_mag_z)
construct field map in constant in units of Tesla
Definition:
PHFieldUniform.cc:14
PHFieldUniform::~PHFieldUniform
virtual ~PHFieldUniform()
Definition:
PHFieldUniform.h:19
PHFieldUniform::field_mag_z_
double field_mag_z_
Definition:
PHFieldUniform.h:59
PHFieldUniform::set_field_mag_z
void set_field_mag_z(double fieldMagZ)
Definition:
PHFieldUniform.h:51
PHFieldUniform::get_field_mag_z
double get_field_mag_z() const
Definition:
PHFieldUniform.h:46
PHFieldUniform::GetFieldValue
void GetFieldValue(const double Point[4], double *Bfield) const
Definition:
PHFieldUniform.cc:24
PHFieldUniform::get_field_mag_x
double get_field_mag_x() const
Definition:
PHFieldUniform.h:26
PHField
transient DST object for field storage and access
Definition:
PHField.h:14
e1039-core
packages
PHField
PHFieldUniform.h
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:16
using
1.9.1 with
SeaQuest GitHub integration