Skip to content
Snippets Groups Projects
Commit 9d3255ca authored by Jennifer Roloff's avatar Jennifer Roloff
Browse files

Merge branch 'edmfix' into '23.0'

TrigEDMConfig: fix L1_eTauBDTRoI Aux item and improve unit tests

See merge request !64894
parents d15e547a dcc63a93
2 merge requests!649442023-08-10: daily sweep of 23.0 into main,!64894TrigEDMConfig: fix L1_eTauBDTRoI Aux item and improve unit tests
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( TrigEDMConfig )
......@@ -9,12 +9,12 @@ atlas_install_scripts( test/*.sh )
atlas_add_test( testEDM
SCRIPT python/testEDM.py
POST_EXEC_SCRIPT nopost.sh )
POST_EXEC_SCRIPT noerror.sh )
atlas_add_test( testEDMRun3
SCRIPT python/testEDMRun3.py
POST_EXEC_SCRIPT nopost.sh )
POST_EXEC_SCRIPT noerror.sh )
atlas_add_test( testEDMRun3Reproducibility
SCRIPT testTriggerEDMRun3Reproducibility.sh
POST_EXEC_SCRIPT nopost.sh )
POST_EXEC_SCRIPT noerror.sh )
......@@ -392,7 +392,7 @@ TriggerHLTListRun3 = [
('xAOD::eFexTauRoIContainer#L1_eTauRoI', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIAuxContainer#L1_eTauRoIAux.thresholdPatterns', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIContainer#L1_eTauBDTRoI', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIAuxContainer#L1_eTauBDTRoI.thresholdPatterns', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIAuxContainer#L1_eTauBDTRoIAux.thresholdPatterns', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIContainer#L1_cTauRoI', 'BS ESD AODFULL', 'L1'),
('xAOD::eFexTauRoIAuxContainer#L1_cTauRoIAux.thresholdPatterns.jTauLink', 'BS ESD AODFULL', 'L1'),
......
......@@ -24,6 +24,7 @@ def dumpListToJson(fileName):
def main():
import re
return_code = 0
serializable_names = []
serializable_names_no_label = []
#Check for duplicates
......@@ -34,28 +35,37 @@ def main():
for item, count in collections.Counter(names).items():
if count > 1:
log.error(str(count) + "x: " + str(item))
return 1
return_code = 1
for TriggerSerializable in TriggerHLTListRun3:
serializable_name = TriggerSerializable[0]
for i, edm in enumerate(TriggerHLTListRun3):
serializable_name = edm[0]
serializable_name_no_label = re.sub(r"\#.*", "", serializable_name)
if '#' not in serializable_name:
log.error("no label for " + serializable_name)
return 1
return_code = 1
#Check container has a CLID
if not isCLIDDefined(serializable_name_no_label):
log.error("no CLID for " + serializable_name)
return_code = 1
#check for Aux "."
if "Aux" in serializable_name and "Aux." not in serializable_name:
log.error("no final Aux. in label for " + serializable_name)
return_code = 1
#check that Aux always follows non-Aux (our deserialiser relies on that)
if i>0 and "Aux" in serializable_name and "Aux" in TriggerHLTListRun3[i-1][0]:
log.error(f"Aux container {serializable_name} needs to folow the "
"associated interface container in the EDM list")
return_code = 1
file_types = TriggerSerializable[1].split(" ")
file_types = edm[1].split(" ")
for file_type in file_types:
if file_type not in AllowedOutputFormats:
log.error("unknown file type " + file_type + " for " + serializable_name)
return 1
return_code = 1
serializable_names.append(serializable_name)
serializable_names_no_label.append(serializable_name_no_label)
......@@ -63,7 +73,10 @@ def main():
#check EDMDetails
for EDMDetail in EDMDetailsRun3.keys():
if EDMDetail not in serializable_names_no_label:
log.warning("EDMDetail for " + EDMDetail + " does not correspond to any name in TriggerList")
log.error("EDMDetail for " + EDMDetail + " does not correspond to any name in TriggerList")
return_code = 1
return return_code
if __name__ == "__main__":
import sys
......
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