Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldConfig.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHFieldConfig.cc
1 
10 #include "PHFieldConfig.h"
11 
12 #include <iostream>
13 
14 using namespace std;
15 
16 const std::string PHFieldConfig::kInvalid_FileName("INVALID FILE");
17 
19 {
20  switch (get_field_config())
21  {
22  case kFieldUniform:
23  return "Uniform field";
24  break;
25  case kField2D:
26  return "2D field map expressed in cylindrical coordinates";
27  break;
28  case kField3DCylindrical:
29  return "3D field map expressed in cylindrical coordinates";
30  break;
31  case Field3DCartesian:
32  return "3D field map expressed in Cartesian coordinates";
33  break;
34  case kFieldBeast:
35  return "Beast Field";
36  break;
37  case kFieldCleo:
38  return "Cleo Magnet Field";
39  break;
40  default:
41  return "Invalid Field";
42  }
43 }
44 
48 void PHFieldConfig::identify(std::ostream& os) const
49 {
50  os << "PHFieldConfig::identify - isValid() = " << isValid() << endl;
51 }