Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::MagneticFieldWrapper Class Reference

#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::Loggerlogger () const
 Private access method to the logging instance.
 

Private Attributes

std::unique_ptr< const
Acts::Logger
m_logger
 The looging instance.
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::MagneticFieldWrapper::MagneticFieldWrapper ( const Config cfg,
std::unique_ptr< const Acts::Logger logger = Acts::getDefaultLogger("MagneticFieldWrapper",                                                  Acts::Logging::INFO) 
)

Construct the magnetic field action

Parameters
cfgthe configuration struct
loggerthe ACTS logging instance

Definition at line 24 of file MagneticFieldWrapper.cpp.

View newest version in sPHENIX GitHub at line 24 of file MagneticFieldWrapper.cpp

ActsExamples::MagneticFieldWrapper::~MagneticFieldWrapper ( )
overridedefault

Member Function Documentation

void ActsExamples::MagneticFieldWrapper::GetFieldValue ( const G4double  Point[4],
G4double *  Bfield 
) const
final

Public get field interface

Parameters
Pointis 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:

const Acts::Logger& ActsExamples::MagneticFieldWrapper::logger ( ) const
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.

Member Data Documentation

Config ActsExamples::MagneticFieldWrapper::m_cfg
protected

Definition at line 51 of file MagneticFieldWrapper.hpp.

View newest version in sPHENIX GitHub at line 51 of file MagneticFieldWrapper.hpp

std::unique_ptr<const Acts::Logger> ActsExamples::MagneticFieldWrapper::m_logger
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().


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