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 11 of file lumiReport.py.
References join(), and harvestTrackValidationPlots.str.
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 875 of file lumiReport.py.
References CommonUtil.flatten(), join(), harvestTrackValidationPlots.str, and CommonUtil.transposed().
input : {runnumber,[(hltpath,l1seedexpr,l1bitname),...]}
Definition at line 1060 of file lumiReport.py.
References dumptocsv(), join(), python.rootplot.root2matplotlib.replace(), harvestTrackValidationPlots.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 27 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 1100 of file lumiReport.py.
References dumptocsv(), join(), harvestTrackValidationPlots.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 538 of file lumiReport.py.
References mps_alisetup.append, dumptocsv(), objects.autophobj.float, createfilelist.int, CommonUtil.lumiUnitForPrint(), split, harvestTrackValidationPlots.str, and dataformats.wrap_onspace_strict().
input:{runnumber:[(cmslsnum,[(hltpath,hltprescale,l1pass,hltaccept),...]),(cmslsnum,[])})}
Definition at line 1007 of file lumiReport.py.
References dumptocsv(), join(), and harvestTrackValidationPlots.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 942 of file lumiReport.py.
References mps_alisetup.append, dumptocsv(), createfilelist.int, join(), and harvestTrackValidationPlots.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 392 of file lumiReport.py.
References mps_alisetup.append, dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, CommonUtil.lumiUnitForPrint(), split, and harvestTrackValidationPlots.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 76 of file lumiReport.py.
References objects.autophobj.float, and harvestTrackValidationPlots.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 59 of file lumiReport.py.
References harvestTrackValidationPlots.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 260 of file lumiReport.py.
References dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), reco.if(), createfilelist.int, split, CommonUtil.splitlistToRangeString(), and harvestTrackValidationPlots.str.
def lumiReport.toScreenSingleTag | ( | taginfo | ) |
input: {run:(lumidataid,trgdataid,hltdataid,comment)}
Definition at line 135 of file lumiReport.py.
References join(), and harvestTrackValidationPlots.str.
def lumiReport.toScreenTags | ( | tagdata | ) |
Definition at line 120 of file lumiReport.py.
References harvestTrackValidationPlots.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 148 of file lumiReport.py.
References dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), reco.if(), createfilelist.int, split, and harvestTrackValidationPlots.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 692 of file lumiReport.py.
References mps_alisetup.append, dumptocsv(), objects.autophobj.float, CommonUtil.guessUnit(), createfilelist.int, join(), list(), split, CommonUtil.splitlistToRangeString(), harvestTrackValidationPlots.str, and dataformats.wrap_onspace_strict().