test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
dumpFill Namespace Reference

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,
 

Function Documentation

def dumpFill.tofiles (   allfills,
  runsperfill,
  runtimes,
  outdir 
)

Definition at line 16 of file dumpFill.py.

16 
17 def tofiles(allfills,runsperfill,runtimes,outdir):
18  f=open(os.path.join(outdir,allfillname),'w')
19  for fill in allfills:
20  print >>f,'%d'%(fill)
21  f.close()
22  for fill,runs in runsperfill.items():
23  filename='fill_'+str(fill)+'.txt'
24  if len(runs)!=0:
25  f=open(os.path.join(outdir,filename),'w')
26  for run in runs:
27  print >>f,'%d,%s'%(run,runtimes[run])
f.close()
def tofiles
Definition: dumpFill.py:16

Variable Documentation

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.

dumpFill.default = MINFILL,

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().

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.