Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:19:22

0001 // $Id: $
0002 
0003 /*!
0004  * \file PHG4MagneticField.cc
0005  * \brief
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #include "PHG4MagneticField.h"
0012 
0013 #include <phfield/PHField.h>
0014 
0015 #include <cassert>
0016 
0017 PHG4MagneticField::PHG4MagneticField(const PHField* field)
0018   : field_(field)
0019 {
0020   assert(field_);
0021 }
0022 
0023 void PHG4MagneticField::GetFieldValue(const double Point[4], double* Bfield) const
0024 {
0025   assert(field_);
0026 
0027   field_->GetFieldValue(Point, Bfield);
0028 }