Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4MagneticField.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4MagneticField.cc
1 // $Id: $
2 
11 #include "PHG4MagneticField.h"
12 
13 #include <phfield/PHField.h>
14 
15 #include <cassert>
16 
18  : field_(field)
19 {
20  assert(field_);
21 }
22 
24 {
25 // delete field_; // this cleans the hcal fieldmap but crashes the regular map
26 }
27 
28 void PHG4MagneticField::GetFieldValue(const double Point[4], double* Bfield) const
29 {
30  assert(field_);
31 
32  field_->GetFieldValue(Point, Bfield);
33 }