CMS 3D CMS Logo

Classes | Functions | Variables

pixelLumiCalc Namespace Reference

Classes

class  RegexValidator

Functions

def parseInputFiles

Variables

string action = 'store_true'
list allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','checkforupdate']
tuple c = checkforupdate.checkforupdate('pixeltagstatus.txt')
list cmsswWorkingBase = os.environ['CMSSW_BASE']
string default = 'frontier://LumiCalc/CMS_LUMI_PROD'
string dest = 'withoutCorrection'
 finecorrections = None
string help = 'command actions'
 hltname = options.hltpath
 hltpat = None
list iresults = []
dictionary irunlsdict = {}
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 ## ## ## ## ################## ## ## ######################## ##
 reqHlt = False
 reqTrg = False
 required = False,
tuple result = lumiCalcAPI.deliveredLumiForRange(session.nominalSchema(),irunlsdict,amodetag=None,egev=None,beamstatus=None,norm=1.0,finecorrections=finecorrections,driftcorrections=None,usecorrectionv2=False,lumitype='PIXEL',branchName='DATA')
tuple runlist = lumiCalcAPI.runList(schema,options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=None,nominalEnergy=None,energyFlut=None,requiretrg=reqTrg,requirehlt=reqHlt,lumitype='PIXEL')
tuple schema = session.nominalSchema()
tuple session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
tuple svc
 type = int,
tuple workingversion = c.runningVersion(cmsswWorkingBase,'pixelLumiCalc.py')

Function Documentation

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

Definition at line 18 of file pixelLumiCalc.py.

00019                                                       :
00020     '''
00021     output ({run:[cmsls,cmsls,...]},[[resultlines]])
00022     '''
00023     selectedrunlsInDB={}
00024     resultlines=[]
00025     p=inputFilesetParser.inputFilesetParser(inputfilename)
00026     runlsbyfile=p.runsandls()
00027     selectedProcessedRuns=p.selectedRunsWithresult()
00028     selectedNonProcessedRuns=p.selectedRunsWithoutresult()
00029     resultlines=p.resultlines()
00030     for runinfile in selectedNonProcessedRuns:
00031         if runinfile not in dbrunlist:
00032             continue
00033         if optaction=='delivered':#for delivered we care only about selected runs
00034             selectedrunlsInDB[runinfile]=None
00035         else:
00036             selectedrunlsInDB[runinfile]=runlsbyfile[runinfile]
00037     return (selectedrunlsInDB,resultlines)


Variable Documentation

string pixelLumiCalc::action = 'store_true'

Definition at line 120 of file pixelLumiCalc.py.

list pixelLumiCalc::allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','checkforupdate']

Definition at line 48 of file pixelLumiCalc.py.

tuple pixelLumiCalc::c = checkforupdate.checkforupdate('pixeltagstatus.txt')

Definition at line 134 of file pixelLumiCalc.py.

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

Definition at line 133 of file pixelLumiCalc.py.

float pixelLumiCalc::default = 'frontier://LumiCalc/CMS_LUMI_PROD'

Definition at line 61 of file pixelLumiCalc.py.

string pixelLumiCalc::dest = 'withoutCorrection'

Definition at line 119 of file pixelLumiCalc.py.

Definition at line 173 of file pixelLumiCalc.py.

string pixelLumiCalc::help = 'command actions'

Definition at line 57 of file pixelLumiCalc.py.

pixelLumiCalc::hltname = options.hltpath

Definition at line 206 of file pixelLumiCalc.py.

Definition at line 207 of file pixelLumiCalc.py.

Definition at line 148 of file pixelLumiCalc.py.

dictionary pixelLumiCalc::irunlsdict = {}

Definition at line 147 of file pixelLumiCalc.py.

tuple pixelLumiCalc::options = parser.parse_args()

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

Definition at line 153 of file pixelLumiCalc.py.

Definition at line 152 of file pixelLumiCalc.py.

Definition at line 59 of file pixelLumiCalc.py.

tuple pixelLumiCalc::result = lumiCalcAPI.deliveredLumiForRange(session.nominalSchema(),irunlsdict,amodetag=None,egev=None,beamstatus=None,norm=1.0,finecorrections=finecorrections,driftcorrections=None,usecorrectionv2=False,lumitype='PIXEL',branchName='DATA')

Definition at line 182 of file pixelLumiCalc.py.

tuple pixelLumiCalc::runlist = lumiCalcAPI.runList(schema,options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=None,nominalEnergy=None,energyFlut=None,requiretrg=reqTrg,requirehlt=reqHlt,lumitype='PIXEL')

Definition at line 159 of file pixelLumiCalc.py.

tuple pixelLumiCalc::schema = session.nominalSchema()

Definition at line 158 of file pixelLumiCalc.py.

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

Definition at line 145 of file pixelLumiCalc.py.

Initial value:
00001 sessionManager.sessionManager(options.connect,
00002                                       authpath=options.authpath,
00003                                       siteconfpath=options.siteconfpath,
00004                                       debugON=options.debug)

Definition at line 141 of file pixelLumiCalc.py.

tuple pixelLumiCalc::type = int,

Definition at line 66 of file pixelLumiCalc.py.

tuple pixelLumiCalc::workingversion = c.runningVersion(cmsswWorkingBase,'pixelLumiCalc.py')

Definition at line 135 of file pixelLumiCalc.py.