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

In This Package:

chkGamma::__init__ Namespace Reference


Classes

class  plotGammaBasics

Functions

def configure
def run

Variables

list __all__ = ['plotGammaBasics']
int TH1F = 1
int TH1D = 1
int TH2F = 2
int TH2D = 2

Function Documentation

def chkGamma::__init__::configure (   argv = []  ) 

Definition at line 336 of file __init__.py.

00336                         :
00337     import sys, getopt
00338     from time import localtime, gmtime, mktime, strftime, strptime, timezone
00339     opts,args = getopt.getopt(argv,"o:w:")
00340     outputrootfile = 'GammaBasicPlots.root'
00341     wallTime = 0
00342     for opt,arg in opts:
00343         if opt == "-o":
00344             outputrootfile = arg
00345         if opt == "-w":
00346             if -1 != arg.find('T'):
00347                 wallTime = int(mktime(strptime(arg,
00348                                                DATETIME_FORMAT)) - timezone)
00349             else:
00350                 wallTime = int(arg)
00351 
00352     print "Your output ROOT files is: ", outputrootfile
00353     from DetHelpers.DetHelpersConf import CoordSysSvc
00354 #    from GaudiSvc.GaudiSvcConf import DetectorDataSvc
00355 
00356     from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00357     statsSvc = StatisticsSvc()
00358     statsSvc.Output ={"file1":outputrootfile}
00359 
00360 #    from GaudiSvc.GaudiSvcConf import THistSvc
00361 #    histsvc = THistSvc()
00362 #    histsvc.Output = ["file1 DATAFILE='out.root' OPT='RECREATE' TYP='ROOT' "]
00363 
00364     coorSvc = CoordSysSvc()
00365     coorSvc.OutputLevel = 1
00366 
00367     from Gaudi.Configuration import ApplicationMgr
00368     theApp = ApplicationMgr()
00369     theApp.ExtSvc.append(coorSvc)
00370 
00371     return
00372 
def run(app):

def chkGamma::__init__::run (   app  ) 

Configure and add this algorithm to job

Definition at line 373 of file __init__.py.

00373             :
00374     '''Configure and add this algorithm to job'''
00375 #    from Gaudi.Configuration import ApplicationMgr
00376 #    app = ApplicationMgr()
00377 #    app.ExtSvc += ["THistSvc"]
00378     app.ExtSvc += ["StatisticsSvc"]
00379     plotBasics = plotGammaBasics("myBasics")
00380     app.addAlgorithm(plotBasics)
00381     pass
    pass


Variable Documentation

list chkGamma::__init__::__all__ = ['plotGammaBasics'] [static]

Definition at line 6 of file __init__.py.

int chkGamma::__init__::TH1F = 1 [static]

Definition at line 15 of file __init__.py.

int chkGamma::__init__::TH1D = 1 [static]

Definition at line 16 of file __init__.py.

int chkGamma::__init__::TH2F = 2 [static]

Definition at line 17 of file __init__.py.

int chkGamma::__init__::TH2D = 2 [static]

Definition at line 18 of file __init__.py.

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

Generated on Mon Apr 11 20:11:56 2011 for MDC09a by doxygen 1.4.7