Skip to content

Commit 66ffeb8

Browse files
committed
Make sure geometry file is available in standard way
Little fix for parallel simulation, where each worker creates a geometry file + a PID identifier. We now make sure that the standard file (or a link) O2geometry.root is created, which is expected by the processing chain further up. With this, we can now run o2sim_parallel + digitizer-workflow. Thanks to @davidrohr.
1 parent e8620a6 commit 66ffeb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

macro/o2sim.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ FairRunSim* o2sim_init(bool asservice)
9292
}
9393
geomss << ".root";
9494
gGeoManager->Export(geomss.str().c_str());
95-
95+
if (asservice) {
96+
symlink(geomss.str().c_str(), "O2geometry.root");
97+
}
9698
std::time_t runStart = std::time(nullptr);
9799

98100
// runtime database

0 commit comments

Comments
 (0)