Package iceprod :: Package core :: Module inspectv2
[hide private]
[frames] | no frames]

Module inspectv2

source code

A class for parsing an IceTray XML configuration and building a Python IceTrayConfig object.

copyright (c) 2005 the icecube collaboration


Version: $Revision: $

Date: $Date: 2005/04/06 17:32:56 $

Author: Juan Carlos Diaz Velez <juancarlos@icecube.wisc.edu>

Classes [hide private]
  IceTrayInspectV2
  IceTrayInspectV3
Functions [hide private]
 
isfloat(s) source code
 
mkid() source code
 
getplatform()
Get platform information from system and format it according to icetray standard
source code
 
strip_name(name)
Create a default name for a class
source code
 
getfilelist(rootdir, project)
Get list of cxx files in <project>/private/<project>/
source code
 
getheaderfile(project, module) source code
Variables [hide private]
  SupportedTypes = ['bool', 'int', 'long', 'float', 'double', 's...
  VectorTypes = ['boolv', 'intv', 'longv', 'floatv', 'doublev', ...
  UnmetDependencyException = 'Error: Un-met dependency:'
  fileregex = '[^/]+/private/[^/]+/[^\\.]+\\.cxx'
  REGEX = 'AddParameter\\s*\\([^\\)]*\\);'
  SERVICEREGEX = '[a-zA-Z0-9_]*.*InstallService\\(.*\\)'
  DNREGEX = 'DefaultName\\s*\\(\\s*i\\)\\s*{.+}'
  I3LIB_REGEX = re.compile(r'i3_add_library\s*\((.*\n)*')
  DEPENDENCY_REGEX = re.compile(r'USE_PROJECTS\s*[^\)]+')
  Types = ['short', 'int', 'long', 'double', 'float', 'bool', 's...
  NAMELEN = 22
  default_value_table = {'NaT': 'NaN', 'bool': 'False', 'double'...
  _gid_ = -1
  DatasetTypes = ['TEST', 'BENCHMARK', 'PHYSICS', 'TEMPLATE']
  SimulationCategories = ['CORSIKA-ice-top', 'CORSIKA-in-ice', '...
  TASK_CHECKSUM_SUFFIX = '.md5sum'
  TASK_CLEANUP_FAILED = 110
  TASK_CONFIGURATION_ERROR = 101
  TASK_DATASET_ERROR_ID = -1
  TASK_ERROR_ID = -1
  TASK_EXTERNS_FAILED = 108
  TASK_EXTERN_ITER = -1
  TASK_FETCH_INPUT_FAILED = 102
  TASK_INVALID = 104
  TASK_NOT_FOUND = 103
  TASK_RUN_EXCEPTION = 109
  TASK_SERVER_ERROR = 105
  TASK_STORE_OUTPUT_FAILED = 106
  TASK_TRASHCAN_NAME = 'trashcan'
  TASK_UNPACK_INPUT_FAILED = 107
  TASK_XFER_CONFIG_ERROR = 112
  TASK_XFER_PROTO_ERROR = 111
  UndefinedTypeException = 'Error: invalid type:'
  libs = []
  logger = logging.getLogger('tray2xml')
  tver = '$Revision: 1.4 $'
Function Details [hide private]

getplatform()

source code 

Get platform information from system and format it according to icetray standard

Returns:
plaform string

strip_name(name)

source code 

Create a default name for a class

Parameters:
  • name - of module
Returns:
string default name for module

getfilelist(rootdir, project)

source code 

Get list of cxx files in <project>/private/<project>/

Parameters:
  • rootdir - top directory for search
Returns:
list of files

Variables Details [hide private]

SupportedTypes

Value:
['bool', 'int', 'long', 'float', 'double', 'string', 'OMKey']

VectorTypes

Value:
['boolv', 'intv', 'longv', 'floatv', 'doublev', 'stringv', 'OMKeyv']

Types

Value:
['short',
 'int',
 'long',
 'double',
 'float',
 'bool',
 'string',
 'char',
...

default_value_table

Value:
{'NaT': 'NaN',
 'bool': 'False',
 'double': '0.0',
 'float': '0.0',
 'int': '0',
 'long': '0',
 'string': '-'}

SimulationCategories

Value:
['CORSIKA-ice-top',
 'CORSIKA-in-ice',
 'neutrino-generator',
 'JULIeT',
 'simple-generator',
 'WIMP',
 'SuperNova',
 'TWRFilter',
...