EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHField3DCartesian Class Reference

#include <fun4all_coresoftware/blob/master/offline/packages/PHField/PHField3DCartesian.h>

+ Inheritance diagram for PHField3DCartesian:
+ Collaboration diagram for PHField3DCartesian:

Public Member Functions

 PHField3DCartesian (const std::string &fname, const float magfield_rescale=1.0)
 
 ~PHField3DCartesian () override
 
void GetFieldValue (const double Point[4], double *Bfield) const override
 
- Public Member Functions inherited from PHField
 PHField (const int verb=0)
 constructor
 
virtual ~PHField ()
 
void Verbosity (const int i)
 
int Verbosity () const
 

Private Attributes

std::string filename
 
double xmin = 1000000
 
double xmax = -1000000
 
double ymin = 1000000
 
double ymax = -1000000
 
double zmin = 1000000
 
double zmax = -1000000
 
double xstepsize = NAN
 
double ystepsize = NAN
 
double zstepsize = NAN
 
double xyz [2][2][2][3]
 
double bf [2][2][2][3]
 
double xkey_save = NAN
 
double ykey_save = NAN
 
double zkey_save = NAN
 
int cache_hits = 0
 
int cache_misses = 0
 

Additional Inherited Members

- Protected Attributes inherited from PHField
int m_Verbosity
 

Detailed Description

Definition at line 9 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 9 of file PHField3DCartesian.h

Constructor & Destructor Documentation

PHField3DCartesian::PHField3DCartesian ( const std::string &  fname,
const float  magfield_rescale = 1.0 
)

Definition at line 28 of file PHField3DCartesian.cc.

View newest version in sPHENIX GitHub at line 28 of file PHField3DCartesian.cc

References bf, Acts::UnitConstants::cm, exit(), filename, k, xmax, xmin, xstepsize, xyz, ymax, ymin, ystepsize, zmax, zmin, and zstepsize.

+ Here is the call graph for this function:

PHField3DCartesian::~PHField3DCartesian ( )
override

Definition at line 108 of file PHField3DCartesian.cc.

View newest version in sPHENIX GitHub at line 108 of file PHField3DCartesian.cc

References cache_hits, cache_misses, and PHField::Verbosity().

+ Here is the call graph for this function:

Member Function Documentation

void PHField3DCartesian::GetFieldValue ( const double  Point[4],
double *  Bfield 
) const
overridevirtual

access field value Follow the convention of G4ElectroMagneticField

Parameters
[in]Pointspace time coordinate. x, y, z, t in Geant4/CLHEP units
[out]Bfieldfield value. In the case of magnetic field, the order is Bx, By, Bz in in Geant4/CLHEP units

Implements PHField.

Definition at line 118 of file PHField3DCartesian.cc.

View newest version in sPHENIX GitHub at line 118 of file PHField3DCartesian.cc

References bf, cache_hits, cache_misses, Acts::UnitConstants::cm, it, k, PHField::Verbosity(), x, xkey_save, xmax, xmin, xstepsize, xyz, y, ykey_save, ymax, ymin, ystepsize, z, zkey_save, zmax, zmin, and zstepsize.

+ Here is the call graph for this function:

Member Data Documentation

double PHField3DCartesian::bf[2][2][2][3]
mutableprivate

Definition at line 35 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 35 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

int PHField3DCartesian::cache_hits = 0
mutableprivate

Definition at line 39 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 39 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and ~PHField3DCartesian().

int PHField3DCartesian::cache_misses = 0
mutableprivate

Definition at line 40 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 40 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and ~PHField3DCartesian().

std::string PHField3DCartesian::filename
private

Definition at line 22 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 22 of file PHField3DCartesian.h

Referenced by PHField3DCartesian().

double PHField3DCartesian::xkey_save = NAN
mutableprivate

Definition at line 36 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 36 of file PHField3DCartesian.h

Referenced by GetFieldValue().

double PHField3DCartesian::xmax = -1000000
private

Definition at line 24 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 24 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::xmin = 1000000
private

Definition at line 23 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 23 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::xstepsize = NAN
private

Definition at line 29 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 29 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::xyz[2][2][2][3]
mutableprivate

Definition at line 34 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 34 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::ykey_save = NAN
mutableprivate

Definition at line 37 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 37 of file PHField3DCartesian.h

Referenced by GetFieldValue().

double PHField3DCartesian::ymax = -1000000
private

Definition at line 26 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 26 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::ymin = 1000000
private

Definition at line 25 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 25 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::ystepsize = NAN
private

Definition at line 30 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 30 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::zkey_save = NAN
mutableprivate

Definition at line 38 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 38 of file PHField3DCartesian.h

Referenced by GetFieldValue().

double PHField3DCartesian::zmax = -1000000
private

Definition at line 28 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 28 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::zmin = 1000000
private

Definition at line 27 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 27 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().

double PHField3DCartesian::zstepsize = NAN
private

Definition at line 31 of file PHField3DCartesian.h.

View newest version in sPHENIX GitHub at line 31 of file PHField3DCartesian.h

Referenced by GetFieldValue(), and PHField3DCartesian().


The documentation for this class was generated from the following files: