Classes | |
class | constants |
Functions | |
def | addTimeForRun (dbsession, c, runtimedict) |
def | getTimeForRun (dbsession, c, runnums) |
def | GTdeadtimeBeamActiveForRun (dbsession, c, runnum) |
def | main () |
def | missingTimeRuns (dbsession, c) |
def | patchDeadtimeForRun (dbsession, c, runnum, deadtimeDict) |
def | recalibrateLumiForRun (dbsession, c, delta, runnums) |
def | WBMdeadtimeBeamActiveForRun (dbsession, c, runnum) |
Variables | |
VERSION | |
def lumiPatch.addTimeForRun | ( | dbsession, | |
c, | |||
runtimedict | |||
) |
Input runtimedict{runnumber:(startTimeT,stopTimeT)} update CMSRUNSUMMARY set STARTTIME=:starttime,STOPTIME=:stoptime where RUNNUM=:runnum #update CMSRUNSUMMARY set STOPTIME=:stoptime where RUNNUM=:runnum
Definition at line 123 of file lumiPatch.py.
References createfilelist.int, edm.print(), and str.
Referenced by main().
def lumiPatch.getTimeForRun | ( | dbsession, | |
c, | |||
runnums | |||
) |
get start stop time of run from runinfo database select time from cms_runinfo.runsession_parameter where runnumber=:runnum and name='CMS.LVL0:START_TIME_T'; select time from cms_runinfo.runsession_parameter where runnumber=:runnum and name='CMS.LVL0:STOP_TIME_T';
Definition at line 61 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, edm.print(), and str.
Referenced by main().
def lumiPatch.GTdeadtimeBeamActiveForRun | ( | dbsession, | |
c, | |||
runnum | |||
) |
select lsnr,counts from cms_gt_mon.gt_mon_trig_dead_view where runnr=:runnumber and deadcounter='DeadtimeBeamActive' order by lsnr; return result{lumisection:deadtimebeamactive}
Definition at line 192 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, edm.print(), and str.
Referenced by main().
def lumiPatch.main | ( | ) |
Definition at line 317 of file lumiPatch.py.
References addTimeForRun(), getTimeForRun(), GTdeadtimeBeamActiveForRun(), createfilelist.int, SiStripPI.max, missingTimeRuns(), patchDeadtimeForRun(), edm.print(), recalibrateLumiForRun(), and WBMdeadtimeBeamActiveForRun().
def lumiPatch.missingTimeRuns | ( | dbsession, | |
c | |||
) |
return all the runs with starttime or stoptime column NULL in lumi db select runnum from CMSRUNSUMMARY where starttime is NULL or stoptime is NULL
Definition at line 30 of file lumiPatch.py.
References data, GetRecoTauVFromDQM_MC_cff.next, edm.print(), and str.
Referenced by main().
def lumiPatch.patchDeadtimeForRun | ( | dbsession, | |
c, | |||
runnum, | |||
deadtimeDict | |||
) |
input: deadtimeDict{ls:deadtimebeamactive} loop over input update TRG set DEADTIME=:deadtimebeamactive where RUNNUM=:runnum and CMSLSNUM=:lsnum output: number of rows changed
Definition at line 283 of file lumiPatch.py.
References edm.print(), and str.
Referenced by main().
def lumiPatch.recalibrateLumiForRun | ( | dbsession, | |
c, | |||
delta, | |||
runnums | |||
) |
update LUMISUMMARY set INSTLUMI=:delta*INSTLUMI where RUNNUM in (1,3,57,90)
Definition at line 162 of file lumiPatch.py.
References objects.autophobj.float, join(), edm.print(), and str.
Referenced by main().
def lumiPatch.WBMdeadtimeBeamActiveForRun | ( | dbsession, | |
c, | |||
runnum | |||
) |
select LUMISEGMENTNR,DEADTIMEBEAMACTIVE from cms_wbm.LEVEL1_TRIGGER_CONDITIONS where RUNNUMBER=:runnum order by LUMISEGMENTNR; return result{lumisection:deadtimebeamactive}
Definition at line 239 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, edm.print(), and str.
Referenced by main().
lumiPatch.VERSION |
Definition at line 4 of file lumiPatch.py.