SHiP Field Service
Framework-agnostic C++20 library exposing SHiP magnetic field maps.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ship::G4MagFieldAdapter Class Referencefinal

Thin G4MagneticField wrapping an IFieldEvaluator. More...

#include <G4MagFieldAdapter.h>

Inheritance diagram for ship::G4MagFieldAdapter:
Inheritance graph
[legend]
Collaboration diagram for ship::G4MagFieldAdapter:
Collaboration graph
[legend]

Public Member Functions

 G4MagFieldAdapter (std::shared_ptr< IFieldEvaluator > eval)
 
void GetFieldValue (G4double const point[4], G4double *bField) const override
 

Detailed Description

Thin G4MagneticField wrapping an IFieldEvaluator.

Geant4 owns the G4FieldManager/ChordFinder; the evaluator carries the per-thread cache.

Constructor & Destructor Documentation

◆ G4MagFieldAdapter()

ship::G4MagFieldAdapter::G4MagFieldAdapter ( std::shared_ptr< IFieldEvaluator eval)
inlineexplicit

Member Function Documentation

◆ GetFieldValue()

void ship::G4MagFieldAdapter::GetFieldValue ( G4double const  point[4],
G4double *  bField 
) const
inlineoverride

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