Class Reference for E1039 Core & Analysis Software
PHFieldConfig_v2.h
Go to the documentation of this file.
1 // $Id: $
2 
11 #ifndef PHFieldConfig_v2_H_
12 #define PHFieldConfig_v2_H_
13 
14 #include "PHFieldConfig.h"
15 
16 
20 {
21  public:
24  double field_mag_x,
25  double field_mag_y,
26  double field_mag_z
27  );
28 
30  //PHFieldConfig_v2() : PHFieldConfig_v2(0,0,0){}
32 
33  virtual ~PHFieldConfig_v2();
34 
36  virtual PHObject*
37  clone() const;
38 
42  virtual void
43  identify(std::ostream& os = std::cout) const;
44 
46  virtual void
47  Reset();
48 
50  virtual int
51  isValid() const;
52 
54  {
55  return kFieldUniform;
56  }
57 
59  double get_field_mag_x() const
60  {
61  return field_mag_x_;
62  }
63 
65  void set_field_mag_x(double fieldMagX)
66  {
67  field_mag_x_ = fieldMagX;
68  }
69 
71  double get_field_mag_y() const
72  {
73  return field_mag_y_;
74  }
75 
77  void set_field_mag_y(double fieldMagY)
78  {
79  field_mag_y_ = fieldMagY;
80  }
81 
83  double get_field_mag_z() const
84  {
85  return field_mag_z_;
86  }
87 
89  void set_field_mag_z(double fieldMagZ)
90  {
91  field_mag_z_ = fieldMagZ;
92  }
93 
94  protected:
95 
96  double field_mag_x_;
97  double field_mag_y_;
98  double field_mag_z_;
99 
100  ClassDef(PHFieldConfig_v2, 1)
101 };
102 
103 #endif /* PHFieldConfig_v2_H_ */
PHFieldConfig_v2 implements field configuration information for uniform field model.
double get_field_mag_y() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual PHObject * clone() const
Virtual copy constructor.
virtual ~PHFieldConfig_v2()
void set_field_mag_x(double fieldMagX)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual void Reset()
Clear Event.
void set_field_mag_z(double fieldMagZ)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
double get_field_mag_x() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
void set_field_mag_y(double fieldMagY)
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
PHFieldConfig_v2()
default constructor for ROOT file IO
double get_field_mag_z() const
field value in Tesla for uniform field model ONLY for PHFieldConfig_v2
virtual void identify(std::ostream &os=std::cout) const
FieldConfigTypes get_field_config() const
PHFieldConfig store field configuration information.
Definition: PHFieldConfig.h:20
@ kFieldUniform
Constant field.
Definition: PHFieldConfig.h:41