Pulse height tally for photons (#2452)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Christopher Fichtlscherer 2023-07-10 05:50:08 +02:00 committed by GitHub
parent 97414699fd
commit e3cd406a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 538 additions and 12 deletions

View file

@ -550,6 +550,9 @@ void initialize_history(Particle& p, int64_t index_source)
// Reset weight window ratio
p.ww_factor() = 0.0;
// Reset pulse_height_storage
std::fill(p.pht_storage().begin(), p.pht_storage().end(), 0);
// set random number seed
int64_t particle_seed =
(simulation::total_gen + overall_generation() - 1) * settings::n_particles +