CMS 3D CMS Logo

Classes | Functions | Variables

lumiPlot Namespace Reference

Classes

class  RegexValidator

Functions

def parseInputFiles

Variables

string action = 'store'
dictionary actiontofilebasemap = {'time':'lumivstime','run':'lumivsrun','fill':'lumivsfill','perday':'lumiperday','instpeakperday':'lumipeak'}
list allowedActions = ['run','time','fill','perday','instpeakperday']
list allowedscales = ['linear','log','both']
list amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]
list beamChoices = ['PROTPHYS','IONPHYS','PAPHYS']
list beamModeChoices = [ "stable", "quiet", "either"]
tuple begT = datetime.datetime.combine(datetime.date.fromordinal(newFirstDay),midnight)
 begtime = options.begintime
tuple begTStr = lut.DatetimeToStr(begT,customfm='%m/%d/%y %H:%M:%S')
 choices = allowedActions,
list cmslsnum = lsdata[1]
tuple config = ConfigParser.RawConfigParser()
tuple cterms = lumiCorrections.nonlinearV3()
tuple currentdir = os.getcwd()
tuple daybeg = str(daydata[0][0])
list daydata = daydict[day]
tuple daydel = sum([t[2] for t in daydata])
dictionary daydict = {}
tuple dayend = str(daydata[-1][0])
int daymax_ls = 0
int daymax_run = 0
float daymax_val = 0.0
tuple daynumber = lsTS.date()
tuple dayrec = sum([t[3] for t in daydata])
string default = 'frontier://LumiCalc/CMS_LUMI_PROD'
list dellum = lsdata[5]
list dellumi = lsdata[5]
string dest = 'connect'
 input/output file names
 driftcorrections = None
list effdict = perlsdata[8]
 endtime = options.endtime
tuple f = open(ip,'r')
tuple fig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])
dictionary figureparams = {'sizex':7.5,'sizey':5.7,'dpi':135}
dictionary fillrunMap = {}
 finecorrections = None
string help = 'connect string to lumiDB'
 hltname = options.hltpath
 hltpat = None
 inplot = options.inplot
 process old plot csv files,if any, skipping #commentlines
list inplots = []
list instlum = lsdata[5]
dictionary irunlsdict = {}
 find runs need to read from DB
list labels = ['Delivered','Recorded']
 lastDrawnFill = None
 lastDrawnRun = None
tuple locallumiconfig = os.path.join(currentdir,rcparamfile)
tuple logfig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])
tuple lslength = lumip.lslengthsec()
list lsTS = lsdata[2]
tuple lumibyls = lumiCalcAPI.lumiForRange(session.nominalSchema(),runlsfromDB,amodetag=options.amodetag,egev=options.beamenergy,beamstatus=pbeammode,norm=normfactor,finecorrections=finecorrections,driftcorrections=driftcorrections,usecorrectionv2=True)
list lumilsnum = lsdata[0]
tuple lumip = lumiParameters.ParametersObject()
tuple lut = lumiTime.lumiTime()
tuple m = matplotRender.matplotRender(fig)
 maxDrawnDay = None
tuple midnight = datetime.time()
tuple mlog = matplotRender.matplotRender(logfig)
tuple mpllumiconfig = os.path.join(mplrcdir,rcparamfile)
tuple mplrcdir = matplotlib.get_configdir()
 newFirstDay = None
 newFirstFill = None
 newFirstRun = None
 normfactor = options.norm
tuple options = parser.parse_args()
 outplotfilename = options.outplot
string outtextfilename = '.csv'
tuple parser
dictionary pathdict = {}
tuple pathnames = effdict.keys()
 pbeammode = None
dictionary rawdata = {}
list rawxdata = []
dictionary rawydata = {}
string rcparamfile = '.lumiplotrc'
tuple reader = csv.reader(f,delimiter=',')
list reclum = lsdata[6]
list reclumi = lsdata[6]
string referenceLabel = 'Delivered'
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
 reqHlt = False
 reqTrg = True
 required = False,
list resultlines = []
tuple rruns = runlsfromDB.keys()
list rundata = lumibyls[run]
dictionary runlsfromDB = {}
list runsnotdrawn = []
tuple schema = session.nominalSchema()
tuple session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
int starttime = 0
int stoptime = 0
tuple svc
tuple thisfillnumber = fillrunMap.keys()
int totcmsls = 0
int totlumils = 0
 type = int,
string VERSION = '1.00'

Function Documentation

def lumiPlot::parseInputFiles (   inputfilename)

Definition at line 21 of file lumiPlot.py.

00022                                   :
00023     p=inputFilesetParser.inputFilesetParser(inputfilename)
00024     runlsbyfile=p.runsandls()
00025     return runlsbyfile


