From 9d9b78800daad303e1431e1df87618565e37b291 Mon Sep 17 00:00:00 2001 From: John Chapman <jchapman@cern.ch> Date: Wed, 12 Aug 2020 14:44:42 +0200 Subject: [PATCH] Migrate Event/xAOD/xAODTrigMuonAthenaPool TPCnv unit tests to ComponentAccumulator xAODTrigMuonAthenaPool_20.1.7.2_test - passes xAODTrigMuonAthenaPool_21.0.79_test - passes (reference file updated) --- .../xAODTrigMuonAthenaPool/CMakeLists.txt | 5 +++-- .../share/xAODTrigMuonAthenaPool_21.0.79.ref | 2 -- .../xAODTrigMuonAthenaPool_20.1.7.2_test.py | 19 +++++++++++++++++++ .../xAODTrigMuonAthenaPool_21.0.79_test.py | 19 +++++++++++++++++++ 4 files changed, 41 insertions(+), 4 deletions(-) create mode 100755 Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_20.1.7.2_test.py create mode 100755 Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_21.0.79_test.py diff --git a/Event/xAOD/xAODTrigMuonAthenaPool/CMakeLists.txt b/Event/xAOD/xAODTrigMuonAthenaPool/CMakeLists.txt index 3042eb2ebab8..f5a74e5d7efd 100644 --- a/Event/xAOD/xAODTrigMuonAthenaPool/CMakeLists.txt +++ b/Event/xAOD/xAODTrigMuonAthenaPool/CMakeLists.txt @@ -24,6 +24,7 @@ atlas_add_poolcnv_library( xAODTrigMuonAthenaPoolPoolCnv # Install files from the package. atlas_install_joboptions( share/*.py ) +atlas_install_scripts( test/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) # Set up (a) test(s) for the converter(s): find_package( AthenaPoolUtilitiesTest ) @@ -31,10 +32,10 @@ find_package( AthenaPoolUtilitiesTest ) if( ATHENAPOOLUTILITIESTEST_FOUND ) set( XAODTRIGMONATHENAPOOL_REFERENCE_TAG xAODTrigMuonAthenaPoolReference-01-01-00 ) - run_tpcnv_legacy_test( xAODTrigMuonAthenaPool_20.1.7.2 AOD-20.1.7.2-full + run_tpcnv_test( xAODTrigMuonAthenaPool_20.1.7.2 AOD-20.1.7.2-full REQUIRED_LIBRARIES xAODTrigMuonAthenaPoolPoolCnv REFERENCE_TAG ${XAODTRIGMONATHENAPOOL_REFERENCE_TAG} ) - run_tpcnv_legacy_test( xAODTrigMuonAthenaPool_21.0.79 AOD-21.0.79-full + run_tpcnv_test( xAODTrigMuonAthenaPool_21.0.79 AOD-21.0.79-full REQUIRED_LIBRARIES xAODTrigMuonAthenaPoolPoolCnv REFERENCE_TAG ${XAODTRIGMONATHENAPOOL_REFERENCE_TAG} ) else() diff --git a/Event/xAOD/xAODTrigMuonAthenaPool/share/xAODTrigMuonAthenaPool_21.0.79.ref b/Event/xAOD/xAODTrigMuonAthenaPool/share/xAODTrigMuonAthenaPool_21.0.79.ref index edf66ea103fe..86a6c2fd82bd 100644 --- a/Event/xAOD/xAODTrigMuonAthenaPool/share/xAODTrigMuonAthenaPool_21.0.79.ref +++ b/Event/xAOD/xAODTrigMuonAthenaPool/share/xAODTrigMuonAthenaPool_21.0.79.ref @@ -510,8 +510,6 @@ IOVDbSvc INFO Disconnecting from COOLOFL_TRT/OFLP200 Domain[ROOT_All] INFO -> Access DbDatabase READ [ROOT_All] C634B46D-ECB2-A045-91CC-00A82369D887 Domain[ROOT_All] INFO /home/sss/atlas/DBRelease/current/poolcond/cond09_mc.000070.gen.COND/cond12_data.000029.gen.COND._0001.pool.root RootDatabase.open INFO /home/sss/atlas/DBRelease/current/poolcond/cond09_mc.000070.gen.COND/cond12_data.000029.gen.COND._0001.pool.root File version:53005 -PixelDetectorMa...WARNING Cannot set AlignableTransform for identifier [2.1.0.0.0.-4.256.0] at level 2 -PixelDetectorMa...WARNING Subsequent WARNINGS will be printed at DEBUG level. PixelDetectorMa... INFO Processing IBLDist alignment container with key (/Indet/IBLDist) and alignment folder pointing to /Indet/Align Domain[ROOT_All] INFO -> Access DbDatabase READ [ROOT_All] D67CA215-C5CB-DF11-954C-000423DC2158 Domain[ROOT_All] INFO /home/sss/atlas/DBRelease/current/poolcond/cond09_mc.000019.gen.COND/cond09_mc.000019.gen.COND._0010.pool.root diff --git a/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_20.1.7.2_test.py b/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_20.1.7.2_test.py new file mode 100755 index 000000000000..a728cd133616 --- /dev/null +++ b/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_20.1.7.2_test.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +""" +Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration +""" + +from AthenaPoolUtilities.TPCnvTestConfig import TPCnvTest + +if __name__ == "__main__": + + infile = 'aod/AOD-20.1.7.2/AOD-20.1.7.2-full.pool.root' + keys = [ + #xAOD::L2CombinedMuonAuxContainer + 'HLT_xAOD__L2CombinedMuonContainer_MuonL2CBInfo', + + #xAOD::L2StandAloneMuonAuxContainer + 'HLT_xAOD__L2StandAloneMuonContainer_MuonL2SAInfo', + ] + + TPCnvTest(infile, keys) diff --git a/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_21.0.79_test.py b/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_21.0.79_test.py new file mode 100755 index 000000000000..0e157b4bf1af --- /dev/null +++ b/Event/xAOD/xAODTrigMuonAthenaPool/test/xAODTrigMuonAthenaPool_21.0.79_test.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +""" +Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration +""" + +from AthenaPoolUtilities.TPCnvTestConfig import TPCnvTest + +if __name__ == "__main__": + + infile = 'aod/AOD-21.0.79/AOD-21.0.79-full.pool.root' + keys = [ + #xAOD::L2CombinedMuonAuxContainer_v1 + 'HLT_xAOD__L2CombinedMuonContainer_MuonL2CBInfo', + + #xAOD::L2StandAloneMuonAuxContainer_v2 + 'HLT_xAOD__L2StandAloneMuonContainer_MuonL2SAInfo', + ] + + TPCnvTest(infile, keys) -- GitLab