Class Reference for E1039 Core & Analysis Software
PHFieldConfig_v1.h
Go to the documentation of this file.
1 // $Id: $
2 
11 #ifndef PHFieldConfig_v1_H_
12 #define PHFieldConfig_v1_H_
13 
14 #include "PHFieldConfig.h"
15 
16 
20 {
21  public:
23  FieldConfigTypes field_config,
24  const std::string& filename,
25  double magfield_rescale = 1.);
26 
28  //PHFieldConfig_v1() : PHFieldConfig_v1(kFieldInvalid, "INVALID FILE"){}
30 
31  virtual ~PHFieldConfig_v1();
32 
34  virtual PHObject*
35  clone() const;
36 
40  virtual void
41  identify(std::ostream& os = std::cout) const;
42 
44  virtual void
45  Reset();
46 
48  virtual int
49  isValid() const;
50 
52  {
53  return field_config_;
54  }
56  {
57  field_config_ = fieldConfig;
58  }
59 
60  const std::string& get_filename() const
61  {
62  return filename_;
63  }
64 
65  void set_filename(const std::string& filename)
66  {
67  filename_ = filename;
68  }
69 
70  double get_magfield_rescale() const
71  {
72  return magfield_rescale_;
73  }
74 
75  void set_magfield_rescale(double magfieldRescale)
76  {
77  magfield_rescale_ = magfieldRescale;
78  }
79 
80  protected:
82  std::string filename_;
84 
85  ClassDef(PHFieldConfig_v1, 3)
86 };
87 
88 #endif /* PHFieldConfig_v1_H_ */
PHFieldConfig_v1 implements field configuration information for input a field map file.
const std::string & get_filename() const
virtual PHObject * clone() const
Virtual copy constructor.
void set_field_config(FieldConfigTypes fieldConfig)
void set_filename(const std::string &filename)
PHFieldConfig_v1()
default constructor for ROOT file IO
virtual ~PHFieldConfig_v1()
virtual void Reset()
Clear Event.
FieldConfigTypes field_config_
void set_magfield_rescale(double magfieldRescale)
FieldConfigTypes get_field_config() const
double get_magfield_rescale() const
std::string filename_
virtual int isValid() const
isValid returns non zero if object contains vailid data
virtual void identify(std::ostream &os=std::cout) const
PHFieldConfig store field configuration information.
Definition: PHFieldConfig.h:20
@ kFieldInvalid
invalid value
Definition: PHFieldConfig.h:54