celeritas-project / celeritas

Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
https://celeritas-project.github.io/celeritas/user/index.html
Other
58 stars 32 forks source link

Implement CPU-only G4MagneticField wrapper #1192

Open sethrj opened 3 months ago

sethrj commented 3 months ago

To facilitate integration with CMS (#1143) it should be straightforward to add a helper class to wrap the current Geant4 magnetic field .

  1. When instantiating the local field inside a step, look up the geant4 logical volume's current region.
  2. Get the field manager from the current logical volume
  3. Convert the input coordinates to the field, convert the output from [T] to native units