![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/MagneticFieldWrapper.hpp>
Inheritance diagram for ActsExamples::MagneticFieldWrapper:
Collaboration diagram for ActsExamples::MagneticFieldWrapper:Classes | |
| struct | Config |
| Configuration of the Magnetic Field Action. More... | |
Public Member Functions | |
| MagneticFieldWrapper (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("MagneticFieldWrapper", Acts::Logging::INFO)) | |
| ~MagneticFieldWrapper () override=default | |
| void | GetFieldValue (const G4double Point[4], G4double *Bfield) const final |
Protected Attributes | |
| Config | m_cfg |
Private Member Functions | |
| const Acts::Logger & | logger () const |
| Private access method to the logging instance. | |
Private Attributes | |
| std::unique_ptr< const Acts::Logger > | m_logger |
| The looging instance. | |
A magnetic field wrapper for the Acts magnetic field to be used with Geant4.
Definition at line 25 of file MagneticFieldWrapper.hpp.
View newest version in sPHENIX GitHub at line 25 of file MagneticFieldWrapper.hpp
| ActsExamples::MagneticFieldWrapper::MagneticFieldWrapper | ( | const Config & | cfg, |
| std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger("MagneticFieldWrapper", Acts::Logging::INFO) |
||
| ) |
Construct the magnetic field action
| cfg | the configuration struct |
| logger | the ACTS logging instance |
Definition at line 24 of file MagneticFieldWrapper.cpp.
View newest version in sPHENIX GitHub at line 24 of file MagneticFieldWrapper.cpp
|
overridedefault |
|
final |
Public get field interface
| Point | is the field request point |
| Bfield | [in,out] is the field value |
Definition at line 28 of file MagneticFieldWrapper.cpp.
View newest version in sPHENIX GitHub at line 28 of file MagneticFieldWrapper.cpp
References ACTS_ERROR, Acts::IntegrationTest::bCache, ckf::field, m_cfg(), Acts::UnitConstants::mm, and Acts::UnitConstants::T.
Here is the call graph for this function:
|
inlineprivate |
Private access method to the logging instance.
Definition at line 55 of file MagneticFieldWrapper.hpp.
View newest version in sPHENIX GitHub at line 55 of file MagneticFieldWrapper.hpp
References m_logger.
|
protected |
Definition at line 51 of file MagneticFieldWrapper.hpp.
View newest version in sPHENIX GitHub at line 51 of file MagneticFieldWrapper.hpp
|
private |
The looging instance.
Definition at line 58 of file MagneticFieldWrapper.hpp.
View newest version in sPHENIX GitHub at line 58 of file MagneticFieldWrapper.hpp
Referenced by logger().