Functions | |
def | lastcompleteFill |
def | listfilldir |
Variables | |
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'] |
dbname = options.connect | |
tuple | deliveredintl = float(lineList[5]) |
tuple | f = open('tmp.out','r') |
tuple | filloutdir = os.path.join(options.outputdir,str(fillnum)) |
list | fillstoprocess = [] |
string | finalcmmd = ' ' |
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) |
tuple | processedfills = listfilldir(options.outputdir) |
tuple | pydate = t.StrToDatetime(timestamp,'%m/%d/%y %H:%M:%S') |
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] |
tuple | unixts = int(time.mktime(pydate.timetuple())) |
def summaryLumi::lastcompleteFill | ( | infile | ) |
Definition at line 28 of file summaryLumi.py.
def summaryLumi::listfilldir | ( | indir | ) |
Definition at line 12 of file summaryLumi.py.
00013 : 00014 fillnamepat=r'^[0-9]{4}$' 00015 p=re.compile(fillnamepat) 00016 processedfills=[] 00017 dirList=os.listdir(indir) 00018 for fname in dirList: 00019 if p.match(fname) and os.path.isdir(os.path.join(indir,fname)):#found fill dir 00020 allfs=os.listdir(os.path.join(indir,fname)) 00021 for myfile in allfs: 00022 sumfilenamepat=r'^[0-9]{4}_bxsum_CMS.txt$' 00023 s=re.compile(sumfilenamepat) 00024 if s.match(myfile): 00025 #only if fill_summary_CMS.txt file exists 00026 processedfills.append(int(fname)) 00027 return processedfills
string summaryLumi::allfillname = 'allfills.txt' |
Definition at line 9 of file summaryLumi.py.
tuple summaryLumi::allfillsFromDB = lumiCalcAPI.fillInRange(schema,fillmin=MINFILL,fillmax=maxfillnum,amodetag=options.amodetag) |
Definition at line 70 of file summaryLumi.py.
summaryLumi::authdir = options.authpath |
Definition at line 62 of file summaryLumi.py.
list summaryLumi::bstatus = lineList[3] |
Definition at line 120 of file summaryLumi.py.
list summaryLumi::clineElements = ['lumiCalc2.py','lumibyls','-c',dbname,'-P',authdir,'-f',str(fillnum),'-o','tmp.out'] |
Definition at line 93 of file summaryLumi.py.
summaryLumi::dbname = options.connect |
Definition at line 61 of file summaryLumi.py.
tuple summaryLumi::deliveredintl = float(lineList[5]) |
Definition at line 126 of file summaryLumi.py.
tuple summaryLumi::f = open('tmp.out','r') |
Definition at line 105 of file summaryLumi.py.
tuple summaryLumi::filloutdir = os.path.join(options.outputdir,str(fillnum)) |
Definition at line 130 of file summaryLumi.py.
list summaryLumi::fillstoprocess = [] |
Definition at line 58 of file summaryLumi.py.
string summaryLumi::finalcmmd = ' ' |
Definition at line 99 of file summaryLumi.py.
tuple summaryLumi::lastcompletedFill = lastcompleteFill(os.path.join(options.inputdir,'runtofill_dqm.txt')) |
Definition at line 73 of file summaryLumi.py.
int summaryLumi::lcount = 0 |
Definition at line 106 of file summaryLumi.py.
tuple summaryLumi::line = line.strip() |
Definition at line 114 of file summaryLumi.py.
tuple summaryLumi::lineList = line.split(',') |
Definition at line 115 of file summaryLumi.py.
tuple summaryLumi::lines = f.readlines() |
Definition at line 107 of file summaryLumi.py.
tuple summaryLumi::lslength = lumip.lslengthsec() |
Definition at line 90 of file summaryLumi.py.
Definition at line 89 of file summaryLumi.py.
int summaryLumi::MAXFILL = 9999 |
Definition at line 8 of file summaryLumi.py.
summaryLumi::maxfillnum = options.maxfill |
Definition at line 59 of file summaryLumi.py.
tuple summaryLumi::MINFILL = 1800 |
Definition at line 7 of file summaryLumi.py.
tuple summaryLumi::ofile = open(summaryfilename,'w') |
Definition at line 138 of file summaryLumi.py.
Referenced by CalibrationHistosUsingDb::create(), ExclusionBandPlot::dumpToFile(), LEPBandPlot::dumpToFile(), ImpactParameterCalibration::endJob(), SumHistoCalibration::endJob(), and FileBlob::write().
tuple summaryLumi::options = parser.parse_args() |
Definition at line 55 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 41 of file summaryLumi.py.
tuple summaryLumi::processedfills = listfilldir(options.outputdir) |
Definition at line 72 of file summaryLumi.py.
tuple summaryLumi::pydate = t.StrToDatetime(timestamp,'%m/%d/%y %H:%M:%S') |
Definition at line 122 of file summaryLumi.py.
list summaryLumi::rundata = stablefillmap[r] |
Definition at line 143 of file summaryLumi.py.
tuple summaryLumi::runnum = int(lineList[0].split(':')[0]) |
Definition at line 116 of file summaryLumi.py.
Referenced by PixelSLinkDataInputSource::PixelSLinkDataInputSource(), lumi::TRGDummy2DB::retrieveData(), lumi::LumiDummy2DB::retrieveData(), and lumi::HLTDummy2DB::retrieveData().
string summaryLumi::runtofilldqmfile = 'runtofill_dqm.txt' |
Definition at line 10 of file summaryLumi.py.
tuple summaryLumi::schema = session.nominalSchema() |
Definition at line 69 of file summaryLumi.py.
tuple summaryLumi::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 67 of file summaryLumi.py.
dictionary summaryLumi::stablefillmap = {} |
Definition at line 108 of file summaryLumi.py.
tuple summaryLumi::summaryfilename = os.path.join(options.outputdir,str(fillnum),str(fillnum)+summaryfilenameTMP) |
Definition at line 136 of file summaryLumi.py.
string summaryLumi::summaryfilenameTMP = '_summary_CMS.txt' |
Definition at line 60 of file summaryLumi.py.
tuple summaryLumi::svc = sessionManager.sessionManager(options.connect,authpath=options.authpath,debugON=options.debug) |
Definition at line 66 of file summaryLumi.py.
tuple summaryLumi::t = lumiTime.lumiTime() |
Definition at line 121 of file summaryLumi.py.
list summaryLumi::timestamp = lineList[2] |
Definition at line 119 of file summaryLumi.py.
tuple summaryLumi::unixts = int(time.mktime(pydate.timetuple())) |
Definition at line 125 of file summaryLumi.py.