Class Reference for E1039 Core & Analysis Software
PHG4MagneticField.cc
Go to the documentation of this file.
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 }
26 
27 void PHG4MagneticField::GetFieldValue(const double Point[4], double* Bfield) const
28 {
29  assert(field_);
30 
31  field_->GetFieldValue(Point, Bfield);
32 }
transient DST object for field storage and access
Definition: PHField.h:14
virtual void GetFieldValue(const double Point[4], double *Bfield) const =0
const PHField * field_
PHG4MagneticField(const PHField *field)
void GetFieldValue(const double Point[4], double *Bfield) const
virtual ~PHG4MagneticField()