Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldConfigv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHFieldConfigv1.h
1 // $Id: $
2 
11 #ifndef PHFIELD_PHFIELDCONFIGV1_H
12 #define PHFIELD_PHFIELDCONFIGV1_H
13 
14 #include "PHFieldConfig.h"
15 
16 #include <iostream>
17 #include <string>
18 
19 class PHObject;
20 
24 {
25  public:
27  FieldConfigTypes field_config,
28  const std::string& filename,
29  double magfield_rescale = 1.);
30 
33  : PHFieldConfigv1(kFieldInvalid, "INVALID FILE")
34  {
35  }
36 
37  ~PHFieldConfigv1() override {}
38 
40  PHObject* CloneMe() const override { return new PHFieldConfigv1(*this); }
41 
45  void
46  identify(std::ostream& os = std::cout) const override;
47 
49  void Reset() override {}
50 
52  int isValid() const override;
53 
55  {
56  return field_config_;
57  }
58  void set_field_config(FieldConfigTypes fieldConfig) override
59  {
60  field_config_ = fieldConfig;
61  }
62 
63  const std::string& get_filename() const override
64  {
65  return filename_;
66  }
67 
68  void set_filename(const std::string& filename) override
69  {
71  }
72 
73  double get_magfield_rescale() const override
74  {
75  return magfield_rescale_;
76  }
77 
78  void set_magfield_rescale(double magfieldRescale) override
79  {
80  magfield_rescale_ = magfieldRescale;
81  }
82 
83  protected:
87 
88  ClassDefOverride(PHFieldConfigv1, 3)
89 };
90 
91 #endif