SHiP Field Service
Framework-agnostic C++20 library exposing SHiP magnetic field maps.
Loading...
Searching...
No Matches
FieldMapIO.cpp File Reference
#include "SHiP/FieldService/FieldMapIO.h"
#include <ROOT/RError.hxx>
#include <ROOT/RField.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RNTupleReader.hxx>
#include <ROOT/RNTupleWriter.hxx>
#include <array>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <format>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for FieldMapIO.cpp:

Namespaces

namespace  SHiP
 

Functions

std::vector< FieldMap > SHiP::readFieldMaps (std::string const &path)
 Read every map in path.
 
FieldMap SHiP::readFieldMap (std::string const &path, std::string const &name)
 Read the map called name from path; throws if there is none.
 
void SHiP::writeFieldMaps (std::string const &path, std::span< FieldMap const > maps, FieldMapWriteOptions const &options={})
 Write maps to a new file at path, replacing any existing file.
 
std::shared_ptr< IFieldEvaluator > SHiP::loadFieldMap (std::string const &file, std::string const &map)
 Evaluator for map map in file.