ATLAS Offline Software
Loading...
Searching...
No Matches
python.AnaAlgorithmConfig Namespace Reference

Classes

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

Functions

 stringPropValue (value)
 indentBy (propValue, indent)

Function Documentation

◆ indentBy()

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

Definition at line 378 of file AnaAlgorithmConfig.py.

378def indentBy( propValue, indent ):
379 """Helper function used in the configuration printout"""
380
381 stringValue = str( propValue )
382 result = ""
383 for stringLine in stringValue.split( '\n' ):
384 if len( result ):
385 result += "\n" + indent
386 result += stringLine
387 return result
388
389
390#
391# Declare some unit tests for the code
392#
393

◆ stringPropValue()

stringPropValue ( value)
Helper function producing a string property value

Definition at line 369 of file AnaAlgorithmConfig.py.

369def stringPropValue( value ):
370 """Helper function producing a string property value"""
371
372 stringValue = str( value )
373 if isinstance( value, bool ):
374 stringValue = str( int( value ) )
375 return stringValue
376
377