Functions | |
def | tofiles |
Variables | |
string | action = 'store' |
string | allfillname = 'allfills.txt' |
tuple | allfills = lumiCalcAPI.fillInRange(session.nominalSchema(),fillmin=options.minfill,fillmax=options.maxfill,amodetag=options.amodetag) |
list | allls = [None] |
list | allruns = runsperfill[ int(options.fillnum) ] |
default = MINFILL, | |
string | dest = 'fillnum' |
string | help = 'specific fill' |
dictionary | irunlsdict = {} |
int | MAXFILL = 9999 |
int | MINFILL = 1800 |
tuple | options = parser.parse_args() |
tuple | parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
required = False, | |
tuple | runresults = lumiCalcAPI.runsummary(session.nominalSchema(),irunlsdict) |
tuple | runs = runsperfill.values() |
dictionary | runsperfill = {} |
dictionary | runtimes = {} |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
tuple | svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
type = int, |
def dumpFill::tofiles | ( | allfills, | |
runsperfill, | |||
runtimes, | |||
outdir | |||
) |
Definition at line 16 of file dumpFill.py.
00017 : 00018 f=open(os.path.join(outdir,allfillname),'w') 00019 for fill in allfills: 00020 print >>f,'%d'%(fill) 00021 f.close() 00022 for fill,runs in runsperfill.items(): 00023 filename='fill_'+str(fill)+'.txt' 00024 if len(runs)!=0: 00025 f=open(os.path.join(outdir,filename),'w') 00026 for run in runs: 00027 print >>f,'%d,%s'%(run,runtimes[run]) f.close()
string dumpFill::action = 'store' |
Definition at line 37 of file dumpFill.py.
string dumpFill::allfillname = 'allfills.txt' |
Definition at line 14 of file dumpFill.py.
tuple dumpFill::allfills = lumiCalcAPI.fillInRange(session.nominalSchema(),fillmin=options.minfill,fillmax=options.maxfill,amodetag=options.amodetag) |
Definition at line 62 of file dumpFill.py.
list dumpFill::allls = [None] |
Definition at line 74 of file dumpFill.py.
list dumpFill::allruns = runsperfill[ int(options.fillnum) ] |
Definition at line 73 of file dumpFill.py.
Definition at line 44 of file dumpFill.py.
string dumpFill::dest = 'fillnum' |
Definition at line 36 of file dumpFill.py.
string dumpFill::help = 'specific fill' |
Definition at line 39 of file dumpFill.py.
tuple dumpFill::irunlsdict = {} |
Definition at line 69 of file dumpFill.py.
int dumpFill::MAXFILL = 9999 |
Definition at line 13 of file dumpFill.py.
int dumpFill::MINFILL = 1800 |
Definition at line 12 of file dumpFill.py.
tuple dumpFill::options = parser.parse_args() |
Definition at line 55 of file dumpFill.py.
tuple dumpFill::parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
Definition at line 29 of file dumpFill.py.
dumpFill::required = False, |
Definition at line 38 of file dumpFill.py.
Referenced by HITSiStripRawToClustersRoI::random(), and SiStripRawToClustersRoI::random().
tuple dumpFill::runresults = lumiCalcAPI.runsummary(session.nominalSchema(),irunlsdict) |
Definition at line 76 of file dumpFill.py.
tuple dumpFill::runs = runsperfill.values() |
Definition at line 83 of file dumpFill.py.
tuple dumpFill::runsperfill = {} |
Definition at line 67 of file dumpFill.py.
dictionary dumpFill::runtimes = {} |
Definition at line 68 of file dumpFill.py.
tuple dumpFill::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 59 of file dumpFill.py.
tuple dumpFill::svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
Definition at line 58 of file dumpFill.py.
dumpFill::type = int, |
Definition at line 41 of file dumpFill.py.