icecube.simprod.ipmodule module

Interface for configuring pre/post icetray scripts

Copyright (c) 2005 the icecube collaboration

@version: $Revision: $ @date: $Date: $ @author: Juan Carlos Diaz Velez <juancarlos@icecube.wisc.edu>

class icecube.simprod.ipmodule.FromOptionParser(parser, main)

Bases: IPBaseClass

Converts an OptionParser object to an IceProd module. Takes a parser and a main function as input. Will pass a dict with the name,value pairs to the main function.

Execute(stats={})
class icecube.simprod.ipmodule.GenericModule

Bases: IPBaseClass

Execute(stats)
class icecube.simprod.ipmodule.GoodBye

Bases: IPBaseClass

Execute(stats)
class icecube.simprod.ipmodule.Hello

Bases: IPBaseClass

Execute(stats)
class icecube.simprod.ipmodule.IPBaseClass

Bases: object

This class provides an interface for preprocessing files in iceprod

AddParameter(param, description, value, type=None)

Add parameter value for plugin

Configure(tray)
Execute(stats)
Finish(stats={})
GetParameter(param)

Get parameter value for plugin

PrintStats(stats={})
SetParameter(param, value)

Set parameter value for plugin

SetParameters(*args)

Set multiple parameters for plugin

SetParser(parser)

Set the ExpParser object

ShowParameters()
property parameters
class icecube.simprod.ipmodule.ParsingModule(opt_parser=None)

Bases: IPBaseClass

AddParameter(param, description, value, explicit_type=None)

Add parameter value for plugin

Execute(stats={})
ExecuteOpts(stats={}, opts=None)
icecube.simprod.ipmodule.handle_bool(value)
icecube.simprod.ipmodule.string_splitter_callback(option, opt, value, parser)