Variable Documentation

string lumiPlot::action = 'store'

Definition at line 83 of file lumiPlot.py.

dictionary lumiPlot::actiontofilebasemap = {'time':'lumivstime','run':'lumivsrun','fill':'lumivsfill','perday':'lumiperday','instpeakperday':'lumipeak'}

Definition at line 42 of file lumiPlot.py.

list lumiPlot::allowedActions = ['run','time','fill','perday','instpeakperday']

Definition at line 37 of file lumiPlot.py.

list lumiPlot::allowedscales = ['linear','log','both']

Definition at line 39 of file lumiPlot.py.

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

Definition at line 41 of file lumiPlot.py.

list lumiPlot::beamChoices = ['PROTPHYS','IONPHYS','PAPHYS']

Definition at line 38 of file lumiPlot.py.

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

Definition at line 40 of file lumiPlot.py.

tuple lumiPlot::begT = datetime.datetime.combine(datetime.date.fromordinal(newFirstDay),midnight)

Definition at line 294 of file lumiPlot.py.

lumiPlot::begtime = options.begintime

Definition at line 234 of file lumiPlot.py.

tuple lumiPlot::begTStr = lut.DatetimeToStr(begT,customfm='%m/%d/%y %H:%M:%S')

Definition at line 295 of file lumiPlot.py.

Definition at line 215 of file lumiPlot.py.

list lumiPlot::cmslsnum = lsdata[1]

Definition at line 532 of file lumiPlot.py.

tuple lumiPlot::config = ConfigParser.RawConfigParser()

Definition at line 55 of file lumiPlot.py.

Definition at line 355 of file lumiPlot.py.

tuple lumiPlot::currentdir = os.getcwd()

Definition at line 46 of file lumiPlot.py.

tuple lumiPlot::daybeg = str(daydata[0][0])

Definition at line 475 of file lumiPlot.py.

Definition at line 474 of file lumiPlot.py.

tuple lumiPlot::daydel = sum([t[2] for t in daydata])

Definition at line 477 of file lumiPlot.py.

dictionary lumiPlot::daydict = {}

Definition at line 463 of file lumiPlot.py.

tuple lumiPlot::dayend = str(daydata[-1][0])

Definition at line 476 of file lumiPlot.py.

Definition at line 503 of file lumiPlot.py.

Definition at line 502 of file lumiPlot.py.

Definition at line 501 of file lumiPlot.py.

tuple lumiPlot::daynumber = lsTS.date()

Definition at line 471 of file lumiPlot.py.

tuple lumiPlot::dayrec = sum([t[3] for t in daydata])

Definition at line 478 of file lumiPlot.py.

string lumiPlot::default = 'frontier://LumiCalc/CMS_LUMI_PROD'

Definition at line 85 of file lumiPlot.py.

list lumiPlot::dellum = lsdata[5]

Definition at line 469 of file lumiPlot.py.

list lumiPlot::dellumi = lsdata[5]

Definition at line 536 of file lumiPlot.py.

string lumiPlot::dest = 'connect'

input/output file names

general switches

correction switches

graphic switches

Definition at line 82 of file lumiPlot.py.

Definition at line 349 of file lumiPlot.py.

list lumiPlot::effdict = perlsdata[8]

Definition at line 392 of file lumiPlot.py.

tuple lumiPlot::endtime = options.endtime

Definition at line 235 of file lumiPlot.py.

tuple lumiPlot::f = open(ip,'r')

Definition at line 252 of file lumiPlot.py.

tuple lumiPlot::fig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])

Definition at line 336 of file lumiPlot.py.

dictionary lumiPlot::figureparams = {'sizex':7.5,'sizey':5.7,'dpi':135}

Definition at line 51 of file lumiPlot.py.

Definition at line 270 of file lumiPlot.py.

Definition at line 271 of file lumiPlot.py.

string lumiPlot::help = 'connect string to lumiDB'

Definition at line 84 of file lumiPlot.py.

lumiPlot::hltname = options.hltpath

Definition at line 366 of file lumiPlot.py.

Definition at line 367 of file lumiPlot.py.

lumiPlot::inplot = options.inplot

process old plot csv files,if any, skipping #commentlines

Definition at line 248 of file lumiPlot.py.

tuple lumiPlot::inplots = []

Definition at line 244 of file lumiPlot.py.

list lumiPlot::instlum = lsdata[5]

Definition at line 496 of file lumiPlot.py.

find runs need to read from DB

Definition at line 260 of file lumiPlot.py.

list lumiPlot::labels = ['Delivered','Recorded']

Definition at line 36 of file lumiPlot.py.

