00001
00002
00003 '''
00004 usage example:
00005
00006 nuwa.py -A -n 10 DataQuality.AdPlotter positron_1MeV_center_n10.root
00007
00008 '''
00009
00010 __all__ = ['Configure']
00011
00012 class Configure():
00013
00014 def __init__(self):
00015
00016 from GaudiSvc.GaudiSvcConf import THistSvc
00017 self.histsvc = THistSvc()
00018 self.histsvc.Output =["file1 DATAFILE='adPlots.root' OPT='RECREATE' TYP='ROOT' "]
00019
00020 from DataQuality.DataQualityConf import AdPlotterAlg
00021 self.plotter = AdPlotterAlg()
00022 self.plotter.FilePath="/file1/adplotter"
00023
00024 from Gaudi.Configuration import ApplicationMgr
00025 theApp = ApplicationMgr()
00026 theApp.TopAlg.append(self.plotter)
00027
00028 return
00029 pass
00030
00031 def configure():
00032 Configure()