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

fix: invert has_ecal_barrel_scfi logic

parent 7b56d702
No related branches found
No related tags found
1 merge request!295fix: invert has_ecal_barrel_scfi logic
......@@ -17,11 +17,11 @@ detector_path = str(os.environ.get("DETECTOR_PATH", "."))
compact_path = os.path.join(detector_path, detector_config)
# Detector features that affect reconstruction
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
has_ecal_barrel_scfi = True
if "epic" in detector_name and "sciglass" in detector_config:
has_ecal_barrel_scfi = False
if 'epic' in detector_name and 'arches' in detector_config:
has_ecal_barrel_scfi = False
# input arguments from calibration file
with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f:
......
......@@ -21,11 +21,11 @@ compact_path = str(
)
# Detector features that affect reconstruction
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
has_ecal_barrel_scfi = True
if "epic" in detector_name and "sciglass" in detector_config:
has_ecal_barrel_scfi = False
if 'epic' in detector_name and 'arches' in detector_config:
has_ecal_barrel_scfi = False
# input and output
input_sims = [
......
......@@ -22,11 +22,11 @@ detector_version = str(os.environ.get("DETECTOR_VERSION", "main"))
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
# Detector features that affect reconstruction
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
has_ecal_barrel_scfi = True
if "epic" in detector_name and "sciglass" in detector_config:
has_ecal_barrel_scfi = False
if 'epic' in detector_name and 'arches' in detector_config:
has_ecal_barrel_scfi = False
# input arguments from calibration file
with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f:
......
......@@ -19,11 +19,11 @@ detector_version = str(os.environ.get("DETECTOR_VERSION", "main"))
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
# Detector features that affect reconstruction
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
has_ecal_barrel_scfi = True
if "epic" in detector_name and "sciglass" in detector_config:
has_ecal_barrel_scfi = False
if 'epic' in detector_name and 'arches' in detector_config:
has_ecal_barrel_scfi = False
# input arguments from calibration file
with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment