Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FieldMapReadBack.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FieldMapReadBack.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef FIELDMAPREADBACK_H
4 #define FIELDMAPREADBACK_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class PHField;
12 
14 {
15  public:
16  FieldMapReadBack(const std::string &name = "FieldMapReadBack") {}
17 
18  virtual ~FieldMapReadBack() {}
19 
25  int InitRun(PHCompositeNode *topNode) override;
26 
30  int process_event(PHCompositeNode *topNode) override;
31 
32  void Load3dCartMap(const std::string &fname, const float magfield_rescale = 1.0);
33  void PrintField(const double x, const double y, const double z, const double t = 0.);
34  void Verbosity(const int i) override;
35  void SetFieldPoint(const double x, const double y, const double z, const double t = 0.);
36 
37  private:
38  PHField *fieldmap = nullptr;
39  double Point[4] = {0};
40 };
41 
42 #endif // FIELDMAPREADBACK_H