Skip to content
Snippets Groups Projects
Commit bb75f824 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'cbk/analysis' into 'master'

Fix EventBookkeeperTools tests in AthAnalysis

See merge request !39472
parents 6c64d260 fc07d1f4
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39472Fix EventBookkeeperTools tests in AthAnalysis
......@@ -75,8 +75,10 @@ if( NOT XAOD_STANDALONE )
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
atlas_add_test( CutFlowSvcOutputMP
SCRIPT athena EventBookkeeperTools/TestCutFlowSvcOutput.py --nprocs=2
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
if( NOT XAOD_ANALYSIS )
atlas_add_test( CutFlowSvcOutputMP
SCRIPT athena EventBookkeeperTools/TestCutFlowSvcOutput.py --nprocs=2
PROPERTIES TIMEOUT 300
POST_EXEC_SCRIPT nopost.sh )
endif()
endif()
......@@ -15,8 +15,12 @@ def GetCurrentStreamName( msg ):
msg.info("Couldn't get input stream name from the RecFlags... trying AthFile directly.")
from PyUtils.MetaReader import read_metadata
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
input_file = svcMgr.EventSelector.InputCollections[0]
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
try:
input_file = svcMgr.EventSelector.InputCollections[0]
except AttributeError:
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
input_file = athenaCommonFlags.FilesInput()[0]
metadata = read_metadata(input_file)
metadata = metadata[input_file] # promote all keys one level up
......
......@@ -43,8 +43,11 @@ from AthenaCommon.AppMgr import theApp
import AthenaPoolCnvSvc.ReadAthenaPool # noqa: F401
# setup some configuration
from RecExConfig.RecFlags import rec
rec.mergingStreamName = 'Stream1'
try:
from RecExConfig.RecFlags import rec
rec.mergingStreamName = 'Stream1'
except ModuleNotFoundError:
pass
# setup the CutFlowSvc and corresponding tools
from EventBookkeeperTools.CutFlowHelpers import CreateCutFlowSvc
......
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