Definition at line 193 of file Items.py.
◆ __getattr__()
def python.L1.Base.Items.meta_d.__getattr__ |
( |
|
cls, |
|
|
|
attr |
|
) |
| |
Definition at line 194 of file Items.py.
194 def __getattr__(cls, attr):
196 isTopo = any(
filter(
lambda x: attr.startswith(x), [
"R2TOPO_",
"TOPO_",
"MUTOPO_",
"MULTTOPO_"]))
197 fs = traceback.extract_stack()[-2]
198 expProdFile =
"L1/Config/"
200 if attr.startswith(
"R2TOPO_"):
201 expProdFile +=
"TopoAlgoDefLegacy.py"
202 elif attr.startswith(
"TOPO_"):
203 expProdFile +=
"TopoAlgoDef.py"
204 elif attr.startswith(
"MUTOPO_"):
205 expProdFile +=
"TopoAlgoDefMuctpi.py"
206 elif attr.startswith(
"MULTTOPO_"):
207 expProdFile +=
"TopoMultiplicityAlgoDef.py"
209 isLegacyThr = any(
filter(
lambda x: attr.startswith(x), [
"EM",
"TAU",
"J",
"XE",
"TE",
"XS"]))
211 expProdFile +=
"ThresholdDefLegacy.py"
213 expProdFile +=
"ThresholdDef.py"
215 msg =
"Item definition issue in file %s, line %i. Threshold %s has not been defined in %s" % (
'/'.
join(fs.filename.rsplit(
'/',4)[1:]),fs.lineno, attr, expProdFile)
217 raise RuntimeError(msg)
The documentation for this class was generated from the following file: