ATLAS Offline Software
Loading...
Searching...
No Matches
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

 stringPropValue (value)
 indentBy (propValue, indent)

Function Documentation

◆ indentBy()

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

Definition at line 401 of file AnaAlgorithmConfig.py.

401def 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()

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

Definition at line 391 of file AnaAlgorithmConfig.py.

391def 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