CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
pixelLumiCalc Namespace Reference

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,lumitype='PIXEL')
 
 datatagname = options.datatag
 check datatag

More...
 
string default = 'frontier://LumiCalc/CMS_LUMI_PROD'
 arg to select exact hltpath or pattern More...
 
string dest = 'withoutNorm'
 switches More...
 
 filerunlist = None
 
tuple GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict,dataidmap,lumitype='PIXEL')
 ls level # More...
 
string help = 'command actions'
 
 hltname = options.hltpath
 
 hltpat = None
 
list iresults = []
 
dictionary irunlsdict = {}
 check run/ls list More...
 
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 More...
 
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

More...
 
 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 More...
 
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 More...
 
list thiscmmd = sys.argv[0]
 
list timeFilter = [None,None]
 
 type = int,
 global scale factor More...
 
string updateversion = 'NONE'
 
tuple updateversionList = c.checkforupdate(workingversion,isverbose=False)
 
string workingversion = 'UNKNOWN'
 check working environment More...
 

Function Documentation

def pixelLumiCalc.parseInputFiles (   inputfilename)
output ({run:[cmsls,cmsls,...]},[[resultlines]])

Definition at line 12 of file pixelLumiCalc.py.

Variable Documentation

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 226 of file pixelLumiCalc.py.

list pixelLumiCalc.cmsswWorkingBase = os.environ['CMSSW_BASE']

Definition at line 222 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 268 of file pixelLumiCalc.py.

tuple pixelLumiCalc.datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname,lumitype='PIXEL')

Definition at line 266 of file pixelLumiCalc.py.

pixelLumiCalc.datatagname = options.datatag

check datatag

Definition at line 262 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 255 of file pixelLumiCalc.py.

tuple pixelLumiCalc.GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict,dataidmap,lumitype='PIXEL')

ls level #

Definition at line 318 of file pixelLumiCalc.py.

string pixelLumiCalc.help = 'command actions'

Definition at line 45 of file pixelLumiCalc.py.

pixelLumiCalc.hltname = options.hltpath

Definition at line 327 of file pixelLumiCalc.py.

pixelLumiCalc.hltpat = None

Definition at line 328 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 252 of file pixelLumiCalc.py.

tuple pixelLumiCalc.lute = lumiTime.lumiTime()

Definition at line 193 of file pixelLumiCalc.py.

tuple pixelLumiCalc.normid = 0

Definition at line 296 of file pixelLumiCalc.py.

tuple pixelLumiCalc.normmap = normDML.normIdByType(session.nominalSchema(),lumitype='PIXEL',defaultonly=True)

Definition at line 301 of file pixelLumiCalc.py.

tuple pixelLumiCalc.normname = 'NONE'

check normtag and get norm values if required

Definition at line 295 of file pixelLumiCalc.py.

tuple pixelLumiCalc.normvalueDict = {}

Definition at line 297 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 208 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 194 of file pixelLumiCalc.py.

pixelLumiCalc.reqTrg = False

Definition at line 166 of file pixelLumiCalc.py.

pixelLumiCalc.required = False,

arg to select exact run and ls

versions control

Definition at line 47 of file pixelLumiCalc.py.

tuple pixelLumiCalc.result = lumiCalcAPI.lumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=None,timeFilter=timeFilter,normmap=normvalueDict,lumitype='PIXEL')

Definition at line 320 of file pixelLumiCalc.py.

list pixelLumiCalc.rruns = []

Definition at line 253 of file pixelLumiCalc.py.

tuple pixelLumiCalc.session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])

Definition at line 248 of file pixelLumiCalc.py.

tuple pixelLumiCalc.svc
Initial value:
1 = sessionManager.sessionManager(options.connect,
2  authpath=options.authpath,
3  siteconfpath=options.siteconfpath,
4  debugON=options.debug)

pre-check option compatibility

Definition at line 243 of file pixelLumiCalc.py.

list pixelLumiCalc.thiscmmd = sys.argv[0]

Definition at line 219 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 218 of file pixelLumiCalc.py.

tuple pixelLumiCalc.updateversionList = c.checkforupdate(workingversion,isverbose=False)

Definition at line 229 of file pixelLumiCalc.py.

tuple pixelLumiCalc.workingversion = 'UNKNOWN'

check working environment

Definition at line 217 of file pixelLumiCalc.py.