Functions | |
def | dumptocsv (fieldnames, result, filename) |
def | toCSVLumiByLSXing (lumidata, scalefactor, filename, irunlsdict=None, noWarning=True) |
def | toScreenConfHlt (hltconfdata, iresults=[], toFile=None) |
def | toScreenHeader (commandname, datatagname, normtag, worktag, updatetag, lumitype, toFile=None) |
def | toScreenLSBeam (beamdata, iresults=[], dumpIntensity=False, toFile=None) |
def | toScreenLSEffective (lumidata, resultlines, scalefactor, irunlsdict=None, noWarning=True, toFile=None) |
def | toScreenLSHlt (hltdata, iresults=[], toFile=None) |
def | toScreenLSTrg (trgdata, iresults=[], irunlsdict=None, noWarning=True, toFile=None, withoutmask=False) |
def | toScreenLumiByLS (lumidata, resultlines, scalefactor, irunlsdict=None, noWarning=True, toFile=None) |
def | toScreenNormDetail (normname, norminfo, normvalues) |
def | toScreenNormSummary (allnorms) |
def | toScreenOverview (lumidata, resultlines, scalefactor, irunlsdict=None, noWarning=True, toFile=None) |
def | toScreenSingleTag (taginfo) |
def | toScreenTags (tagdata) |
def | toScreenTotDelivered (lumidata, resultlines, scalefactor, irunlsdict=None, noWarning=True, toFile=None) |
def | toScreenTotEffective (lumidata, resultlines, scalefactor, irunlsdict=None, noWarning=True, toFile=None) |
def lumiReport.dumptocsv | ( | fieldnames, | |
result, | |||
filename | |||
) |
utility method to dump result to csv file
Definition at line 14 of file lumiReport.py.
Referenced by toScreenConfHlt(), toScreenLSBeam(), toScreenLSEffective(), toScreenLSHlt(), toScreenLSTrg(), toScreenLumiByLS(), toScreenOverview(), toScreenTotDelivered(), and toScreenTotEffective().
def lumiReport.toCSVLumiByLSXing | ( | lumidata, | |
scalefactor, | |||
filename, | |||
irunlsdict = None , |
|||
noWarning = True |
|||
) |
input:{run:[lumilsnum(0),cmslsnum(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),recordedlumi(6),calibratedlumierror(7),bxdata(8),beamdata(9),fillnum(10)]} output: fieldnames=['Run:Fill','LS','UTCTime','Delivered(/ub)','Recorded(/ub)','BX']
Definition at line 878 of file lumiReport.py.
References CommonUtil.flatten(), join(), edm.print(), str, and CommonUtil.transposed().
input : {runnumber,[(hltpath,l1seedexpr,l1bitname),...]}
Definition at line 1063 of file lumiReport.py.
References dumptocsv(), join(), edm.print(), python.rootplot.root2matplotlib.replace(), str, and dataformats.wrap_onspace().
def lumiReport.toScreenHeader | ( | commandname, | |
datatagname, | |||
normtag, | |||
worktag, | |||
updatetag, | |||
lumitype, | |||
toFile = None |
|||
) |
input: commandname: commandname datataginfo: tagname normtag: normtag worktag: working version updatetag: updated version if amy
Definition at line 30 of file lumiReport.py.
References join().
Referenced by toScreenLSBeam().
input: {run:[(lumilsnum(0),cmslsnum(1),beamstatus(2),beamenergy(3),ncollidingbunches(4),beaminfolist(4)),..]} beaminfolist:[(bxidx,b1,b2)]
Definition at line 1103 of file lumiReport.py.
References dumptocsv(), join(), edm.print(), str, toScreenHeader(), and dataformats.wrap_onspace().
def lumiReport.toScreenLSEffective | ( | lumidata, | |
resultlines, | |||
scalefactor, | |||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None |
|||
) |
input: {run:[lumilsnum(0),cmslsnum(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),recordedlumi(6),calibratedlumierror(7),{hltpath:[l1name,l1prescale,hltprescale,efflumi]}(8),bxdata(9),beamdata(10),fillnum(11)]}
Definition at line 541 of file lumiReport.py.
References mps_setup.append, dumptocsv(), objects.autophobj.float, createfilelist.int, CommonUtil.lumiUnitForPrint(), edm.print(), split, str, and dataformats.wrap_onspace_strict().
input:{runnumber:[(cmslsnum,[(hltpath,hltprescale,l1pass,hltaccept),...]),(cmslsnum,[])})}
Definition at line 1010 of file lumiReport.py.
References dumptocsv(), join(), edm.print(), and str.
def lumiReport.toScreenLSTrg | ( | trgdata, | |
iresults = [] , |
|||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None , |
|||
withoutmask = False |
|||
) |
input:{run:[[cmslsnum,deadfrac,deadtimecount,bitzero_count,bitzero_prescale,[(name,count,presc,mask),]],..]
Definition at line 945 of file lumiReport.py.
References mps_setup.append, dumptocsv(), createfilelist.int, join(), edm.print(), and str.
def lumiReport.toScreenLumiByLS | ( | lumidata, | |
resultlines, | |||
scalefactor, | |||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None |
|||
) |
input: lumidata {run:[lumilsnum(0),cmslsnum(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),recordedlumi(6),calibratedlumierror(7),(bxidx,bxvalues,bxerrs)(8),(bxidx,b1intensities,b2intensities)(9),fillnum(10),pu(11)]} {run:None} None means no run in lumiDB, {run:[]} [] means no lumi for this run in lumiDB {run:[....deliveredlumi(5),recordedlumi(6)None]} means no trigger in lumiDB {run:cmslsnum(1)==0} means either not cmslsnum or is cms but not selected, therefore set recordedlumi=0,efflumi=0 resultlines [[resultrow1],[resultrow2],...,] existing result row
Definition at line 395 of file lumiReport.py.
References mps_setup.append, dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, CommonUtil.lumiUnitForPrint(), edm.print(), split, and str.
def lumiReport.toScreenNormDetail | ( | normname, | |
norminfo, | |||
normvalues | |||
) |
list norm detail input: normname norminfo=[data_id[0],lumitype(1)istypedefault[2],comment[3],creationtime[4]] normvalues={since:[corrector(0),{paramname:paramvalue}(1),amodetag(2),egev(3),comment(4)]}
Definition at line 79 of file lumiReport.py.
References objects.autophobj.float, edm.print(), and str.
def lumiReport.toScreenNormSummary | ( | allnorms | ) |
list all known norms summary input: {normname:[data_id(0),lumitype(1),istypedefault(2),comment(3),creationtime(4)]}
Definition at line 62 of file lumiReport.py.
References edm.print(), and str.
def lumiReport.toScreenOverview | ( | lumidata, | |
resultlines, | |||
scalefactor, | |||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None |
|||
) |
input: lumidata {run:[lumilsnum(0),cmslsnum(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),recordedlumi(6),calibratedlumierror(7),(bxidx,bxvalues,bxerrs)(8),(bxidx,b1intensities,b2intensities)(9),fillnum(10)]} resultlines [[resultrow1],[resultrow2],...,] existing result row
Definition at line 263 of file lumiReport.py.
References dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, edm.print(), split, CommonUtil.splitlistToRangeString(), and str.
def lumiReport.toScreenSingleTag | ( | taginfo | ) |
input: {run:(lumidataid,trgdataid,hltdataid,comment)}
Definition at line 138 of file lumiReport.py.
References join(), edm.print(), and str.
def lumiReport.toScreenTags | ( | tagdata | ) |
Definition at line 123 of file lumiReport.py.
References edm.print(), and str.
def lumiReport.toScreenTotDelivered | ( | lumidata, | |
resultlines, | |||
scalefactor, | |||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None |
|||
) |
inputs: lumidata {run:[lumilsnum(0),cmslsnum(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),calibratedlumierror(6),(bxidx,bxvalues,bxerrs)(7),(bxidx,b1intensities,b2intensities)(8),fillnum)(9)]} resultlines [[resultrow1],[resultrow2],...,] existing result row ('Run:Fill', 'N_LS','N_CMSLS','Delivered','UTCTime','E(GeV)') irunlsdict: run/ls selection list. irunlsdict=None means no filter
Definition at line 151 of file lumiReport.py.
References dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, edm.print(), split, and str.
def lumiReport.toScreenTotEffective | ( | lumidata, | |
resultlines, | |||
scalefactor, | |||
irunlsdict = None , |
|||
noWarning = True , |
|||
toFile = None |
|||
) |
input: {run:[lumilsnum(0),triggeredls(1),timestamp(2),beamstatus(3),beamenergy(4),deliveredlumi(5),recordedlumi(6),calibratedlumierror(7),{hltpath:[l1name,l1prescale,hltprescale,efflumi]}(8),bxdata(9),beamdata](10),fillnum(11)} screen Run,SelectedLS,Recorded,HLTPath,L1Bit,Effective
Definition at line 695 of file lumiReport.py.
References mps_setup.append, dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, join(), list(), edm.print(), split, CommonUtil.splitlistToRangeString(), str, and dataformats.wrap_onspace_strict().