ATLAS Offline Software
Classes | Functions
python.AnaAlgorithmConfig Namespace Reference

Classes

class  AnaAlgorithmConfig
 
class  PrivateToolConfig
 
class  TestAlgPrivateTool
 Test case for using private tools. More...
 
class  TestAlgProperties
 Test case for the algorithm property handling. More...
 
class  TestAlgTypeAndName
 Test case for the algorithm type/name handling. More...
 

Functions

def stringPropValue (value)
 
def indentBy (propValue, indent)
 

Function Documentation

◆ indentBy()

def python.AnaAlgorithmConfig.indentBy (   propValue,
  indent 
)
Helper function used in the configuration printout

Definition at line 401 of file AnaAlgorithmConfig.py.

401 def indentBy( propValue, indent ):
402  """Helper function used in the configuration printout"""
403 
404  stringValue = str( propValue )
405  result = ""
406  for stringLine in stringValue.split( '\n' ):
407  if len( result ):
408  result += "\n" + indent
409  pass
410  result += stringLine
411  pass
412  return result
413 
414 
415 #
416 # Declare some unit tests for the code
417 #
418 

◆ stringPropValue()

def python.AnaAlgorithmConfig.stringPropValue (   value)
Helper function producing a string property value

Definition at line 391 of file AnaAlgorithmConfig.py.

391 def stringPropValue( value ):
392  """Helper function producing a string property value"""
393 
394  stringValue = str( value )
395  if isinstance( value, bool ):
396  stringValue = str( int( value ) )
397  pass
398  return stringValue
399 
400 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.AnaAlgorithmConfig.indentBy
def indentBy(propValue, indent)
Definition: AnaAlgorithmConfig.py:401
str
Definition: BTagTrackIpAccessor.cxx:11
python.AnaAlgorithmConfig.stringPropValue
def stringPropValue(value)
Definition: AnaAlgorithmConfig.py:391