Skip to content
Snippets Groups Projects
Commit ccf085bf authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Made xAODEventInfoCnv compatible with AthAnalysis.

parent 1404dd88
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ atlas_subdir( xAODEventInfoCnv ) ...@@ -5,7 +5,7 @@ atlas_subdir( xAODEventInfoCnv )
# Optional dependencies: # Optional dependencies:
set( extra_libs ) set( extra_libs )
if( NOT SIMULATIONBASE AND NOT GENERATIONBASE ) if( NOT SIMULATIONBASE AND NOT GENERATIONBASE AND NOT XAOD_ANALYSIS )
set( extra_libs BeamSpotConditionsData LumiBlockData ) set( extra_libs BeamSpotConditionsData LumiBlockData )
endif() endif()
...@@ -30,7 +30,7 @@ atlas_add_test( EvenInfoCnvConfigTestMT ...@@ -30,7 +30,7 @@ atlas_add_test( EvenInfoCnvConfigTestMT
SCRIPT test/EventInfoCnv_test.py -n 25 -t 3 SCRIPT test/EventInfoCnv_test.py -n 25 -t 3
PROPERTIES TIMEOUT 300 ) PROPERTIES TIMEOUT 300 )
if( NOT SIMULATIONBASE AND NOT GENERATIONBASE ) if( NOT SIMULATIONBASE AND NOT GENERATIONBASE AND NOT XAOD_ANALYSIS )
atlas_add_test( EventInfoOverlayConfigTest atlas_add_test( EventInfoOverlayConfigTest
SCRIPT test/EventInfoOverlay_test.py SCRIPT test/EventInfoOverlay_test.py
PROPERTIES TIMEOUT 300 ) PROPERTIES TIMEOUT 300 )
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
""" """
from AthenaCommon.Logging import logging
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.ComponentFactory import CompFactory from AthenaConfiguration.ComponentFactory import CompFactory
...@@ -21,9 +22,14 @@ def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg", ...@@ -21,9 +22,14 @@ def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg",
# TODO: luminosity # TODO: luminosity
if not disableBeamSpot and flags.Common.Project not in ["AthSimulation", "AthGeneration"]: if not disableBeamSpot:
from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg try:
acc.merge(BeamSpotCondAlgCfg(flags)) from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
acc.merge(BeamSpotCondAlgCfg(flags))
except ImportError:
log = logging.getLogger( 'EventInfoCnvAlgCfg' )
log.info( 'BeamSpotConditions not available, not using it' )
pass
xAODMaker__EventInfoCnvAlg = CompFactory.xAODMaker.EventInfoCnvAlg xAODMaker__EventInfoCnvAlg = CompFactory.xAODMaker.EventInfoCnvAlg
alg = xAODMaker__EventInfoCnvAlg(name, **kwargs) alg = xAODMaker__EventInfoCnvAlg(name, **kwargs)
......
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