CMS 3D CMS Logo

Classes | Functions | Variables

lumiCalc2 Namespace Reference

Classes

class  RegexValidator

Functions

def parseInputFiles

Variables

list allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','lumibylsXing','status','checkforupdate']
list amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]
list beamModeChoices = [ "stable", "quiet", "either"]
tuple c = checkforupdate.checkforupdate()
 choices = beamModeChoices,
list cmsswWorkingBase = os.environ['CMSSW_BASE']
tuple cterms = lumiCorrections.nonlinearV3()
string default = 'frontier://LumiCalc/CMS_LUMI_PROD'
 driftcorrections = None
 finecorrections = None
string help = 'command actions'
 hltname = options.hltpath
 hltpat = None
list iresults = []
dictionary irunlsdict = {}
 normfactor = options.normfactor
tuple options = parser.parse_args()
tuple parser = argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),description = "Lumi Calculation",formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
 pbeammode = None
 reqHlt = False
 reqTrg = False
 required = False,
tuple result = lumiCalcAPI.deliveredLumiForRange(session.nominalSchema(),irunlsdict,amodetag=options.amodetag,egev=options.beamenergy,beamstatus=pbeammode,norm=normfactor,finecorrections=finecorrections,driftcorrections=driftcorrections,usecorrectionv2=True)
tuple rruns = irunlsdict.keys()
tuple runlist = lumiCalcAPI.runList(schema,options.fillnum,runmin=None,runmax=None,startT=options.begin,stopT=options.end,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt)
tuple schema = session.nominalSchema()
tuple session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
tuple svc
 type = int,
string VERSION = '2.00'
tuple workingversion = c.runningVersion(cmsswWorkingBase,'lumiCalc2.py')
list xingAlgoChoices = [ "OCC1","OCC2","ET"]

Function Documentation

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

Definition at line 22 of file lumiCalc2.py.

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


Variable Documentation

list lumiCalc2::allowedActions = ['overview', 'delivered', 'recorded', 'lumibyls','lumibylsXing','status','checkforupdate']

Definition at line 52 of file lumiCalc2.py.

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

Definition at line 54 of file lumiCalc2.py.

list lumiCalc2::beamModeChoices = [ "stable", "quiet", "either"]

Definition at line 53 of file lumiCalc2.py.

Definition at line 179 of file lumiCalc2.py.

Definition at line 94 of file lumiCalc2.py.

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

Definition at line 178 of file lumiCalc2.py.

Definition at line 265 of file lumiCalc2.py.

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

Definition at line 67 of file lumiCalc2.py.

Definition at line 259 of file lumiCalc2.py.

Definition at line 258 of file lumiCalc2.py.

string lumiCalc2::help = 'command actions'

Definition at line 63 of file lumiCalc2.py.

lumiCalc2::hltname = options.hltpath

Definition at line 301 of file lumiCalc2.py.

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

Definition at line 302 of file lumiCalc2.py.

Definition at line 232 of file lumiCalc2.py.

dictionary lumiCalc2::irunlsdict = {}

Definition at line 231 of file lumiCalc2.py.

lumiCalc2::normfactor = options.normfactor

Definition at line 187 of file lumiCalc2.py.

tuple lumiCalc2::options = parser.parse_args()

Definition at line 175 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 51 of file lumiCalc2.py.

string lumiCalc2::pbeammode = None

Definition at line 186 of file lumiCalc2.py.

Definition at line 237 of file lumiCalc2.py.

Definition at line 236 of file lumiCalc2.py.

Definition at line 65 of file lumiCalc2.py.

tuple lumiCalc2::result = lumiCalcAPI.deliveredLumiForRange(session.nominalSchema(),irunlsdict,amodetag=options.amodetag,egev=options.beamenergy,beamstatus=pbeammode,norm=normfactor,finecorrections=finecorrections,driftcorrections=driftcorrections,usecorrectionv2=True)

Definition at line 277 of file lumiCalc2.py.

tuple lumiCalc2::rruns = irunlsdict.keys()

Definition at line 261 of file lumiCalc2.py.

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

Definition at line 243 of file lumiCalc2.py.

tuple lumiCalc2::schema = session.nominalSchema()

Definition at line 242 of file lumiCalc2.py.

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

Definition at line 229 of file lumiCalc2.py.

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

Definition at line 225 of file lumiCalc2.py.

tuple lumiCalc2::type = int,

Definition at line 72 of file lumiCalc2.py.

string lumiCalc2::VERSION = '2.00'

Definition at line 2 of file lumiCalc2.py.

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

Definition at line 180 of file lumiCalc2.py.

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

Definition at line 55 of file lumiCalc2.py.