File indexing completed on 2025-12-16 09:20:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include "PHFieldConfig.h"
0011
0012 #include <iostream>
0013
0014 const std::string PHFieldConfig::kInvalid_FileName("INVALID FILE");
0015
0016 std::string PHFieldConfig::get_field_config_description() const
0017 {
0018 switch (get_field_config())
0019 {
0020 case kFieldUniform:
0021 return "Uniform field";
0022 break;
0023 case kField2D:
0024 return "2D field map expressed in cylindrical coordinates";
0025 break;
0026 case kField3DCylindrical:
0027 return "3D field map expressed in cylindrical coordinates";
0028 break;
0029 case Field3DCartesian:
0030 return "3D field map expressed in Cartesian coordinates";
0031 break;
0032 case kFieldBeast:
0033 return "Beast Field";
0034 break;
0035 case kFieldCleo:
0036 return "Cleo Magnet Field";
0037 break;
0038 case FieldInterpolated:
0039 return "3D field map interpolated to O(3)";
0040 break;
0041 default:
0042 return "Invalid Field";
0043 }
0044 }
0045
0046
0047
0048
0049 void PHFieldConfig::identify(std::ostream& os) const
0050 {
0051 os << "PHFieldConfig::identify - isValid() = " << isValid() << std::endl;
0052 }