Skip to content

Commit dc42182

Browse files
authored
Merge pull request #64 from njacazio/nj-dev-autoo2geometry
Creating O2 geometry files automatically
2 parents 9ad1f16 + 959050a commit dc42182

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/scripts/createO2tables.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ def set_config(config_file, config, value):
252252
if turn_off_vertexing:
253253
set_config("createO2tables.C",
254254
"const bool do_vertexing = ", "false\;/")
255+
else: # Check that the geometry file for the vertexing is there
256+
if not os.path.isfile("o2sim_grp.root") or not os.path.isfile("o2sim_geometry.root"):
257+
run_cmd("mkdir tmpo2sim && cd tmpo2sim && o2-sim -m PIPE ITS MFT -n 1 && cp o2sim_grp.root .. && cp o2sim_geometry.root .. && rm -r tmpo2sim")
255258
if qa:
256259
set_config("dpl-config_std.json", "\\\"d_bz\\\":",
257260
"\\\""f"{bField}""\\\"\,/")

0 commit comments

Comments
 (0)