Skip to content
Snippets Groups Projects
Commit 472f42cb authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Use has_ecal_barrel_scfi

parent abcdc1f8
No related branches found
No related tags found
1 merge request!252Fixes to benchmarks to run with ecce:main
......@@ -16,10 +16,18 @@ from Configurables import Jug__Reco__ImagingTopoCluster as ImagingTopoCluster
from Configurables import Jug__Reco__ImagingClusterReco as ImagingClusterReco
detector_name = str(os.environ.get("JUGGLER_DETECTOR", "athena"))
detector_config = str(os.environ.get("JUGGLER_DETECTOR_CONFIG", detector_name))
detector_version = str(os.environ.get("JUGGLER_DETECTOR_VERSION", "master"))
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
# Detector features that affect reconstruction
has_ecal_barrel_scfi = False
if 'athena' in detector_name:
has_ecal_barrel_scfi = True
if 'ecce' in detector_name and 'imaging' in detector_config:
has_ecal_barrel_scfi = True
# input arguments from calibration file
with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f:
calib_data = json.load(f)['electron']
......@@ -57,7 +65,7 @@ ecal_barrel_scfi_collections = [
'EcalBarrelScFiHits',
'EcalBarrelScFiHitsContributions'
]
if 'athena' in detector_name:
if has_ecal_barrel_scfi:
sim_colls += ecal_barrel_scfi_collections
# list of algorithms
......@@ -68,7 +76,7 @@ algorithms.append(podin)
# Central Barrel Ecal
if 'athena' in detector_name:
if has_ecal_barrel_scfi:
# Central ECAL Imaging Calorimeter
# use the same daq_setting for digi/reco pair
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment