test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
summaryLumi.py File Reference

Go to the source code of this file.

Namespaces

 summaryLumi
 

Functions

def summaryLumi.lastcompleteFill
 
def summaryLumi.listfilldir
 

Variables

string summaryLumi.action = 'store'
 
string summaryLumi.allfillname = 'allfills.txt'
 
tuple summaryLumi.allfillsFromDB = lumiCalcAPI.fillInRange(schema,fillmin=MINFILL,fillmax=maxfillnum,amodetag=options.amodetag)
 
 summaryLumi.authdir = options.authpath
 
list summaryLumi.bstatus = lineList[3]
 
list summaryLumi.clineElements = ['lumiCalc2.py','lumibyls','-c',dbname,'-P',authdir,'-f',str(fillnum),'-o','tmp.out','--without-checkforupdate','--nowarning']
 
 summaryLumi.dbname = options.connect
 
string summaryLumi.default = 'oracle://cms_orcon_adg/cms_lumi_prod'
 
tuple summaryLumi.deliveredintl = float(lineList[5])
 
string summaryLumi.dest = 'connect'
 
tuple summaryLumi.f = open('tmp.out','r')
 
tuple summaryLumi.filloutdir = os.path.join(options.outputdir,str(fillnum))
 
list summaryLumi.fillstoprocess = []
 
string summaryLumi.finalcmmd = ' '
 
string summaryLumi.help = 'connect string to lumiDB,optional'
 
tuple summaryLumi.lastcompletedFill = lastcompleteFill(os.path.join(options.inputdir,'runtofill_dqm.txt'))
 
int summaryLumi.lcount = 0
 
tuple summaryLumi.line = line.strip()
 
tuple summaryLumi.lineList = line.split(',')
 
tuple summaryLumi.lines = f.readlines()
 
tuple summaryLumi.lslength = lumip.lslengthsec()
 
tuple summaryLumi.lumip = lumiParameters.ParametersObject()
 
int summaryLumi.MAXFILL = 9999
 
 summaryLumi.maxfillnum = options.maxfill
 
int summaryLumi.MINFILL = 1800
 
tuple summaryLumi.ofile = open(summaryfilename,'w')
 
tuple summaryLumi.options = parser.parse_args()
 
tuple summaryLumi.parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 

## Main Program

More...
 
tuple summaryLumi.processedfills = listfilldir(options.outputdir)
 
tuple summaryLumi.pydate = t.StrToDatetime(timestamp,'%m/%d/%y %H:%M:%S')
 
 summaryLumi.required = False,
 
list summaryLumi.rundata = stablefillmap[r]
 
tuple summaryLumi.runnum = int(lineList[0].split(':')[0])
 
string summaryLumi.runtofilldqmfile = 'runtofill_dqm.txt'
 
tuple summaryLumi.schema = session.nominalSchema()
 
tuple summaryLumi.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
 
dictionary summaryLumi.stablefillmap = {}
 
tuple summaryLumi.summaryfilename = os.path.join(options.outputdir,str(fillnum),str(fillnum)+summaryfilenameTMP)
 
string summaryLumi.summaryfilenameTMP = '_summary_CMS.txt'
 
tuple summaryLumi.svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug)
 
tuple summaryLumi.t = lumiTime.lumiTime()
 
list summaryLumi.timestamp = lineList[2]
 
 summaryLumi.type = float,
 
tuple summaryLumi.unixts = int(time.mktime(pydate.timetuple()))