Functions | |
def | lastcompleteFill |
def | listfilldir |
Variables | |
string | action = 'store' |
string | allfillname = 'allfills.txt' |
tuple | allfillsFromDB = lumiCalcAPI.fillInRange(schema,fillmin=MINFILL,fillmax=maxfillnum,amodetag=options.amodetag) |
authdir = options.authpath | |
list | bstatus = lineList[3] |
list | clineElements = ['lumiCalc2.py','lumibyls','-c',dbname,'-P',authdir,'-f',str(fillnum),'-o','tmp.out','--without-checkforupdate','--nowarning'] |
dbname = options.connect | |
string | default = 'oracle://cms_orcon_adg/cms_lumi_prod' |
tuple | deliveredintl = float(lineList[5]) |
string | dest = 'connect' |
tuple | f = open('tmp.out','r') |
tuple | filloutdir = os.path.join(options.outputdir,str(fillnum)) |
list | fillstoprocess = [] |
string | finalcmmd = ' ' |
string | help = 'connect string to lumiDB,optional' |
tuple | lastcompletedFill = lastcompleteFill(os.path.join(options.inputdir,'runtofill_dqm.txt')) |
int | lcount = 0 |
tuple | line = line.strip() |
tuple | lineList = line.split(',') |
tuple | lines = f.readlines() |
tuple | lslength = lumip.lslengthsec() |
tuple | lumip = lumiParameters.ParametersObject() |
int | MAXFILL = 9999 |
maxfillnum = options.maxfill | |
int | MINFILL = 1800 |
tuple | ofile = open(summaryfilename,'w') |
tuple | options = parser.parse_args() |
tuple | parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
## Main ProgramMore... | |
tuple | processedfills = listfilldir(options.outputdir) |
tuple | pydate = t.StrToDatetime(timestamp,'%m/%d/%y %H:%M:%S') |
required = False, | |
list | rundata = stablefillmap[r] |
tuple | runnum = int(lineList[0].split(':')[0]) |
string | runtofilldqmfile = 'runtofill_dqm.txt' |
tuple | schema = session.nominalSchema() |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
dictionary | stablefillmap = {} |
tuple | summaryfilename = os.path.join(options.outputdir,str(fillnum),str(fillnum)+summaryfilenameTMP) |
string | summaryfilenameTMP = '_summary_CMS.txt' |
tuple | svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
tuple | t = lumiTime.lumiTime() |
list | timestamp = lineList[2] |
type = float, | |
tuple | unixts = int(time.mktime(pydate.timetuple())) |
def summaryLumi.lastcompleteFill | ( | infile | ) |
Definition at line 34 of file summaryLumi.py.
def summaryLumi.listfilldir | ( | indir | ) |
Definition at line 18 of file summaryLumi.py.
string summaryLumi.action = 'store' |
Definition at line 59 of file summaryLumi.py.
string summaryLumi.allfillname = 'allfills.txt' |
Definition at line 15 of file summaryLumi.py.
tuple summaryLumi.allfillsFromDB = lumiCalcAPI.fillInRange(schema,fillmin=MINFILL,fillmax=maxfillnum,amodetag=options.amodetag) |
Definition at line 156 of file summaryLumi.py.
summaryLumi.authdir = options.authpath |
Definition at line 148 of file summaryLumi.py.
Definition at line 214 of file summaryLumi.py.
list summaryLumi.clineElements = ['lumiCalc2.py','lumibyls','-c',dbname,'-P',authdir,'-f',str(fillnum),'-o','tmp.out','--without-checkforupdate','--nowarning'] |
Definition at line 179 of file summaryLumi.py.
summaryLumi.dbname = options.connect |
Definition at line 147 of file summaryLumi.py.
float summaryLumi.default = 'oracle://cms_orcon_adg/cms_lumi_prod' |
Definition at line 62 of file summaryLumi.py.
tuple summaryLumi.deliveredintl = float(lineList[5]) |
Definition at line 221 of file summaryLumi.py.
string summaryLumi.dest = 'connect' |
Definition at line 58 of file summaryLumi.py.
tuple summaryLumi.f = open('tmp.out','r') |
Definition at line 199 of file summaryLumi.py.
tuple summaryLumi.filloutdir = os.path.join(options.outputdir,str(fillnum)) |
Definition at line 225 of file summaryLumi.py.
list summaryLumi.fillstoprocess = [] |
Definition at line 144 of file summaryLumi.py.
string summaryLumi.finalcmmd = ' ' |
Definition at line 193 of file summaryLumi.py.
string summaryLumi.help = 'connect string to lumiDB,optional' |
Definition at line 61 of file summaryLumi.py.
tuple summaryLumi.lastcompletedFill = lastcompleteFill(os.path.join(options.inputdir,'runtofill_dqm.txt')) |
Definition at line 159 of file summaryLumi.py.
int summaryLumi.lcount = 0 |
Definition at line 200 of file summaryLumi.py.
Referenced by edm::RootFile.fillIndexIntoFile().
tuple summaryLumi.line = line.strip() |
Definition at line 208 of file summaryLumi.py.
tuple summaryLumi.lineList = line.split(',') |
Definition at line 209 of file summaryLumi.py.
tuple summaryLumi.lines = f.readlines() |
Definition at line 201 of file summaryLumi.py.
tuple summaryLumi.lslength = lumip.lslengthsec() |
Definition at line 176 of file summaryLumi.py.
tuple summaryLumi.lumip = lumiParameters.ParametersObject() |
Definition at line 175 of file summaryLumi.py.
int summaryLumi.MAXFILL = 9999 |
Definition at line 14 of file summaryLumi.py.
summaryLumi.maxfillnum = options.maxfill |
Definition at line 145 of file summaryLumi.py.
tuple summaryLumi.MINFILL = 1800 |
Definition at line 13 of file summaryLumi.py.
tuple summaryLumi.ofile = open(summaryfilename,'w') |
Definition at line 233 of file summaryLumi.py.
tuple summaryLumi.options = parser.parse_args() |
Definition at line 141 of file summaryLumi.py.
tuple summaryLumi.parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Dump Fill",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
Definition at line 55 of file summaryLumi.py.
tuple summaryLumi.processedfills = listfilldir(options.outputdir) |
Definition at line 158 of file summaryLumi.py.
Definition at line 216 of file summaryLumi.py.
summaryLumi.required = False, |
Definition at line 60 of file summaryLumi.py.
list summaryLumi.rundata = stablefillmap[r] |
Definition at line 238 of file summaryLumi.py.
Definition at line 210 of file summaryLumi.py.
Referenced by PixelSLinkDataInputSource.PixelSLinkDataInputSource(), lumi::HLTDummy2DB.retrieveData(), lumi::TRGDummy2DB.retrieveData(), and lumi::LumiDummy2DB.retrieveData().
string summaryLumi.runtofilldqmfile = 'runtofill_dqm.txt' |
Definition at line 16 of file summaryLumi.py.
tuple summaryLumi.schema = session.nominalSchema() |
Definition at line 155 of file summaryLumi.py.
tuple summaryLumi.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 153 of file summaryLumi.py.
dictionary summaryLumi.stablefillmap = {} |
Definition at line 202 of file summaryLumi.py.
tuple summaryLumi.summaryfilename = os.path.join(options.outputdir,str(fillnum),str(fillnum)+summaryfilenameTMP) |
Definition at line 231 of file summaryLumi.py.
string summaryLumi.summaryfilenameTMP = '_summary_CMS.txt' |
Definition at line 146 of file summaryLumi.py.
tuple summaryLumi.svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
Definition at line 152 of file summaryLumi.py.
tuple summaryLumi.t = lumiTime.lumiTime() |
Definition at line 215 of file summaryLumi.py.
Definition at line 213 of file summaryLumi.py.
string summaryLumi.type = float, |
Definition at line 118 of file summaryLumi.py.
tuple summaryLumi.unixts = int(time.mktime(pydate.timetuple())) |
Definition at line 220 of file summaryLumi.py.