ATLAS Offline Software
Classes | Functions
python.AsgServiceConfig Namespace Reference

Classes

class  AsgServiceConfig
 
class  PrivateToolConfig
 
class  TestServicePrivateTool
 Test case for using private tools. More...
 
class  TestServiceProperties
 Test case for the service property handling. More...
 
class  TestServiceTypeAndName
 Test case for the service type/name handling. More...
 

Functions

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

Function Documentation

◆ indentBy()

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

Definition at line 364 of file AsgServiceConfig.py.

364 def indentBy( propValue, indent ):
365  """Helper function used in the configuration printout"""
366 
367  stringValue = str( propValue )
368  result = ""
369  for stringLine in stringValue.split( '\n' ):
370  if len( result ):
371  result += "\n" + indent
372  pass
373  result += stringLine
374  pass
375  return result
376 
377 
378 #
379 # Declare some unit tests for the code
380 #
381 

◆ stringPropValue()

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

Definition at line 354 of file AsgServiceConfig.py.

354 def stringPropValue( value ):
355  """Helper function producing a string property value"""
356 
357  stringValue = str( value )
358  if isinstance( value, bool ):
359  stringValue = str( int( value ) )
360  pass
361  return stringValue
362 
363 
python.AsgServiceConfig.stringPropValue
def stringPropValue(value)
Definition: AsgServiceConfig.py:354
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.AsgServiceConfig.indentBy
def indentBy(propValue, indent)
Definition: AsgServiceConfig.py:364
str
Definition: BTagTrackIpAccessor.cxx:11