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

fix: load ActsGeoSvc from Jug::Reco if available

parent 556fed87
Branches
No related tags found
1 merge request!319fix: load ActsGeoSvc from Jug::Reco if available
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
)
......@@ -3,6 +3,10 @@ import os
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 import SystemOfUnits as units
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
......@@ -24,6 +28,11 @@ geo_service = GeoSvc(
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
acts_geo_service = ActsGeoSvc(
"ActsGeoSvc",
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
podioevent = EICDataSvc("EventDataSvc", inputs=[input_sim_file], OutputLevel=WARNING)
from Configurables import PodioInput
......@@ -257,6 +266,6 @@ ApplicationMgr(
TopAlg=algorithms,
EvtSel="NONE",
EvtMax=n_events,
ExtSvc=[podioevent, geo_service],
ExtSvc=[podioevent, geo_service, acts_geo_service],
OutputLevel=WARNING,
)
......@@ -3,6 +3,10 @@ import os
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 import SystemOfUnits as units
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
......@@ -24,6 +28,11 @@ geo_service = GeoSvc(
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
acts_geo_service = ActsGeoSvc(
"ActsGeoSvc",
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
podioevent = EICDataSvc("EventDataSvc", inputs=[input_sim_file], OutputLevel=WARNING)
from Configurables import PodioInput
......@@ -243,6 +252,6 @@ ApplicationMgr(
TopAlg=algorithms,
EvtSel="NONE",
EvtMax=n_events,
ExtSvc=[podioevent, geo_service],
ExtSvc=[podioevent, geo_service, acts_geo_service],
OutputLevel=WARNING,
)
......@@ -3,6 +3,10 @@ import os
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 import SystemOfUnits as units
detector_path = str(os.environ.get("DETECTOR_PATH", "."))
......@@ -24,6 +28,11 @@ geo_service = GeoSvc(
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
acts_geo_service = ActsGeoSvc(
"ActsGeoSvc",
materials="calibrations/materials-map.cbor",
OutputLevel=WARNING,
)
podioevent = EICDataSvc("EventDataSvc", inputs=[input_sim_file], OutputLevel=WARNING)
from Configurables import PodioInput
......@@ -234,6 +243,6 @@ ApplicationMgr(
TopAlg=algorithms,
EvtSel="NONE",
EvtMax=n_events,
ExtSvc=[podioevent, geo_service],
ExtSvc=[podioevent, geo_service, acts_geo_service],
OutputLevel=WARNING,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment