Loading AUTHORS.md +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ The following authors, in alphabetical order, have developed or contributed to A * Thomas Billoud, Université de Montréal, [tbilloud](https://gitlab.cern.ch/tbilloud) * Tobias Bisanz, CERN, [tbisanz](https://gitlab.cern.ch/tbisanz) * Bogdan-Mihail Blidaru, Heidelberg University, [mblidaru](https://gitlab.cern.ch/mblidaru) * Sebbe Blokhuizen, Stockholm University, Sioux Technologies, [SBlokhuizen](https://github.com/SBlokhuizen) * Marco Bomben, Université de Paris, [mbomben](https://gitlab.cern.ch/mbomben) * Koen van den Brandt, Nikhef, [kvandenb](https://gitlab.cern.ch/kvandenb) * Ben Bruers, DESY, [bbrueers](https://gitlab.cern.ch/bbrueers) Loading etc/unittests/test_core/test_06-10_multithreading_physics_singlethr.conf +1 −1 Original line number Diff line number Diff line Loading @@ -35,4 +35,4 @@ propagate_holes = true log_level = DEBUG threshold = 600e #PASS (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35408.8e > 631.069e #PASS (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35516.9e > 560.183e etc/unittests/test_core/test_06-8_multithreading_buffered.conf +1 −2 Original line number Diff line number Diff line Loading @@ -38,5 +38,4 @@ threshold = 600e [ROOTObjectWriter] log_level = DEBUG #PASS (STATUS) [F:ROOTObjectWriter] Wrote 45400 objects to 8 branches in file #PASS (STATUS) [F:ROOTObjectWriter] Wrote 46070 objects to 8 branches in file etc/unittests/test_core/test_06-9_multithreading_physics.conf +1 −1 Original line number Diff line number Diff line Loading @@ -36,4 +36,4 @@ propagate_holes = true log_level = DEBUG threshold = 600e #PASS (DEBUG) (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35408.8e > 631.069e #PASS (DEBUG) (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35516.9e > 560.183e src/modules/DepositionGeant4/SensitiveDetectorActionG4.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ G4bool SensitiveDetectorActionG4::ProcessHits(G4Step* step, G4TouchableHistory*) // excitations via the Fano factor. We assume Gaussian statistics here. auto mean_charge = edep / charge_creation_energy_; allpix::normal_distribution<double> charge_fluctuation(mean_charge, std::sqrt(mean_charge * fano_factor_)); auto charge = static_cast<unsigned int>(std::max(charge_fluctuation(random_generator_), 0.)); auto charge = static_cast<unsigned int>(std::max(charge_fluctuation(random_generator_), 0.) + 0.5); const auto* userTrackInfo = dynamic_cast<TrackInfoG4*>(track->GetUserInformation()); if(userTrackInfo == nullptr) { Loading Loading
AUTHORS.md +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ The following authors, in alphabetical order, have developed or contributed to A * Thomas Billoud, Université de Montréal, [tbilloud](https://gitlab.cern.ch/tbilloud) * Tobias Bisanz, CERN, [tbisanz](https://gitlab.cern.ch/tbisanz) * Bogdan-Mihail Blidaru, Heidelberg University, [mblidaru](https://gitlab.cern.ch/mblidaru) * Sebbe Blokhuizen, Stockholm University, Sioux Technologies, [SBlokhuizen](https://github.com/SBlokhuizen) * Marco Bomben, Université de Paris, [mbomben](https://gitlab.cern.ch/mbomben) * Koen van den Brandt, Nikhef, [kvandenb](https://gitlab.cern.ch/kvandenb) * Ben Bruers, DESY, [bbrueers](https://gitlab.cern.ch/bbrueers) Loading
etc/unittests/test_core/test_06-10_multithreading_physics_singlethr.conf +1 −1 Original line number Diff line number Diff line Loading @@ -35,4 +35,4 @@ propagate_holes = true log_level = DEBUG threshold = 600e #PASS (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35408.8e > 631.069e #PASS (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35516.9e > 560.183e
etc/unittests/test_core/test_06-8_multithreading_buffered.conf +1 −2 Original line number Diff line number Diff line Loading @@ -38,5 +38,4 @@ threshold = 600e [ROOTObjectWriter] log_level = DEBUG #PASS (STATUS) [F:ROOTObjectWriter] Wrote 45400 objects to 8 branches in file #PASS (STATUS) [F:ROOTObjectWriter] Wrote 46070 objects to 8 branches in file
etc/unittests/test_core/test_06-9_multithreading_physics.conf +1 −1 Original line number Diff line number Diff line Loading @@ -36,4 +36,4 @@ propagate_holes = true log_level = DEBUG threshold = 600e #PASS (DEBUG) (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35408.8e > 631.069e #PASS (DEBUG) (Event 20) [R:DefaultDigitizer:mydetector] Passed threshold: 35516.9e > 560.183e
src/modules/DepositionGeant4/SensitiveDetectorActionG4.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ G4bool SensitiveDetectorActionG4::ProcessHits(G4Step* step, G4TouchableHistory*) // excitations via the Fano factor. We assume Gaussian statistics here. auto mean_charge = edep / charge_creation_energy_; allpix::normal_distribution<double> charge_fluctuation(mean_charge, std::sqrt(mean_charge * fano_factor_)); auto charge = static_cast<unsigned int>(std::max(charge_fluctuation(random_generator_), 0.)); auto charge = static_cast<unsigned int>(std::max(charge_fluctuation(random_generator_), 0.) + 0.5); const auto* userTrackInfo = dynamic_cast<TrackInfoG4*>(track->GetUserInformation()); if(userTrackInfo == nullptr) { Loading