From c4f9ec86b7f945fb288422488e380661ad370f34 Mon Sep 17 00:00:00 2001 From: John Chapman <jchapman@cern.ch> Date: Fri, 10 Jan 2020 17:00:20 +0100 Subject: [PATCH] Migrate LArSimEventAthenaPool TPCnv unit tests to ComponentAccumulator LArSimEventTPCnv_HITS - passes --- .../LArSimEventAthenaPool/CMakeLists.txt | 3 ++- .../test/LArSimEventTPCnv_HITS_test.py | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 LArCalorimeter/LArCnv/LArSimEventAthenaPool/test/LArSimEventTPCnv_HITS_test.py diff --git a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt index d6ca634f615..72fedd8040e 100644 --- a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt +++ b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt @@ -12,6 +12,7 @@ atlas_add_poolcnv_library( LArSimEventAthenaPoolPoolCnv # 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 ) @@ -19,7 +20,7 @@ find_package( AthenaPoolUtilitiesTest ) if( ATHENAPOOLUTILITIESTEST_FOUND ) set( LARSIMEVENTATHENAPOOL_REFERENCE_TAG LArSimEventAthenaPoolReference-01-00-00 ) - run_tpcnv_legacy_test( LArSimEventTPCnv_HITS HITS.04919495._000416 + run_tpcnv_test( LArSimEventTPCnv_HITS HITS.04919495._000416 REFERENCE_TAG ${LARSIMEVENTATHENAPOOL_REFERENCE_TAG} ) else() message( WARNING diff --git a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/test/LArSimEventTPCnv_HITS_test.py b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/test/LArSimEventTPCnv_HITS_test.py new file mode 100755 index 00000000000..66a38d04b75 --- /dev/null +++ b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/test/LArSimEventTPCnv_HITS_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 = 'rtt:valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.simul.HITS.e3099_s2578_tid04919495_00/HITS.04919495._000416.pool.root.1' + + keys = [ + #LArHitContainer_p2 + 'LArHitHEC@100', + 'LArHitFCAL@100', + 'LArHitEMB@100', + 'LArHitEMEC@100', + ] + + TPCnvTest(infile, keys, useGeoModelSvc=True) -- GitLab