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

Set SD track weight and warn if offload weight is not unity #1270

Closed sethrj closed 3 weeks ago

sethrj commented 3 weeks ago

This is a band-aid to issue #1268 that will at least fix callbacks to SDs in ATLAS simulations, which check the G4Track's weight (which Geant4 defaults to zero). To ensure correctness, we log an "error" (i.e., the answer is wrong but we'll keep going) if the incident track doesn't have unit weight.