Classes | |
class | constants |
Functions | |
def | addTimeForRun |
def | getTimeForRun |
def | GTdeadtimeBeamActiveForRun |
def | main |
def | missingTimeRuns |
def | patchDeadtimeForRun |
def | recalibrateLumiForRun |
def | WBMdeadtimeBeamActiveForRun |
Variables | |
string | VERSION = '1.00' |
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 121 of file lumiPatch.py.
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 59 of file lumiPatch.py.
References AlCaHLTBitMon_QueryRunRegistry.data, and GetRecoTauVFromDQM_MC_cff.next.
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 191 of file lumiPatch.py.
References AlCaHLTBitMon_QueryRunRegistry.data, and GetRecoTauVFromDQM_MC_cff.next.
Referenced by main().
def lumiPatch.main | ( | ) |
Definition at line 316 of file lumiPatch.py.
References addTimeForRun(), getTimeForRun(), GTdeadtimeBeamActiveForRun(), bookConverter.max, missingTimeRuns(), patchDeadtimeForRun(), 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 28 of file lumiPatch.py.
References AlCaHLTBitMon_QueryRunRegistry.data, and GetRecoTauVFromDQM_MC_cff.next.
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 282 of file lumiPatch.py.
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 161 of file lumiPatch.py.
References join().
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 238 of file lumiPatch.py.
References AlCaHLTBitMon_QueryRunRegistry.data, and GetRecoTauVFromDQM_MC_cff.next.
Referenced by main().
string lumiPatch.VERSION = '1.00' |
Definition at line 2 of file lumiPatch.py.