diff --git a/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt b/LArCalorimeter/LArCnv/LArSimEventAthenaPool/CMakeLists.txt index d6ca634f6155a1fb051b70cb9e18bba20755d08c..72fedd8040e664ecf6abec07d45fe6979cc74f42 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 0000000000000000000000000000000000000000..66a38d04b75a3ff8436d397faeac553313679aa6 --- /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)