Analysis Software
Documentation for sPHENIX simulation software
|
#include <coresoftware/blob/master/offline/packages/PHField/PHField2D.h>
Public Member Functions | |
PHField2D (const std::string &filename, const int verb=0, const float magfield_rescale=1.0) | |
~PHField2D () override | |
void | GetFieldValue (const double Point[4], double *Bfield) const override |
void | GetFieldCyl (const double CylPoint[4], double *Bfield) const |
Public Member Functions inherited from PHField | |
PHField (const int verb=0) | |
constructor | |
virtual | ~PHField () |
void | Verbosity (const int i) |
int | Verbosity () const |
Protected Attributes | |
std::vector< std::vector< float > > | BFieldZ_ |
std::vector< std::vector< float > > | BFieldR_ |
std::vector< std::vector< float > > | BFieldPHI_ |
std::vector< float > | z_map_ |
std::vector< float > | r_map_ |
std::vector< float > | phi_map_ |
float | maxz_ |
float | minz_ |
double | magfield_unit |
Protected Attributes inherited from PHField | |
int | m_Verbosity |
Private Types | |
typedef std::tuple< float, float > | trio |
Private Member Functions | |
void | print_map (std::map< trio, trio >::iterator &it) const |
Private Attributes | |
unsigned int | r_index0_cache |
unsigned int | r_index1_cache |
unsigned int | z_index0_cache |
unsigned int | z_index1_cache |
Definition at line 12 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 12 of file PHField2D.h
|
private |
Definition at line 14 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 14 of file PHField2D.h
PHField2D::PHField2D | ( | const std::string & | filename, |
const int | verb = 0 , |
||
const float | magfield_rescale = 1.0 |
||
) |
Definition at line 19 of file PHField2D.cc.
View newest version in sPHENIX GitHub at line 19 of file PHField2D.cc
References BFieldR_, BFieldZ_, Acts::IntegrationTest::Bz, Acts::UnitConstants::cm, Acts::EventDataView3DTest::gauss(), i, it, G4MAGNET::magfield_rescale, magfield_unit, maxz_, minz_, nz, print_map(), physmon_track_finding_ttbar::r, r_map_, PHField::Verbosity(), physmon_track_finding_ttbar::z, and z_map_.
|
inlineoverride |
Definition at line 18 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 18 of file PHField2D.h
Definition at line 286 of file PHField2D.cc.
View newest version in sPHENIX GitHub at line 286 of file PHField2D.cc
References BFieldR_, BFieldZ_, distance(), Acts::EventDataView3DTest::gauss(), physmon_track_finding_ttbar::r, r_index0_cache, r_index1_cache, r_map_, PHField::Verbosity(), physmon_track_finding_ttbar::z, z_index0_cache, z_index1_cache, and z_map_.
Referenced by GetFieldValue().
access field value Follow the convention of G4ElectroMagneticField
[in] | Point | space time coordinate. x, y, z, t in Geant4/CLHEP units |
[out] | Bfield | field value. In the case of magnetic field, the order is Bx, By, Bz in in Geant4/CLHEP units |
Implements PHField.
Definition at line 230 of file PHField2D.cc.
View newest version in sPHENIX GitHub at line 230 of file PHField2D.cc
References GetFieldCyl(), maxz_, minz_, ActsTests::PropagationDatasets::phi, physmon_track_finding_ttbar::r, PHField::Verbosity(), ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
Definition at line 414 of file PHField2D.cc.
View newest version in sPHENIX GitHub at line 414 of file PHField2D.cc
References Acts::UnitConstants::cm, and magfield_unit.
Referenced by PHField2D().
|
protected |
Definition at line 31 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 31 of file PHField2D.h
|
protected |
Definition at line 30 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 30 of file PHField2D.h
Referenced by GetFieldCyl(), and PHField2D().
|
protected |
Definition at line 29 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 29 of file PHField2D.h
Referenced by GetFieldCyl(), and PHField2D().
|
protected |
Definition at line 39 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 39 of file PHField2D.h
Referenced by PHField2D(), and print_map().
|
protected |
Definition at line 38 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 38 of file PHField2D.h
Referenced by GetFieldValue(), and PHField2D().
|
protected |
Definition at line 38 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 38 of file PHField2D.h
Referenced by GetFieldValue(), and PHField2D().
|
protected |
Definition at line 36 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 36 of file PHField2D.h
|
mutableprivate |
Definition at line 49 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 49 of file PHField2D.h
Referenced by GetFieldCyl().
|
mutableprivate |
Definition at line 50 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 50 of file PHField2D.h
Referenced by GetFieldCyl().
|
protected |
Definition at line 35 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 35 of file PHField2D.h
Referenced by GetFieldCyl(), and PHField2D().
|
mutableprivate |
Definition at line 51 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 51 of file PHField2D.h
Referenced by GetFieldCyl().
|
mutableprivate |
Definition at line 52 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 52 of file PHField2D.h
Referenced by GetFieldCyl().
|
protected |
Definition at line 34 of file PHField2D.h.
View newest version in sPHENIX GitHub at line 34 of file PHField2D.h
Referenced by GetFieldCyl(), and PHField2D().