Celeritas 0.6.0-rc.2.13+develop.285b9112
Loading...
Searching...
No Matches
Classes | Functions
CylMapMagneticField.hh File Reference
#include <memory>
#include <CLHEP/Units/SystemOfUnits.h>
#include <G4FieldManager.hh>
#include <G4MagneticField.hh>
#include <G4TransportationManager.hh>
#include <corecel/Assert.hh>
#include "corecel/Types.hh"
#include "corecel/math/Quantity.hh"
#include "geocel/g4/Convert.hh"
#include "celeritas/Quantities.hh"
#include "celeritas/field/CylMapField.hh"
#include "celeritas/field/CylMapFieldParams.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::CylMapMagneticField
 A user magnetic field equivalent to celeritas::CylMapField. More...
 

Functions

CylMapFieldParams::Input celeritas::MakeCylMapFieldInput (std::vector< G4double > const &r_grid, std::vector< G4double > const &phi_values, std::vector< G4double > const &z_grid)
 Generates input for CylMapField params with configurable nonuniform grid dimensions in native Geant4 units, and \(\phi\) should be in the range [0; \(2\times\pi\)].
 

Function Documentation

◆ MakeCylMapFieldInput()

CylMapFieldParams::Input celeritas::MakeCylMapFieldInput ( std::vector< G4double > const &  r_grid,
std::vector< G4double > const &  phi_values,
std::vector< G4double > const &  z_grid 
)

Generates input for CylMapField params with configurable nonuniform grid dimensions in native Geant4 units, and \(\phi\) should be in the range [0; \(2\times\pi\)].

This must be called after G4RunManager::Initialize as it will retrieve the G4FieldManager's field to sample it.