Skip to content

Commit 2d3e549

Browse files
sawenzelclaude
andcommitted
Seed the Cave chunk seeding through the transport generator
Cave::BeginPrimary seeded gRandom directly; it now uses o2::base::simRandom() like the other transport-time seeding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fa1cbc3 commit 2d3e549

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Detectors/Passive/src/Cave.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "TGeoPgon.h"
3434
#include "TGeoTube.h"
3535
#include "TGeoCompositeShape.h"
36+
#include "DetectorsBase/SimRandom.h"
3637
using namespace o2::passive;
3738

3839
void Cave::createMaterials()
@@ -153,7 +154,7 @@ void Cave::BeginPrimary()
153154
if (chunks != -1) {
154155
if (mPrimaryCounter % chunks == 0) {
155156
auto seed = mChunkSeedCounter + 10;
156-
gRandom->SetSeed(seed);
157+
o2::base::simRandom()->SetSeed(seed);
157158
mChunkSeedCounter++;
158159
}
159160
}

0 commit comments

Comments
 (0)