Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHFieldConfigv2.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHFieldConfigv2.cc
1
// $Id: $
2
11
#include "
PHFieldConfigv2.h
"
12
13
#include <iostream>
14
#include <string>
15
16
PHFieldConfigv2::PHFieldConfigv2
(
17
double
field_mag_x,
18
double
field_mag_y,
19
double
field_mag_z)
20
: field_mag_x_(field_mag_x)
21
, field_mag_y_(field_mag_y)
22
, field_mag_z_(field_mag_z)
23
{
24
}
25
29
void
PHFieldConfigv2::identify
(std::ostream&
os
)
const
30
{
31
os <<
"PHFieldConfigv2::identify -"
;
32
if
(
isValid
())
33
{
34
os <<
" Field type of ["
<<
get_field_config_description
();
35
os <<
"] with field vector of "
;
36
os <<
"["
<<
get_field_mag_x
();
37
os <<
", "
<<
get_field_mag_y
();
38
os <<
", "
<<
get_field_mag_z
();
39
os <<
"] tesla"
;
40
}
41
else
42
{
43
os <<
"Empty"
;
44
}
45
os << std::endl;
46
}
coresoftware
blob
master
offline
packages
PHField
PHFieldConfigv2.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration