Class Reference for E1039 Core & Analysis Software
PHFieldUniform Class Reference

#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/packages/PHField/PHFieldUniform.h>

+ Inheritance diagram for PHFieldUniform:
+ Collaboration diagram for PHFieldUniform:

Public Member Functions

 PHFieldUniform (double field_mag_x, double field_mag_y, double field_mag_z)
 construct field map in constant in units of Tesla More...
 
virtual ~PHFieldUniform ()
 
void GetFieldValue (const double Point[4], double *Bfield) const
 
double get_field_mag_x () const
 
void set_field_mag_x (double fieldMagX)
 
double get_field_mag_y () const
 
void set_field_mag_y (double fieldMagY)
 
double get_field_mag_z () const
 
void set_field_mag_z (double fieldMagZ)
 
- Public Member Functions inherited from PHField
 PHField (const int verb=0)
 constructor More...
 
virtual ~PHField ()
 
virtual void identify (std::ostream &os=std::cout) const
 
void Verbosity (const int i)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor More...
 
virtual ~PHObject ()
 dtor More...
 
virtual PHObjectclone () const
 Virtual copy constructor. More...
 
virtual void Reset ()
 Clear Event. More...
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data More...
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
void SplitLevel (const int i)
 
int SplitLevel () const
 
void BufferSize (const int i)
 
int BufferSize () const
 

Protected Attributes

double field_mag_x_
 
double field_mag_y_
 
double field_mag_z_
 
- Protected Attributes inherited from PHField
unsigned verb_
 

Detailed Description

Definition at line 11 of file PHFieldUniform.h.

Constructor & Destructor Documentation

◆ PHFieldUniform()

PHFieldUniform::PHFieldUniform ( double  field_mag_x,
double  field_mag_y,
double  field_mag_z 
)

construct field map in constant in units of Tesla

Definition at line 14 of file PHFieldUniform.cc.

◆ ~PHFieldUniform()

virtual PHFieldUniform::~PHFieldUniform ( )
inlinevirtual

Definition at line 19 of file PHFieldUniform.h.

Member Function Documentation

◆ get_field_mag_x()

double PHFieldUniform::get_field_mag_x ( ) const
inline

Definition at line 26 of file PHFieldUniform.h.

References field_mag_x_.

◆ get_field_mag_y()

double PHFieldUniform::get_field_mag_y ( ) const
inline

Definition at line 36 of file PHFieldUniform.h.

References field_mag_y_.

◆ get_field_mag_z()

double PHFieldUniform::get_field_mag_z ( ) const
inline

Definition at line 46 of file PHFieldUniform.h.

References field_mag_z_.

◆ GetFieldValue()

void PHFieldUniform::GetFieldValue ( const double  Point[4],
double *  Bfield 
) const
virtual

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 24 of file PHFieldUniform.cc.

References field_mag_x_, field_mag_y_, and field_mag_z_.

◆ set_field_mag_x()

void PHFieldUniform::set_field_mag_x ( double  fieldMagX)
inline

Definition at line 31 of file PHFieldUniform.h.

References field_mag_x_.

◆ set_field_mag_y()

void PHFieldUniform::set_field_mag_y ( double  fieldMagY)
inline

Definition at line 41 of file PHFieldUniform.h.

References field_mag_y_.

◆ set_field_mag_z()

void PHFieldUniform::set_field_mag_z ( double  fieldMagZ)
inline

Definition at line 51 of file PHFieldUniform.h.

References field_mag_z_.

Member Data Documentation

◆ field_mag_x_

double PHFieldUniform::field_mag_x_
protected

Definition at line 57 of file PHFieldUniform.h.

Referenced by get_field_mag_x(), GetFieldValue(), and set_field_mag_x().

◆ field_mag_y_

double PHFieldUniform::field_mag_y_
protected

Definition at line 58 of file PHFieldUniform.h.

Referenced by get_field_mag_y(), GetFieldValue(), and set_field_mag_y().

◆ field_mag_z_

double PHFieldUniform::field_mag_z_
protected

Definition at line 59 of file PHFieldUniform.h.

Referenced by get_field_mag_z(), GetFieldValue(), and set_field_mag_z().


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