From 37c12bd10e6f81ab751fd375f4e3747a52cda3cc Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Wed, 19 Oct 2022 18:13:27 -0500
Subject: [PATCH] fix: brycecanyon has ecal barrel imaging and scfi

---
 benchmarks/clustering/options/full_cal_reco.py    | 2 ++
 benchmarks/ecal/options/barrel.py                 | 2 ++
 benchmarks/imaging_ecal/options/hybrid_cluster.py | 2 ++
 benchmarks/imaging_ecal/options/scfi_cluster.py   | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/benchmarks/clustering/options/full_cal_reco.py b/benchmarks/clustering/options/full_cal_reco.py
index 19018046..1652c22f 100644
--- a/benchmarks/clustering/options/full_cal_reco.py
+++ b/benchmarks/clustering/options/full_cal_reco.py
@@ -20,6 +20,8 @@ compact_path = os.path.join(detector_path, detector_config)
 has_ecal_barrel_scfi = False
 if 'epic' in detector_name and 'imaging' in detector_config:
     has_ecal_barrel_scfi = True
+if 'epic' in detector_name and 'brycecanyon' 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:
diff --git a/benchmarks/ecal/options/barrel.py b/benchmarks/ecal/options/barrel.py
index c2915cd3..81652d86 100644
--- a/benchmarks/ecal/options/barrel.py
+++ b/benchmarks/ecal/options/barrel.py
@@ -24,6 +24,8 @@ compact_path = str(
 has_ecal_barrel_scfi = False
 if "epic" in detector_name and "imaging" in detector_config:
     has_ecal_barrel_scfi = True
+if 'epic' in detector_name and 'brycecanyon' in detector_config:
+    has_ecal_barrel_scfi = True
 
 # input and output
 input_sims = [
diff --git a/benchmarks/imaging_ecal/options/hybrid_cluster.py b/benchmarks/imaging_ecal/options/hybrid_cluster.py
index 982c0b62..663a74e4 100644
--- a/benchmarks/imaging_ecal/options/hybrid_cluster.py
+++ b/benchmarks/imaging_ecal/options/hybrid_cluster.py
@@ -25,6 +25,8 @@ detector_path = str(os.environ.get("DETECTOR_PATH", "."))
 has_ecal_barrel_scfi = False
 if 'epic' in detector_name and 'imaging' in detector_config:
     has_ecal_barrel_scfi = True
+if 'epic' in detector_name and 'brycecanyon' 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:
diff --git a/benchmarks/imaging_ecal/options/scfi_cluster.py b/benchmarks/imaging_ecal/options/scfi_cluster.py
index b81e8ca4..7f3e66fa 100644
--- a/benchmarks/imaging_ecal/options/scfi_cluster.py
+++ b/benchmarks/imaging_ecal/options/scfi_cluster.py
@@ -22,6 +22,8 @@ detector_path = str(os.environ.get("DETECTOR_PATH", "."))
 has_ecal_barrel_scfi = False
 if 'epic' in detector_name and 'imaging' in detector_config:
     has_ecal_barrel_scfi = True
+if 'epic' in detector_name and 'brycecanyon' 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:
-- 
GitLab