SHiP Field Service
Framework-agnostic C++20 library exposing SHiP magnetic field maps.
Loading...
Searching...
No Matches
SHiP::FieldMapSource Class Referencefinal

IFieldSource with one evaluator per magnet, read from field-map files. More...

#include <FieldMapIO.h>

Inheritance diagram for SHiP::FieldMapSource:
[legend]
Collaboration diagram for SHiP::FieldMapSource:
[legend]

Classes

struct  MagnetConfig
 

Public Member Functions

 FieldMapSource (std::vector< MagnetConfig > magnets)
 
std::vector< FieldRegion > const & regions () const override
 Idempotent. Ownership of the evaluators stays with the source.
 
- Public Member Functions inherited from SHiP::IFieldSource
virtual ~IFieldSource ()=default
 

Detailed Description

IFieldSource with one evaluator per magnet, read from field-map files.

Constructor & Destructor Documentation

◆ FieldMapSource()

SHiP::FieldMapSource::FieldMapSource ( std::vector< MagnetConfig >  magnets)
explicit

Member Function Documentation

◆ regions()

std::vector< FieldRegion > const & SHiP::FieldMapSource::regions ( ) const
inlineoverridevirtual

Idempotent. Ownership of the evaluators stays with the source.

Implements SHiP::IFieldSource.


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