Skip to content

Commit ae2a58f

Browse files
committed
Use random seeding in digitization (interaction records)
So far, the same interaction records were produced for each digitization invocation. This commit forces random start seeding as a quick fix.
1 parent 500c14c commit ae2a58f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Steer/DigitizerWorkflow/src/SimReaderSpec.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ DataProcessorSpec getSimReaderSpec(SubspecRange range, const std::vector<std::st
8585
// initialize fundamental objects
8686
auto& mgr = steer::HitProcessingManager::instance();
8787

88+
// init gRandom to random start
89+
// TODO: offer option to set seed
90+
gRandom->SetSeed(0);
91+
8892
if (simprefixes.size() == 0) {
8993
LOG(ERROR) << "No simulation prefix available";
9094
} else {

0 commit comments

Comments
 (0)