EIC Software
 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 
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 }