ATLAS Offline Software
Public Member Functions | List of all members
python.L1.Base.Items.meta_d Class Reference
Inheritance diagram for python.L1.Base.Items.meta_d:
Collaboration diagram for python.L1.Base.Items.meta_d:

Public Member Functions

def __getattr__ (cls, attr)
 

Detailed Description

Definition at line 193 of file Items.py.

Member Function Documentation

◆ __getattr__()

def python.L1.Base.Items.meta_d.__getattr__ (   cls,
  attr 
)

Definition at line 194 of file Items.py.

194  def __getattr__(cls, attr):
195  import traceback
196  isTopo = any(filter(lambda x: attr.startswith(x), ["R2TOPO_", "TOPO_", "MUTOPO_", "MULTTOPO_"]))
197  fs = traceback.extract_stack()[-2]
198  expProdFile = "L1/Config/"
199  if isTopo:
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"
208  else:
209  isLegacyThr = any(filter(lambda x: attr.startswith(x), ["EM", "TAU", "J", "XE", "TE", "XS"]))
210  if isLegacyThr:
211  expProdFile += "ThresholdDefLegacy.py"
212  else:
213  expProdFile += "ThresholdDef.py"
214 
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)
216  log.error(msg)
217  raise RuntimeError(msg)

The documentation for this class was generated from the following file:
covarianceTool.filter
filter
Definition: covarianceTool.py:514
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10