From ff75cc6ca488f5c06f5a5aa00ad5f549721bcd99 Mon Sep 17 00:00:00 2001 From: Sylvester Joosten <sjoosten@anl.gov> Date: Thu, 28 Oct 2021 19:37:38 +0000 Subject: [PATCH] Use material maps for canyonlands --- .../tracking/options/track_reconstruction.py | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/benchmarks/tracking/options/track_reconstruction.py b/benchmarks/tracking/options/track_reconstruction.py index 36e28c5c..a79ccdf7 100644 --- a/benchmarks/tracking/options/track_reconstruction.py +++ b/benchmarks/tracking/options/track_reconstruction.py @@ -22,17 +22,19 @@ input_sim_file = str(os.environ["JUGGLER_SIM_FILE"]) output_rec_file = str(os.environ["JUGGLER_REC_FILE"]) n_events = str(os.environ["JUGGLER_N_EVENTS"]) -## only have material maps for acadia right now +## note: old version of material map is called material-maps.XXX, new version is materials-map.XXX +## these names are somewhat inconsistent, and should probably all be renamed to 'material-map.XXX' +## FIXME if detector_version == 'acadia': - geo_service = GeoSvc("GeoSvc", - detectors=["{}/{}.xml".format(detector_path,detector_name)], - materials="config/material-maps.json", - OutputLevel=WARNING) + geo_service = GeoSvc("GeoSvc", + detectors=["{}/{}.xml".format(detector_path,detector_name)], + materials="config/material-maps.json", + OutputLevel=WARNING) else: - geo_service = GeoSvc("GeoSvc", - detectors=["{}/{}.xml".format(detector_path,detector_name)], - #materials="config/material-maps.json", - OutputLevel=WARNING) + geo_service = GeoSvc("GeoSvc", + detectors=["{}/{}.xml".format(detector_path,detector_name)], + materials="calibrations/materials-map.cbor", + OutputLevel=WARNING) podioevent = EICDataSvc("EventDataSvc", inputs=[input_sim_file], OutputLevel=WARNING) from Configurables import PodioInput -- GitLab