00001
00002
00003 '''
00004 usage example:
00005
00006 nuwa.py -n -1 -m"SimpleFilter.Keep /Event/Rec/AdSimple" -o reconOnly.root allData.root
00007
00008 '''
00009
00010 import os
00011
00012 def configure(argv = []):
00013
00014 from DybPython.Control import nuwa
00015 outFile = nuwa.opts.output
00016
00017 import getopt
00018 opts,args = getopt.getopt(argv,"",[])
00019 output_streams = {"/Event/RegistrationSequence":outFile,
00020 "/JobHeader":outFile,
00021 "/RunHeader":outFile
00022 }
00023 for arg in args:
00024 output_streams[arg] = outFile
00025 print "================================================"
00026 print " Keeping path:",arg
00027 print "================================================"
00028
00029 from RootIOSvc.RootIOSvcConf import RootIOCnvSvc
00030 rio = RootIOCnvSvc()
00031 rio.OutputStreams = output_streams
00032
00033 def run(app):
00034 pass