From 401762e30d555cd21a2ad97cce4538626a999c1d Mon Sep 17 00:00:00 2001 From: Oliver Majersky Date: Thu, 28 Apr 2022 09:56:14 +0200 Subject: [PATCH] Add support for more derivation formats into the dataset check. --- PhysicsAnalysis/TopPhys/xAOD/TopExamples/python/ami.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PhysicsAnalysis/TopPhys/xAOD/TopExamples/python/ami.py b/PhysicsAnalysis/TopPhys/xAOD/TopExamples/python/ami.py index 580d3760c64..aa89975c2b5 100755 --- a/PhysicsAnalysis/TopPhys/xAOD/TopExamples/python/ami.py +++ b/PhysicsAnalysis/TopPhys/xAOD/TopExamples/python/ami.py @@ -216,6 +216,12 @@ def get_type(ldn): if match: return match.group(0)[1:-1] match = re.search("\.DAOD_[A-Z]+[0-9]+\.", ldn) + if match: + return match.group(0)[1:-1] + match = re.search("\.DAOD_[A-Z]+[0-9]+[A-Z]+[0-9]+\.", ldn) + if match: + return match.group(0)[1:-1] + match = re.search("\.DAOD_[A-Z]+\.", ldn) if match: return match.group(0)[1:-1] # If none of the above, raise exception. -- GitLab