| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

__init__.py

Go to the documentation of this file.
00001 def configure( argv=[] ):
00002     """ Example of processing raw data """
00003     from optparse import OptionParser, OptionGroup, IndentedHelpFormatter
00004     parser = OptionParser(usage="-m \"DaqFileWriter [-b output-based][ -d output-dir]\"",
00005                           version="%prog 1.0")
00006     parser.add_option('-b',
00007                       '--output-base',
00008                       dest='OUTPUT_BASE',
00009                       action='store',
00010                       type='string',
00011                       help='The base from which to construct the output file names',
00012                       default = 'raw_format_output')
00013     parser.add_option('-d',
00014                       '--output-dir',
00015                       dest='OUTPUT_DIR',
00016                       action='store',
00017                       type='string',
00018                       help='The directory into which to write the output files',
00019                       default = ".")
00020     (options, args) = parser.parse_args(argv)
00021     
00022     from Gaudi.Configuration import ApplicationMgr
00023     from DaqFormatModules.DaqFormatModulesConf import DybDaq__DaqFileWriter
00024     output = DybDaq__DaqFileWriter("Output for " + options.OUTPUT_BASE)
00025     app = ApplicationMgr()
00026     app.TopAlg.append(output)
00027     output.OutputBase=options.OUTPUT_BASE
00028     output.OutputDir=options.OUTPUT_DIR
00029 
00030 
00031 def run(app):
00032     '''
00033     Configure and add the algorithm to job
00034     '''
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:46:28 2011 for DaqFormatModules by doxygen 1.4.7