diff --git a/CI/physmon/reference/performance_gsf.root b/CI/physmon/reference/performance_gsf.root index 8fbfa06639e..8ba228eb2a5 100644 Binary files a/CI/physmon/reference/performance_gsf.root and b/CI/physmon/reference/performance_gsf.root differ diff --git a/Core/include/Acts/EventData/ParticleHypothesis.hpp b/Core/include/Acts/EventData/ParticleHypothesis.hpp index c6a98809669..994f5179e85 100644 --- a/Core/include/Acts/EventData/ParticleHypothesis.hpp +++ b/Core/include/Acts/EventData/ParticleHypothesis.hpp @@ -43,7 +43,7 @@ class SinglyChargedParticleHypothesis return SinglyChargedParticleHypothesis(PdgParticle::ePionPlus); } static SinglyChargedParticleHypothesis electron() { - return SinglyChargedParticleHypothesis(PdgParticle::ePionPlus); + return SinglyChargedParticleHypothesis(PdgParticle::eElectron); } static SinglyChargedParticleHypothesis chargedGeantino() { diff --git a/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSmearing.cpp b/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSmearing.cpp index dd7c82fb4c2..2e31051253c 100644 --- a/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSmearing.cpp +++ b/Examples/Algorithms/TruthTracking/ActsExamples/TruthTracking/ParticleSmearing.cpp @@ -43,6 +43,11 @@ ActsExamples::ParticleSmearing::ParticleSmearing(const Config& config, throw std::invalid_argument("Missing random numbers tool"); } + if (m_cfg.particleHypothesis) { + ACTS_INFO("Override truth particle hypothesis with " + << *m_cfg.particleHypothesis); + } + m_inputParticles.initialize(m_cfg.inputParticles); m_outputTrackParameters.initialize(m_cfg.outputTrackParameters); } diff --git a/Examples/Python/tests/root_file_hashes.txt b/Examples/Python/tests/root_file_hashes.txt index 2fb10d6d345..41034db8477 100644 --- a/Examples/Python/tests/root_file_hashes.txt +++ b/Examples/Python/tests/root_file_hashes.txt @@ -34,10 +34,10 @@ test_truth_tracking_kalman[odd-0.0]__performance_track_finder.root: 39aec6316cce test_truth_tracking_kalman[odd-1000.0]__trackstates_fitter.root: 04ec5361f32eae9151497c54d89c2a0b03a088050be7a37f521f65cd3abf85c8 test_truth_tracking_kalman[odd-1000.0]__tracksummary_fitter.root: 2a6de6dedd20acae66eef29649a0966f0b83ea00cee9475fbaaca696058b2525 test_truth_tracking_kalman[odd-1000.0]__performance_track_finder.root: 39aec6316cceb90e314e16b02947faa691c18f57c3a851a25e547a8fc05a4593 -test_truth_tracking_gsf[generic]__trackstates_gsf.root: d2ea2f83e7737cc3d48d0c06e832d381e9e1041226361631f05a1962a9ed8fbd -test_truth_tracking_gsf[generic]__tracksummary_gsf.root: d51143362b51e7b4ee9d6aaab3083db6f7784c14589d90a16213642aa605e78f -test_truth_tracking_gsf[odd]__trackstates_gsf.root: 1b1d3be665abe75a5b400db3df9f2a6fbc1a193ea7a5e238a51a1f212e50e414 -test_truth_tracking_gsf[odd]__tracksummary_gsf.root: e707c8ca54ba404e7a5e0a4ad77c746445fc10ba9d8ab87c726721ebe09163e4 +test_truth_tracking_gsf[generic]__trackstates_gsf.root: 8d09c4c31bf65866645b779ceb764b2efabe82c64e2bdc84d77e343a8249ca4d +test_truth_tracking_gsf[generic]__tracksummary_gsf.root: 91a6451e0fc87434cd60422127a8cd8d6ac01cd5390c75b24c446cbf2ff42e4c +test_truth_tracking_gsf[odd]__trackstates_gsf.root: eb41b01e4a9913af2e59a3fef792104ff0c4119d1985aa0d03e84fb921ea3214 +test_truth_tracking_gsf[odd]__tracksummary_gsf.root: 94ee433af1c3b84dbf7ac3a52f73abdba5ea2143a5c13f63163f64952715c6b5 test_particle_gun__particles.root: 8549ba6e20338004ab8ba299fc65e1ee5071985b46df8f77f887cb6fef56a8ec test_material_mapping__material-map_tracks.root: 4e1c866038f0c06b099aa74fd01c3d875f07b89f54898f90debd9b558d8e4025 test_material_mapping__propagation-material.root: 646b8e2bbacec40d0bc4132236f9ab3f03b088e656e6e9b80c47ae03eaf6eab5 diff --git a/Examples/Scripts/Python/truth_tracking_gsf.py b/Examples/Scripts/Python/truth_tracking_gsf.py index 1e622321bbc..01565bfdd3a 100755 --- a/Examples/Scripts/Python/truth_tracking_gsf.py +++ b/Examples/Scripts/Python/truth_tracking_gsf.py @@ -20,7 +20,6 @@ def runTruthTrackingGsf( decorators=[], s=None, ): - from acts.examples.simulation import ( addParticleGun, EtaConfig, @@ -89,6 +88,7 @@ def runTruthTrackingGsf( trackingGeometry, field, seedingAlgorithm=SeedingAlgorithm.TruthSmeared, + particleHypothesis=acts.ParticleHypothesis.electron, ) truthTrkFndAlg = acts.examples.TruthTrackFinder(