CMS 3D CMS Logo

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

Functions

def parseInputFiles
 

Variables

string action = 'store_true'
 
list allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','lumibylsXing']
 
list amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]
 
list beamChoices = ['PROTPHYS','IONPHYS','PAPHYS']
 
list beamModeChoices = [ "stable"]
 
tuple c = checkforupdate.checkforupdate()
 
 choices = amodetagChoices,
 ls filter More...
 
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=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist)
 
tuple datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname)
 
 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='HF')
 ls level # More...
 
string help = 'command actions'
 basic arguments More...
 
 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='HF',defaultonly=True)
 
string normname = 'NONE'
 check normtag and get norm values if required More...
 
dictionary normvalueDict = {}
 
 noWarning = options.nowarning
 
tuple options = parser.parse_args()
 
 outfile = options.outputfile
 
tuple parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Lumi Calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 

## Main Program

More...
 
 pbeammode = None
 
 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.deliveredLumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=pbeammode,timeFilter=timeFilter,normmap=normvalueDict,lumitype='HF')
 
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...
 
list xingAlgoChoices = [ "OCC1","OCC2","ET"]
 

Function Documentation

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

Definition at line 14 of file lumiCalc2.py.

14 
15 def parseInputFiles(inputfilename):
16  '''
17  output ({run:[cmsls,cmsls,...]},[[resultlines]])
18  '''
19  selectedrunlsInDB={}
20  resultlines=[]
22  runlsbyfile=p.runsandls()
23  selectedProcessedRuns=p.selectedRunsWithresult()
24  selectedNonProcessedRuns=p.selectedRunsWithoutresult()
25  resultlines=p.resultlines()
26  for runinfile in selectedNonProcessedRuns:
27  selectedrunlsInDB[runinfile]=runlsbyfile[runinfile]
28  return (selectedrunlsInDB,resultlines)
def parseInputFiles
Definition: lumiCalc2.py:14

Variable Documentation

string lumiCalc2.action = 'store_true'

Definition at line 173 of file lumiCalc2.py.

list lumiCalc2.allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','lumibylsXing']

Definition at line 39 of file lumiCalc2.py.

list lumiCalc2.amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]

Definition at line 41 of file lumiCalc2.py.

list lumiCalc2.beamChoices = ['PROTPHYS','IONPHYS','PAPHYS']

Definition at line 12 of file lumiCalc2.py.

list lumiCalc2.beamModeChoices = [ "stable"]

Definition at line 40 of file lumiCalc2.py.

tuple lumiCalc2.c = checkforupdate.checkforupdate()

Definition at line 272 of file lumiCalc2.py.

lumiCalc2.choices = amodetagChoices,

ls filter

Definition at line 96 of file lumiCalc2.py.

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

Definition at line 268 of file lumiCalc2.py.

tuple lumiCalc2.dataidmap = lumiCalcAPI.runList(session.nominalSchema(),datatagid,runmin=reqrunmin,runmax=reqrunmax,fillmin=reqfillmin,fillmax=reqfillmax,startT=reqtimemin,stopT=reqtimemax,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt,preselectedruns=filerunlist)

Definition at line 326 of file lumiCalc2.py.

tuple lumiCalc2.datatagid = revisionDML.getDataTagId(session.nominalSchema(),datatagname)

Definition at line 324 of file lumiCalc2.py.

Referenced by lumi::RevisionDML.HFDataTagIdByName().

lumiCalc2.datatagname = options.datatag

check datatag

Definition at line 320 of file lumiCalc2.py.

float lumiCalc2.default = 'frontier://LumiCalc/CMS_LUMI_PROD'

arg to select exact hltpath or pattern

command configuration

run filters

Definition at line 55 of file lumiCalc2.py.

string lumiCalc2.dest = 'withoutNorm'

switches

Definition at line 172 of file lumiCalc2.py.

tuple lumiCalc2.filerunlist = None

Definition at line 304 of file lumiCalc2.py.

tuple lumiCalc2.GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict,dataidmap,lumitype='HF')

ls level #

Definition at line 380 of file lumiCalc2.py.

string lumiCalc2.help = 'command actions'

basic arguments

Definition at line 51 of file lumiCalc2.py.

lumiCalc2.hltname = options.hltpath

Definition at line 392 of file lumiCalc2.py.

