Functions | |
def | hltconf (session, hltkey) |
def | hltFromOldLumi (session, runnumber) |
def | hltFromRuninfoV2 (session, runnumber) |
def | hltFromRuninfoV3 (session, runnumber) |
def | runsummary (session, schemaname, runnumber, complementalOnly=False) |
def | trgFromNewGT (session, runnumber) |
def | trgFromOldGT (session, runnumber) |
def | trgFromOldLumi (session, runnumber) |
def | trgFromWBM (session, runnumber) |
def | uncalibratedlumiFromOldLumi (session, runnumber) |
def | uncalibrateLumi (runnumber, instlumi, instlumierror) |
Variables | |
authpath | |
cpp2sqltype | |
debugON | |
isReadOnly | |
session | |
svc | |
True | |
def queryDataSource.hltconf | ( | session, | |
hltkey | |||
) |
select paths.pathid,paths.name,stringparamvalues.value from stringparamvalues,paths,parameters,superidparameterassoc,modules,moduletemplates,pathmoduleassoc,configurationpathassoc,configurations where parameters.paramid=stringparamvalues.paramid and superidparameterassoc.paramid=parameters.paramid and modules.superid=superidparameterassoc.superid and moduletemplates.superid=modules.templateid and pathmoduleassoc.moduleid=modules.superid and paths.pathid=pathmoduleassoc.pathid and configurationpathassoc.pathid=paths.pathid and configurations.configid=configurationpathassoc.configid and moduletemplates.name='HLTLevel1GTSeed' and parameters.name='L1SeedsLogicalExpression' and configurations.configdescriptor=:hlt_description; select paths.pathid,paths.name,stringparamvalues.value from stringparamvalues,paths,parameters,superidparameterassoc,modules,moduletemplates,pathmoduleassoc,configurationpathassoc,configurations where parameters.paramid=stringparamvalues.paramid and superidparameterassoc.paramid=parameters.paramid and modules.superid=superidparameterassoc.superid and moduletemplates.superid=modules.templateid and pathmoduleassoc.moduleid=modules.superid and paths.pathid=pathmoduleassoc.pathid and configurationpathassoc.pathid=paths.pathid and configurations.configid=configurationpathassoc.configid and moduletemplates.name='HLTLevel1GTSeed' and parameters.name='L1SeedsLogicalExpression' and configurations.configid=:hlt_numkey; ##select paths.pathid from cms_hlt.paths paths,cms_hlt.configurations config where config.configdescriptor=' ' and name=:pathname
Definition at line 776 of file queryDataSource.py.
def queryDataSource.hltFromOldLumi | ( | session, | |
runnumber | |||
) |
select count(distinct pathname) from hlt where runnum=:runnum select cmslsnum,pathname,inputcount,acceptcount,prescale from hlt where runnum=:runnum order by cmslsnum,pathname [pathnames,databuffer] databuffer: {cmslsnum:[inputcountBlob,acceptcountBlob,prescaleBlob]}
Definition at line 124 of file queryDataSource.py.
References data, nameDealer.hltTableName(), createfilelist.int, join(), GetRecoTauVFromDQM_MC_cff.next, and CommonUtil.packArraytoBlob().
def queryDataSource.hltFromRuninfoV2 | ( | session, | |
runnumber | |||
) |
input: output: [pathnameclob,{cmslsnum:[inputcountBlob,acceptcountBlob,prescaleBlob]}] select count(distinct PATHNAME) as npath from HLT_SUPERVISOR_LUMISECTIONS_V2 where runnr=:runnumber and lsnumber=1; select l.pathname,l.lsnumber,l.l1pass,l.paccept,m.psvalue from hlt_supervisor_lumisections_v2 l,hlt_supervisor_scalar_map m where l.runnr=m.runnr and l.psindex=m.psindex and l.pathname=m.pathname and l.runnr=:runnumber order by l.lsnumber
Definition at line 674 of file queryDataSource.py.
References data, createfilelist.int, join(), GetRecoTauVFromDQM_MC_cff.next, and CommonUtil.packArraytoBlob().
def queryDataSource.hltFromRuninfoV3 | ( | session, | |
runnumber | |||
) |
input: output: [datasource,pathnameclob,{cmslsnum:[inputcountBlob,acceptcountBlob,prescaleBlob]}] select distinct(pathid) from HLT_SUPERVISOR_TRIGGERPATHS where runnnumber=:runnumber; select count(*) from HLT_SUPERVISOR_LUMISECTIONS_V3 where runnumber=:runnumber;//total ls select tr.runnumber,tr.lsnumber,tr.pathid,tr.l1pass,tr.paccept,ls.psindex,sm.psvalue from hlt_supervisor_triggerpaths tr,hlt_supervisor_lumisections_v3 ls,hlt_supervisor_scalar_map_v2 sm where tr.runnumber=ls.runnumber and tr.lsnumber=ls.lsnumber and sm.runnumber=tr.runnumber and sm.pathid=tr.pathid and sm.psindex=ls.psindex and tr.runnumber=:runnumber order by tr.lsnumber; loop : select pathname from cms_hlt.paths where pathid=:pathid
Definition at line 764 of file queryDataSource.py.
x select string_value from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.TRG:TSC_KEY'; x select distinct(string_value) from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.SCAL:AMODEtag' x select distinct(string_value),session_id from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.SCAL:EGEV' order by SESSION_ID select string_value from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.LVL0:SEQ_NAME' select string_value from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.LVL0:HLT_KEY_DESCRIPTION'; select string_value from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.SCAL:FILLN' and rownum<=1; select time from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.LVL0:START_TIME_T'; select time from cms_runinfo.runsession_parameter where runnumber=:runnumber and name='CMS.LVL0:STOP_TIME_T'; input: output:[l1key,amodetag,egev,sequence,hltkey,fillnum,starttime,stoptime] if complementalOnly: [l1key,amodetag,egev]
Definition at line 821 of file queryDataSource.py.
References data, createfilelist.int, and GetRecoTauVFromDQM_MC_cff.next.
def queryDataSource.trgFromNewGT | ( | session, | |
runnumber | |||
) |
select counts,lsnr,algobit from cms_gt_mon.gt_mon_trig_algo_view where runnr=:runnumber order by lsnr,algobit select counts,lsnr,techbit from cms_gt_mon.gt_mon_trig_tech_view where runnr=:runnumber order by lsnr,techbit select counts,lsnr from cms_gt_mon.gt_mon_trig_dead_view where runnr=:runnumber and deadcounter=:countername order by lsnr select algo_index,alias from cms_gt.gt_run_algo_view where runnumber=:runnumber order by algo_index select techtrig_index,name from cms_gt.gt_run_tech_view where runnumber=:runnumber order by techtrig_index select prescale_factor_algo_000,prescale_factor_algo_001..._127 from cms_gt.gt_run_presc_algo_view where runnr=:runnumber and prescale_index=0; select prescale_factor_tt_000,prescale_factor_tt_001..._63 from cms_gt.gt_run_presc_tech_view where runnr=:runnumber and prescale_index=0;
Definition at line 303 of file queryDataSource.py.
def queryDataSource.trgFromOldGT | ( | session, | |
runnumber | |||
) |
input: runnumber output: [bitnameclob,{cmslsnum:[deadtime,bitzerocount,bitzeroprescale,trgcountBlob,trgprescaleBlob]}] 1. select counts,lsnr from cms_gt_mon.gt_mon_trig_dead_view where runnr=:runnumber and deadcounter=:countername order by lsnr 2. select counts,lsnr,algobit from cms_gt_mon.gt_mon_trig_algo_view where runnr=:runnumber order by lsnr,algobit 3. select counts,lsnr,techbit from cms_gt_mon.gt_mon_trig_tech_view where runnr=:runnumber order by lsnr,techbit 4. select algo_index,alias from cms_gt.gt_run_algo_view where runnumber=:runnumber order by algo_index ## not needed5. select techtrig_index,name from cms_gt.gt_run_tech_view where runnumber=:runnumber order by techtrig_index 5 select distinct(prescale_index) from cms_gt_mon.lumi_sections where run_number=:runnumber; 6. select prescale_factor_algo_000,algo.prescale_factor_algo_001..._127 from cms_gt.gt_run_presc_algo_view where prescale_index=:prescale_index and runnr=:runnumber; 7. select prescale_factor_tt_000,tech.prescale_factor_tt_001..._63 from cms_gt.gt_run_presc_tech_view where prescale_index=:prescale_index and runnr=:runnumber; 8. select lumi_section,prescale_index from cms_gt_mon.lumi_sections where run_number=:runnumber order by lumi_section
Definition at line 315 of file queryDataSource.py.
def queryDataSource.trgFromOldLumi | ( | session, | |
runnumber | |||
) |
select bitnum,bitname from trg where runnum=:runnumber and cmslsnum=1 order by bitnum select cmslsnum,deadtime,trgcount,prescale from trg where bitnum=:bitnum and runnum=:runnumber input: runnumber output: [bitnames,{cmslsnum,[deadtime,bitzerocount,bitzerpoprescale,trgcountBlob,trgprescaleBlob]}]
Definition at line 209 of file queryDataSource.py.
References mps_setup.append, data, createfilelist.int, join(), GetRecoTauVFromDQM_MC_cff.next, CommonUtil.packArraytoBlob(), and nameDealer.trgTableName().
def queryDataSource.trgFromWBM | ( | session, | |
runnumber | |||
) |
Definition at line 298 of file queryDataSource.py.
def queryDataSource.uncalibratedlumiFromOldLumi | ( | session, | |
runnumber | |||
) |
retrieve old lumi value, divide by norm and restore to raw value select lumilsnum,cmslsnum,instlumi,instlumierror,instlumiquality,startorbit,numorbit,beamenergy,beamstatus,cmsbxindexblob,beamintensityblob_1,beamintensityblob_2 from lumisummary where runnum=:runnumber order by lumilsnum select s.lumilsnum,d.bxlumivalue,d.bxlumierror,d.bxlumiquality from lumidetail d,lumisummary s where d.lumisummary_id=s.lumisummary_id and s.runnum=:runnumber and d.algoname=:algoname order by s.lumilsnum output: {lumilsnum:[cmslsnum,uncalibratedinstlumi,uncalibratedinstlumierror,instlumiquality,beamstatus,beamenergy,numorbit,startorbit,cmsbxindexblob,beamintensityblob_1,beamintensityblob_2,bxlumivalue_occ1,bxlumierror_occ1,,bxlumiquality_occ1,bxlumivalue_occ2,bxlumierror_occ2,bxlumiquality_occ2,bxlumivalue_et,bxlumierror_et,bxlumiquality_et]}]} dict size ~ 200mb for 1000LS
Definition at line 19 of file queryDataSource.py.
References data, createfilelist.int, nameDealer.lumidetailTableName(), nameDealer.lumisummaryTableName(), GetRecoTauVFromDQM_MC_cff.next, and uncalibrateLumi().
def queryDataSource.uncalibrateLumi | ( | runnumber, | |
instlumi, | |||
instlumierror | |||
) |
input: runnumber,calibrated instlumi,calibrated instlumierror output: (uncalibrated instlumi, uncalbrated instlumierror)
Definition at line 4 of file queryDataSource.py.
References objects.autophobj.float.
Referenced by uncalibratedlumiFromOldLumi().
queryDataSource.authpath |
Definition at line 1023 of file queryDataSource.py.
queryDataSource.cpp2sqltype |
Definition at line 1024 of file queryDataSource.py.
queryDataSource.debugON |
Definition at line 1023 of file queryDataSource.py.
queryDataSource.isReadOnly |
Definition at line 1024 of file queryDataSource.py.
queryDataSource.session |
Definition at line 1024 of file queryDataSource.py.
queryDataSource.svc |
Definition at line 1023 of file queryDataSource.py.
queryDataSource.True |
Definition at line 1024 of file queryDataSource.py.