Skip to content
Snippets Groups Projects

fix: load ActsGeoSvc from Jug::Reco if available

Merged Wouter Deconinck requested to merge allow-for-acts-geo-svc into master
4 files
+ 36
4
Compare changes
  • Side-by-side
  • Inline
Files
4
from Gaudi.Configuration import *
from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc
try:
from Configurables import Jug__Reco__ActsGeoSvc as ActsGeoSvc
except:
from Configurables import ActsGeoSvc
from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad
detector_name = str(os.environ.get("DETECTOR_CONFIG", "epic"))
@@ -13,6 +17,7 @@ output_rec = str(os.environ["JUGGLER_REC_FILE"])
n_events = int(os.environ["JUGGLER_N_EVENTS"])
geo_service = GeoSvc("GeoSvc", detectors=[compact_path], OutputLevel=WARNING)
acts_geo_service = ActsGeoSvc("ActsGeoSvc", OutputLevel=WARNING)
podioevent = EICDataSvc("EventDataSvc", inputs=input_sims, OutputLevel=WARNING)
from Configurables import PodioInput
@@ -153,7 +158,7 @@ ApplicationMgr(
TopAlg = algorithms,
EvtSel = 'NONE',
EvtMax = n_events,
ExtSvc = [podioevent, geo_service],
ExtSvc = [podioevent, geo_service, acts_geo_service],
OutputLevel=WARNING
)
Loading