Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified CI/physmon/reference/simulation/particles_fatras_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/simulation/particles_geant4_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/simulation/particles_ttbar_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/simulation/vertices_ttbar_hist.root
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified CI/physmon/reference/trackfitting_gsf/performance_trackfitting.root
Binary file not shown.
Binary file not shown.
Binary file modified CI/physmon/reference/trackfitting_kf/performance_trackfitting.root
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions CI/physmon/workflows/physmon_trackrefitting_kf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
outputDir=tp,
reverseFilteringMomThreshold=float("inf"),
reverseFilteringCovarianceScaling=100.0,
seed=1337,
s=s,
)

Expand Down
6 changes: 5 additions & 1 deletion Examples/Framework/src/Framework/RandomNumbers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#include "ActsExamples/Framework/AlgorithmContext.hpp"

#include <boost/functional/hash.hpp>

namespace ActsExamples {

RandomNumbers::RandomNumbers(const Config& cfg) : m_cfg(cfg) {}
Expand All @@ -20,7 +22,9 @@ RandomEngine RandomNumbers::spawnGenerator(
}

RandomSeed RandomNumbers::generateSeed(const AlgorithmContext& context) const {
return m_cfg.seed + context.eventNumber;
std::size_t seed = m_cfg.seed;
boost::hash_combine(seed, context.eventNumber);
return seed;
}

} // namespace ActsExamples
134 changes: 67 additions & 67 deletions Examples/Python/tests/root_file_hashes.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Examples/Scripts/Python/truth_tracking_kalman.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def runTruthTrackingKalman(
decorators=[],
reverseFilteringMomThreshold=0 * u.GeV,
reverseFilteringCovarianceScaling=1,
seed: int = 42,
s: acts.examples.Sequencer = None,
):
from acts.examples.simulation import (
Expand All @@ -45,7 +46,7 @@ def runTruthTrackingKalman(
for d in decorators:
s.addContextDecorator(d)

rnd = acts.examples.RandomNumbers(seed=42)
rnd = acts.examples.RandomNumbers(seed=seed)
outputDir = Path(outputDir)

logger = acts.logging.getLogger("Truth tracking example")
Expand Down
2 changes: 2 additions & 0 deletions Examples/Scripts/Python/truth_tracking_kalman_refitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def runRefittingKf(
energyLoss: bool = True,
reverseFilteringMomThreshold=0 * u.GeV,
reverseFilteringCovarianceScaling=1.0,
seed: int = 42,
s: acts.examples.Sequencer = None,
):
s = runTruthTrackingKalman(
Expand All @@ -28,6 +29,7 @@ def runRefittingKf(
outputDir=outputDir,
reverseFilteringMomThreshold=reverseFilteringMomThreshold,
reverseFilteringCovarianceScaling=reverseFilteringCovarianceScaling,
seed=seed,
s=s,
)

Expand Down
Loading