Definition at line 276 of file lumiPlot.py.

tuple lumiPlot::lastDrawnRun = None

Definition at line 274 of file lumiPlot.py.

Definition at line 50 of file lumiPlot.py.

tuple lumiPlot::logfig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])

Definition at line 338 of file lumiPlot.py.

tuple lumiPlot::lslength = lumip.lslengthsec()

Definition at line 233 of file lumiPlot.py.

list lumiPlot::lsTS = lsdata[2]

Definition at line 468 of file lumiPlot.py.

tuple lumiPlot::lumibyls = lumiCalcAPI.lumiForRange(session.nominalSchema(),runlsfromDB,amodetag=options.amodetag,egev=options.beamenergy,beamstatus=pbeammode,norm=normfactor,finecorrections=finecorrections,driftcorrections=driftcorrections,usecorrectionv2=True)

Definition at line 363 of file lumiPlot.py.

list lumiPlot::lumilsnum = lsdata[0]

Definition at line 467 of file lumiPlot.py.

Referenced by lumi::LumiDummy2DB::retrieveData().

Definition at line 227 of file lumiPlot.py.

Definition at line 337 of file lumiPlot.py.

tuple lumiPlot::maxDrawnDay = None

Definition at line 275 of file lumiPlot.py.

tuple lumiPlot::midnight = datetime.time()

Definition at line 293 of file lumiPlot.py.

Definition at line 339 of file lumiPlot.py.

Definition at line 49 of file lumiPlot.py.

tuple lumiPlot::mplrcdir = matplotlib.get_configdir()

Definition at line 48 of file lumiPlot.py.

Definition at line 277 of file lumiPlot.py.

Definition at line 279 of file lumiPlot.py.

Definition at line 278 of file lumiPlot.py.

lumiPlot::normfactor = options.norm

Definition at line 240 of file lumiPlot.py.

tuple lumiPlot::options = parser.parse_args()

Definition at line 217 of file lumiPlot.py.

list lumiPlot::outplotfilename = options.outplot

Definition at line 221 of file lumiPlot.py.

Definition at line 224 of file lumiPlot.py.

Initial value:
00001 argparse.ArgumentParser(prog=os.path.basename(sys.argv[0]),
00002                                      description="Plot luminosity as function of the time variable of choice",
00003                                      formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Definition at line 78 of file lumiPlot.py.

dictionary lumiPlot::pathdict = {}

Definition at line 389 of file lumiPlot.py.

tuple lumiPlot::pathnames = effdict.keys()
string lumiPlot::pbeammode = None

Definition at line 239 of file lumiPlot.py.

dictionary lumiPlot::rawdata = {}
list lumiPlot::rawxdata = []

Definition at line 521 of file lumiPlot.py.

dictionary lumiPlot::rawydata = {}

Definition at line 522 of file lumiPlot.py.

string lumiPlot::rcparamfile = '.lumiplotrc'

Definition at line 47 of file lumiPlot.py.

tuple lumiPlot::reader = csv.reader(f,delimiter=',')

Definition at line 253 of file lumiPlot.py.

list lumiPlot::reclum = lsdata[6]

Definition at line 470 of file lumiPlot.py.

list lumiPlot::reclumi = lsdata[6]

Definition at line 537 of file lumiPlot.py.

string lumiPlot::referenceLabel = 'Delivered'

######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##

Definition at line 35 of file lumiPlot.py.

Definition at line 262 of file lumiPlot.py.

Definition at line 261 of file lumiPlot.py.

Definition at line 109 of file lumiPlot.py.

Definition at line 243 of file lumiPlot.py.

tuple lumiPlot::rruns = runlsfromDB.keys()

Definition at line 351 of file lumiPlot.py.

Definition at line 381 of file lumiPlot.py.

dictionary lumiPlot::runlsfromDB = {}

Definition at line 272 of file lumiPlot.py.

Definition at line 273 of file lumiPlot.py.

tuple lumiPlot::schema = session.nominalSchema()

Definition at line 266 of file lumiPlot.py.

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

Definition at line 232 of file lumiPlot.py.

Definition at line 519 of file lumiPlot.py.

Definition at line 520 of file lumiPlot.py.

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

Definition at line 228 of file lumiPlot.py.

tuple lumiPlot::thisfillnumber = fillrunMap.keys()

Definition at line 518 of file lumiPlot.py.

Definition at line 526 of file lumiPlot.py.

Definition at line 525 of file lumiPlot.py.

tuple lumiPlot::type = int,

Definition at line 124 of file lumiPlot.py.

string lumiPlot::VERSION = '1.00'

Definition at line 2 of file lumiPlot.py.