Functions | |
def | parseInputFiles |
Variables | |
string | action = 'store_true' |
list | allowedActions = ['overview', 'recorded', 'lumibyls'] |
tuple | c = checkforupdate.checkforupdate('pixeltagstatus.txt') |
list | cmsswWorkingBase = os.environ['CMSSW_BASE'] |
tuple | dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=None,nominalEnergy=None,energyFlut=None,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist,lumitype='PIXEL') |
tuple | datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname) |
datatagname = options.datatag | |
check datatag ############################################################# | |
string | default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
arg to select exact hltpath or pattern | |
string | dest = 'withoutNorm' |
switches | |
filerunlist = None | |
tuple | GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict,dataidmap,lumitype='PIXEL') |
ls level # | |
string | help = 'command actions' |
hltname = options.hltpath | |
hltpat = None | |
list | iresults = [] |
dictionary | irunlsdict = {} |
check run/ls list | |
tuple | lute = lumiTime.lumiTime() |
int | normid = 0 |
tuple | normmap = normDML.normIdByType(session.nominalSchema(),lumitype='PIXEL',defaultonly=True) |
string | normname = 'NONE' |
check normtag and get norm values if required | |
dictionary | normvalueDict = {} |
noWarning = options.nowarning | |
tuple | options = parser.parse_args() |
tuple | parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Lumi Calculation Based on Pixel",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ## | |
reqfillmax = None | |
reqfillmin = None | |
reqHlt = False | |
reqrunmax = None | |
reqrunmin = None | |
reqtimemax = None | |
tuple | reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S') |
reqtimemin = None | |
tuple | reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S') |
reqTrg = False | |
required = False, | |
arg to select exact run and ls | |
tuple | result = lumiCalcAPI.lumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=None,timeFilter=timeFilter,normmap=normvalueDict,lumitype='PIXEL') |
list | rruns = [] |
tuple | session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
tuple | svc |
pre-check option compatibility | |
list | thiscmmd = sys.argv[0] |
list | timeFilter = [None,None] |
type = int, | |
global scale factor | |
string | updateversion = 'NONE' |
tuple | updateversionList = c.checkforupdate(workingversion,isverbose=False) |
string | workingversion = 'UNKNOWN' |
check working environment |
def pixelLumiCalc::parseInputFiles | ( | inputfilename | ) |
output ({run:[cmsls,cmsls,...]},[[resultlines]])
Definition at line 12 of file pixelLumiCalc.py.
00013 : 00014 ''' 00015 output ({run:[cmsls,cmsls,...]},[[resultlines]]) 00016 ''' 00017 selectedrunlsInDB={} 00018 resultlines=[] 00019 p=inputFilesetParser.inputFilesetParser(inputfilename) 00020 runlsbyfile=p.runsandls() 00021 selectedProcessedRuns=p.selectedRunsWithresult() 00022 selectedNonProcessedRuns=p.selectedRunsWithoutresult() 00023 resultlines=p.resultlines() 00024 for runinfile in selectedNonProcessedRuns: 00025 selectedrunlsInDB[runinfile]=runlsbyfile[runinfile] 00026 return (selectedrunlsInDB,resultlines)
string pixelLumiCalc::action = 'store_true' |
Definition at line 132 of file pixelLumiCalc.py.
list pixelLumiCalc::allowedActions = ['overview', 'recorded', 'lumibyls'] |
Definition at line 37 of file pixelLumiCalc.py.
tuple pixelLumiCalc::c = checkforupdate.checkforupdate('pixeltagstatus.txt') |
Definition at line 224 of file pixelLumiCalc.py.
list pixelLumiCalc::cmsswWorkingBase = os.environ['CMSSW_BASE'] |
Definition at line 220 of file pixelLumiCalc.py.
tuple pixelLumiCalc::dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=None,nominalEnergy=None,energyFlut=None,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist,lumitype='PIXEL') |
Definition at line 266 of file pixelLumiCalc.py.
tuple pixelLumiCalc::datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname) |
Definition at line 264 of file pixelLumiCalc.py.
pixelLumiCalc::datatagname = options.datatag |
check datatag #############################################################
Definition at line 260 of file pixelLumiCalc.py.
float pixelLumiCalc::default = 'frontier://LumiCalc/CMS_LUMI_PROD' |
arg to select exact hltpath or pattern
command configuration
run filters
Definition at line 49 of file pixelLumiCalc.py.
string pixelLumiCalc::dest = 'withoutNorm' |
switches
Definition at line 131 of file pixelLumiCalc.py.
tuple pixelLumiCalc::filerunlist = None |
Definition at line 253 of file pixelLumiCalc.py.
tuple pixelLumiCalc::GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict,dataidmap,lumitype='PIXEL') |
ls level #
Definition at line 316 of file pixelLumiCalc.py.
string pixelLumiCalc::help = 'command actions' |
Definition at line 45 of file pixelLumiCalc.py.
pixelLumiCalc::hltname = options.hltpath |
Definition at line 325 of file pixelLumiCalc.py.
pixelLumiCalc::hltpat = None |
Definition at line 326 of file pixelLumiCalc.py.
list pixelLumiCalc::iresults = [] |
Definition at line 165 of file pixelLumiCalc.py.
tuple pixelLumiCalc::irunlsdict = {} |
check run/ls list
Definition at line 250 of file pixelLumiCalc.py.
tuple pixelLumiCalc::lute = lumiTime.lumiTime() |
Definition at line 191 of file pixelLumiCalc.py.
tuple pixelLumiCalc::normid = 0 |
Definition at line 294 of file pixelLumiCalc.py.
tuple pixelLumiCalc::normmap = normDML.normIdByType(session.nominalSchema(),lumitype='PIXEL',defaultonly=True) |
Definition at line 299 of file pixelLumiCalc.py.
tuple pixelLumiCalc::normname = 'NONE' |
check normtag and get norm values if required
Definition at line 293 of file pixelLumiCalc.py.
tuple pixelLumiCalc::normvalueDict = {} |
Definition at line 295 of file pixelLumiCalc.py.
pixelLumiCalc::noWarning = options.nowarning |
Definition at line 164 of file pixelLumiCalc.py.
tuple pixelLumiCalc::options = parser.parse_args() |
Definition at line 151 of file pixelLumiCalc.py.
tuple pixelLumiCalc::parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Lumi Calculation Based on Pixel",formatter_class=argparse.ArgumentDefaultsHelpFormatter) |
######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
Definition at line 36 of file pixelLumiCalc.py.
pixelLumiCalc::reqfillmax = None |
Definition at line 161 of file pixelLumiCalc.py.
pixelLumiCalc::reqfillmin = None |
Definition at line 158 of file pixelLumiCalc.py.
pixelLumiCalc::reqHlt = False |
Definition at line 167 of file pixelLumiCalc.py.
pixelLumiCalc::reqrunmax = None |
Definition at line 160 of file pixelLumiCalc.py.
pixelLumiCalc::reqrunmin = None |
Definition at line 157 of file pixelLumiCalc.py.
pixelLumiCalc::reqtimemax = None |
Definition at line 162 of file pixelLumiCalc.py.
tuple pixelLumiCalc::reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S') |
Definition at line 206 of file pixelLumiCalc.py.
pixelLumiCalc::reqtimemin = None |
Definition at line 159 of file pixelLumiCalc.py.
tuple pixelLumiCalc::reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S') |
Definition at line 192 of file pixelLumiCalc.py.
pixelLumiCalc::reqTrg = False |
Definition at line 166 of file pixelLumiCalc.py.
pixelLumiCalc::required = False, |
tuple pixelLumiCalc::result = lumiCalcAPI.lumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=None,timeFilter=timeFilter,normmap=normvalueDict,lumitype='PIXEL') |
Definition at line 318 of file pixelLumiCalc.py.
list pixelLumiCalc::rruns = [] |
Definition at line 251 of file pixelLumiCalc.py.
tuple pixelLumiCalc::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 246 of file pixelLumiCalc.py.
tuple pixelLumiCalc::svc |
00001 sessionManager.sessionManager(options.connect, 00002 authpath=options.authpath, 00003 siteconfpath=options.siteconfpath, 00004 debugON=options.debug)
pre-check option compatibility
Definition at line 241 of file pixelLumiCalc.py.
list pixelLumiCalc::thiscmmd = sys.argv[0] |
Definition at line 217 of file pixelLumiCalc.py.
list pixelLumiCalc::timeFilter = [None,None] |
Definition at line 163 of file pixelLumiCalc.py.
tuple pixelLumiCalc::type = int, |
global scale factor
Definition at line 54 of file pixelLumiCalc.py.
list pixelLumiCalc::updateversion = 'NONE' |
Definition at line 216 of file pixelLumiCalc.py.
tuple pixelLumiCalc::updateversionList = c.checkforupdate(workingversion,isverbose=False) |
Definition at line 227 of file pixelLumiCalc.py.
tuple pixelLumiCalc::workingversion = 'UNKNOWN' |
check working environment
Definition at line 215 of file pixelLumiCalc.py.