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

Use has_ecal_barrel_scfi in full_cal_reco

parent 5c1572e8
No related branches found
No related tags found
1 merge request!252Fixes to benchmarks to run with ecce:main
This commit is part of merge request !252. Comments created here will be created in the context of that merge request.
...@@ -9,11 +9,19 @@ import ROOT ...@@ -9,11 +9,19 @@ import ROOT
from Configurables import ApplicationMgr, EICDataSvc, PodioInput, PodioOutput, GeoSvc from Configurables import ApplicationMgr, EICDataSvc, PodioInput, PodioOutput, GeoSvc
from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad
detector_name = str(os.environ.get("JUGGLER_DETECTOR_CONFIG", "athena")) 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_version = str(os.environ.get("JUGGLER_DETECTOR_VERSION", "master"))
detector_path = str(os.environ.get("DETECTOR_PATH", ".")) detector_path = str(os.environ.get("DETECTOR_PATH", "."))
compact_path = os.path.join(detector_path, detector_name) compact_path = os.path.join(detector_path, detector_config)
# 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 # input arguments from calibration file
with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f: with open(f'{detector_path}/calibrations/emcal_barrel_calibration.json') as f:
...@@ -36,7 +44,7 @@ output_rec = str(os.environ["JUGGLER_REC_FILE"]) ...@@ -36,7 +44,7 @@ output_rec = str(os.environ["JUGGLER_REC_FILE"])
n_events = int(os.environ["JUGGLER_N_EVENTS"]) n_events = int(os.environ["JUGGLER_N_EVENTS"])
# geometry service # geometry service
geo_service = GeoSvc("GeoSvc", detectors=["{}.xml".format(compact_path)], OutputLevel=INFO) geo_service = GeoSvc("GeoSvc", detectors=["{}.xml".format(compact_path)], OutputLevel=WARNING)
# data service # data service
podioevent = EICDataSvc("EventDataSvc", inputs=input_sims) podioevent = EICDataSvc("EventDataSvc", inputs=input_sims)
...@@ -56,12 +64,12 @@ from Configurables import Jug__Reco__ImagingClusterReco as ImagingClusterReco ...@@ -56,12 +64,12 @@ from Configurables import Jug__Reco__ImagingClusterReco as ImagingClusterReco
# branches needed from simulation root file # branches needed from simulation root file
sim_coll = [ sim_coll = [
"MCParticles", "MCParticles",
"EcalBarrelHits",
"EcalBarrelHitsContributions",
"EcalEndcapNHits", "EcalEndcapNHits",
"EcalEndcapNHitsContributions", "EcalEndcapNHitsContributions",
"EcalEndcapPHits", "EcalEndcapPHits",
"EcalEndcapPHitsContributions", "EcalEndcapPHitsContributions",
"EcalBarrelHits",
"EcalBarrelHitsContributions",
"HcalBarrelHits", "HcalBarrelHits",
"HcalBarrelHitsContributions", "HcalBarrelHitsContributions",
"HcalEndcapPHits", "HcalEndcapPHits",
...@@ -70,7 +78,7 @@ sim_coll = [ ...@@ -70,7 +78,7 @@ sim_coll = [
"HcalEndcapNHitsContributions", "HcalEndcapNHitsContributions",
] ]
if 'athena' in detector_name: if has_ecal_barrel_scfi:
sim_coll += [ sim_coll += [
"EcalBarrelScFiHits", "EcalBarrelScFiHits",
"EcalBarrelScFiHitsContributions", "EcalBarrelScFiHitsContributions",
...@@ -173,7 +181,7 @@ ci_ecal_clreco = RecoCoG("ci_ecal_clreco", ...@@ -173,7 +181,7 @@ ci_ecal_clreco = RecoCoG("ci_ecal_clreco",
algs.append(ci_ecal_clreco) algs.append(ci_ecal_clreco)
# Central Barrel Ecal # Central Barrel Ecal
if 'athena' in detector_name: if has_ecal_barrel_scfi:
# Imaging calorimeter # Imaging calorimeter
cb_ecal_daq = dict( cb_ecal_daq = dict(
dynamicRangeADC=3*MeV, dynamicRangeADC=3*MeV,
......
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