ATLAS Offline Software
Loading...
Searching...
No Matches
printTestDefaults.py
Go to the documentation of this file.
1#!/usr/bin/env python
2
3#
4# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5#
6
7# Script to print out default test files, conditions and geometry tags
8
9from AthenaConfiguration import TestDefaults
10
11def printValues(testDefaultsClass):
12 instance_vars = vars(testDefaultsClass)
13 for var_name, var_value in instance_vars.items():
14 #Ignore functions
15 if str(var_name).startswith("__"):
16 continue
17 if str(var_value).startswith("__"):
18 continue
19 if str(var_value).startswith("<"):
20 continue
21 #Print only value, not ['value']
22 if type(var_value) is list:
23 var_value = var_value[0]
24 print(testDefaultsClass.__name__, var_name, var_value)
25
26if __name__ == "__main__":
27 printValues(TestDefaults.defaultTestFiles)
28 printValues(TestDefaults.defaultConditionsTags)
29 printValues(TestDefaults.defaultGeometryTags)
void print(char *figname, TCanvas *c1)
printValues(testDefaultsClass)