Skip to content

Commit df1d30c

Browse files
sawenzelclaude
andcommitted
Create the geometry manager in O2RunSim::Init as before
This restores the creation of the TGeoManager that FairGeoLoader used to do in O2RunSim::Init. - Without it, Geant3 has no geometry manager when the geometry is constructed, and the simulation crashes. - Geant4 created a default one later, so the stored geometry carried a different title. https://its.cern.ch/jira/browse/O2-7305 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 51a8940 commit df1d30c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Steer/include/Steer/O2RunSim.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include "FairRunSim.h" // for FairRunSim
1919
#include "Rtypes.h" // for Bool_t, Double_t, UInt_t, etc
20+
#include <TGeoManager.h>
2021
#include <iostream>
2122

2223
#include "FairField.h" // for FairField
@@ -49,9 +50,8 @@ class O2RunSim : public FairRunSim
4950

5051
fRootManager->InitSink();
5152

52-
// No FairGeoLoader here: ALICE never loads an ASCII media file, and the one
53-
// consumer that forced the singleton to exist - the media loop in
54-
// FairMCApplication::ConstructOpGeometry() - has been removed.
53+
// the geometry manager that FairGeoLoader used to create here (its ASCII media part is not used by ALICE)
54+
new TGeoManager("FAIRGeom", "FAIR geometry");
5555

5656
if (mDeviceMode) {
5757
fApp = new O2MCApplication("Fair", "The Fair VMC App", ListOfModules, MatFname);

0 commit comments

Comments
 (0)