Referenced by LumiCalculator.beginRun(), and LumiCalculator.endLuminosityBlock().

lumiCalc2.hltpat = None

Definition at line 393 of file lumiCalc2.py.

list lumiCalc2.iresults = []

Definition at line 210 of file lumiCalc2.py.

tuple lumiCalc2.irunlsdict = {}

check run/ls list

Definition at line 301 of file lumiCalc2.py.

tuple lumiCalc2.lute = lumiTime.lumiTime()

Definition at line 239 of file lumiCalc2.py.

Referenced by EcalTPGParamBuilder.analyze().

tuple lumiCalc2.normid = 0

Definition at line 356 of file lumiCalc2.py.

Referenced by LumiCorrectionSource.fillparamcache(), and lumi::NormDML.normIdByType().

tuple lumiCalc2.normmap = normDML.normIdByType(session.nominalSchema(),lumitype='HF',defaultonly=True)

Definition at line 361 of file lumiCalc2.py.

Referenced by SiTrackerMultiRecHitUpdator.update().

tuple lumiCalc2.normname = 'NONE'

check normtag and get norm values if required

Definition at line 355 of file lumiCalc2.py.

Referenced by lumi::NormDML.normIdByType().

tuple lumiCalc2.normvalueDict = {}

Definition at line 357 of file lumiCalc2.py.

lumiCalc2.noWarning = options.nowarning

Definition at line 206 of file lumiCalc2.py.

tuple lumiCalc2.options = parser.parse_args()

Definition at line 196 of file lumiCalc2.py.

string lumiCalc2.outfile = options.outputfile

Definition at line 414 of file lumiCalc2.py.

tuple lumiCalc2.parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Lumi Calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter)

## Main Program

Definition at line 38 of file lumiCalc2.py.

string lumiCalc2.pbeammode = None

Definition at line 207 of file lumiCalc2.py.

lumiCalc2.reqfillmax = None

Definition at line 203 of file lumiCalc2.py.

lumiCalc2.reqfillmin = None

Definition at line 200 of file lumiCalc2.py.

lumiCalc2.reqHlt = False

Definition at line 212 of file lumiCalc2.py.

lumiCalc2.reqrunmax = None

Definition at line 202 of file lumiCalc2.py.

lumiCalc2.reqrunmin = None

Definition at line 199 of file lumiCalc2.py.

lumiCalc2.reqtimemax = None

Definition at line 204 of file lumiCalc2.py.

tuple lumiCalc2.reqtimemaxT = lute.StrToDatetime(reqtimemax,customfm='%m/%d/%y %H:%M:%S')

Definition at line 254 of file lumiCalc2.py.

lumiCalc2.reqtimemin = None

Definition at line 201 of file lumiCalc2.py.

tuple lumiCalc2.reqtimeminT = lute.StrToDatetime(reqtimemin,customfm='%m/%d/%y %H:%M:%S')

Definition at line 240 of file lumiCalc2.py.

lumiCalc2.reqTrg = False

Definition at line 211 of file lumiCalc2.py.

lumiCalc2.required = False,

arg to select exact run and ls

versions control

Definition at line 53 of file lumiCalc2.py.

tuple lumiCalc2.result = lumiCalcAPI.deliveredLumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=pbeammode,timeFilter=timeFilter,normmap=normvalueDict,lumitype='HF')

Definition at line 382 of file lumiCalc2.py.

list lumiCalc2.rruns = []

Definition at line 302 of file lumiCalc2.py.

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

Definition at line 296 of file lumiCalc2.py.

tuple lumiCalc2.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 292 of file lumiCalc2.py.

list lumiCalc2.thiscmmd = sys.argv[0]

Definition at line 265 of file lumiCalc2.py.

list lumiCalc2.timeFilter = [None,None]

Definition at line 205 of file lumiCalc2.py.

tuple lumiCalc2.type = int,

global scale factor

Definition at line 60 of file lumiCalc2.py.

list lumiCalc2.updateversion = 'NONE'

Definition at line 264 of file lumiCalc2.py.

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

Definition at line 275 of file lumiCalc2.py.

tuple lumiCalc2.workingversion = 'UNKNOWN'

check working environment

Definition at line 263 of file lumiCalc2.py.

list lumiCalc2.xingAlgoChoices = [ "OCC1","OCC2","ET"]

Definition at line 42 of file lumiCalc2.py.