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 121 of file lumiPatch.py.
References createfilelist.int, and harvestTrackValidationPlots.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 59 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, and harvestTrackValidationPlots.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 191 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, and harvestTrackValidationPlots.str.
Referenced by main().
def lumiPatch.main | ( | ) |
Definition at line 316 of file lumiPatch.py.
References addTimeForRun(), getTimeForRun(), GTdeadtimeBeamActiveForRun(), createfilelist.int, SiStripPI.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 data, GetRecoTauVFromDQM_MC_cff.next, and harvestTrackValidationPlots.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 282 of file lumiPatch.py.
References harvestTrackValidationPlots.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 161 of file lumiPatch.py.
References objects.autophobj.float, join(), and harvestTrackValidationPlots.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 238 of file lumiPatch.py.
References data, createfilelist.int, GetRecoTauVFromDQM_MC_cff.next, and harvestTrackValidationPlots.str.
Referenced by main().
lumiPatch.VERSION |
Definition at line 2 of file lumiPatch.py.