Skip to content
Snippets Groups Projects

Introduce has_ecal_barrel_scfi at top

Merged Wouter Deconinck requested to merge reconstruction-has-ecal-barrel-scfi into master
Files
4
@@ -7,8 +7,12 @@ from GaudiKernel.SystemOfUnits import eV, MeV, GeV, mm, cm, mrad
@@ -7,8 +7,12 @@ from GaudiKernel.SystemOfUnits import eV, MeV, GeV, mm, cm, mrad
import json
import json
detector_name = "athena"
detector_name = "athena"
 
if "JUGGLER_DETECTOR" in os.environ :
 
detector_name = str(os.environ["JUGGLER_DETECTOR"])
 
 
detector_config = detector_name
if "JUGGLER_DETECTOR_CONFIG" in os.environ :
if "JUGGLER_DETECTOR_CONFIG" in os.environ :
detector_name = str(os.environ["JUGGLER_DETECTOR_CONFIG"])
detector_config = str(os.environ["JUGGLER_DETECTOR_CONFIG"])
detector_path = ""
detector_path = ""
if "DETECTOR_PATH" in os.environ :
if "DETECTOR_PATH" in os.environ :
@@ -19,8 +23,13 @@ if "JUGGLER_DETECTOR_VERSION" in os.environ:
@@ -19,8 +23,13 @@ if "JUGGLER_DETECTOR_VERSION" in os.environ:
env_version = str(os.environ["JUGGLER_DETECTOR_VERSION"])
env_version = str(os.environ["JUGGLER_DETECTOR_VERSION"])
if 'acadia' in env_version:
if 'acadia' in env_version:
detector_version = 'acadia'
detector_version = 'acadia'
compact_path = os.path.join(detector_path, detector_name)
 
# 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
# CAL reconstruction
# CAL reconstruction
# get sampling fractions from system environment variable
# get sampling fractions from system environment variable
@@ -49,7 +58,7 @@ n_events = int(os.environ["JUGGLER_N_EVENTS"])
@@ -49,7 +58,7 @@ n_events = int(os.environ["JUGGLER_N_EVENTS"])
# services
# services
services = []
services = []
# geometry service
# geometry service
services.append(GeoSvc("GeoSvc", detectors=["{}.xml".format(compact_path)], OutputLevel=WARNING))
services.append(GeoSvc("GeoSvc", detectors=["{}/{}.xml".format(detector_path,detector_config)], OutputLevel=WARNING))
# data service
# data service
services.append(EICDataSvc("EventDataSvc", inputs=input_sims, OutputLevel=WARNING))
services.append(EICDataSvc("EventDataSvc", inputs=input_sims, OutputLevel=WARNING))
Loading