Skip to content

Commit 9dd946b

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 0b546c8 commit 9dd946b

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()
@@ -156,7 +157,7 @@ void Cave::BeginPrimary()
156157
if (primcounter % chunks == 0) {
157158
static int counter = 1;
158159
auto seed = counter + 10;
159-
gRandom->SetSeed(seed);
160+
o2::base::simRandom()->SetSeed(seed);
160161
counter++;
161162
}
162163
}

0 commit comments

Comments
 (0)