Skip to content

Draft: `AthenaPoolExample` xAOD EDM Read/Write CI build IO tests

Arthur Charles Kraus requested to merge akraus/athena:jacks-test-branch into main

There are a number of tests in the Database/AthenaPool/AthenaPoolExample/AthenaPoolExampleAlgorithms that aren't testing some of the modern I/O functionality.

This MR adds in two tests within the package that read and write bespoke xAOD objects called ExampleElectrons that have a charge and pT. The test AthenaPoolExample_WritexAODElectrons.py takes existing pT values from ExampleTracks, which are generated from the AthenaPoolExample_ReadWrite.py test, and writes them to the xAOD::ExampleElectron object which is then put into TestContainer and saved to SimplePoolFile_xAOD.root. The AthenaPoolExample_ReadxAODElectrons.py test then takes that SimplePoolFile_xAOD.root and loops over all the ExampleElectrons and reads back the pT value.

These tests also write decorations to the corresponding ExampleElectrons, where, upon reading ignore the second decoration decor2 and only read the first decor1.

JIRA ticket: https://its.cern.ch/jira/browse/ATEAM-959

Merge request reports