Class Reference for E1039 Core & Analysis Software
PHFieldConfig.cc
Go to the documentation of this file.
1 // $Id: $
2 
11 #include "PHFieldConfig.h"
12 
13 #include <cassert>
14 #include <iostream>
15 #include <limits>
16 #include <sstream>
17 
18 using namespace std;
19 
20 const std::string PHFieldConfig::kInvalid_FileName("INVALID FILE");
21 
23 {
24 }
25 
27 {
28 }
29 
31 {
32  switch (get_field_config())
33  {
34  case kFieldUniform:
35  return "Uniform field";
36  break;
37  case kField2D:
38  return "2D field map expressed in cylindrical coordinates";
39  break;
40  case kField3DCylindrical:
41  return "3D field map expressed in cylindrical coordinates";
42  break;
43  case kField3DCartesian:
44  return "3D field map expressed in Cartesian coordinates";
45  break;
47  return "RegionalConst Field";
48  break;
49  case kFieldSeaQuest:
50  return "SeaQuest Field: 2 3D Cartesian";
51  break;
52  default:
53  return "Invalid Field";
54  }
55 }
56 
60 void PHFieldConfig::identify(std::ostream& os) const
61 {
62  os << "PHFieldConfig::identify - isValid() = " << isValid() << endl;
63 }
64 
67 {
68 }
69 
72 {
73  return 0;
74 }
75 
77 {
78  return kFieldInvalid;
79 }
80 
82 {
83 }
84 
85 const std::string& PHFieldConfig::get_filename() const
86 {
87  return kInvalid_FileName;
88 }
89 
90 void PHFieldConfig::set_filename(const std::string& filename)
91 {
92 }
93 
95 {
96  return std::numeric_limits<double>::signaling_NaN();
97 }
98 
99 void PHFieldConfig::set_magfield_rescale(double magfieldRescale)
100 {
101 }
102 
105 {
106  return std::numeric_limits<double>::signaling_NaN();
107 }
108 
109 
112 {
113  return std::numeric_limits<double>::signaling_NaN();
114 }
115 
116 
119 {
120  return std::numeric_limits<double>::signaling_NaN();
121 }
122 
124 void PHFieldConfig::set_field_mag_x(double fieldMagX)
125 {
126 }
127 
130 {
131  return std::numeric_limits<double>::signaling_NaN();
132 }
133 
135 void PHFieldConfig::set_field_mag_y(double fieldMagY)
136 {
137 }
138 
141 {
142  return std::numeric_limits<double>::signaling_NaN();
143 }
144 
146 void PHFieldConfig::set_field_mag_z(double fieldMagZ)
147 {
148 }
149 
150 
153 {
154  return std::numeric_limits<double>::signaling_NaN();
155 }
156 
158 void PHFieldConfig::set_taregetmag_y(double fieldMagY)
159 {
160 }
virtual double get_taregetmag_y() const
field value in Tesla for target field model ONLY for PHFieldConfig_v3
std::string get_field_config_description() const
virtual void identify(std::ostream &os=std::cout) const
virtual void set_field_mag_z(double fieldMagZ)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual double get_magfield_rescale1() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v3
virtual void set_magfield_rescale(double magfieldRescale)
virtual void Reset()
Clear Event.
virtual void set_field_mag_x(double fieldMagX)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual double get_field_mag_x() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual double get_field_mag_z() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual FieldConfigTypes get_field_config() const
virtual double get_magfield_rescale() const
virtual void set_filename(const std::string &filename)
PHFieldConfig()
pure virtual interface class. not for direct use
virtual const std::string & get_filename() const
virtual ~PHFieldConfig()
virtual double get_magfield_rescale2() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v3
virtual void set_field_config(FieldConfigTypes fieldConfig)
virtual double get_field_mag_y() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual void set_taregetmag_y(double fieldMagX)
field value in Tesla for target field model ONLY for PHFieldConfig_v3
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual void set_field_mag_y(double fieldMagY)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
static const std::string kInvalid_FileName