CMS 3D CMS Logo

Namespaces | Functions | Variables

/data/refman/pasoursint/CMSSW_6_1_1/src/RecoLuminosity/LumiDB/scripts/lumiPlot.py File Reference

Go to the source code of this file.

Namespaces

namespace  lumiPlot

Functions

def lumiPlot::parseInputFiles

Variables

string lumiPlot::action = 'store'
dictionary lumiPlot::actiontofilebasemap = {'time':'lumivstime','run':'lumivsrun','fill':'lumivsfill','perday':'lumiperday','instpeakperday':'lumipeak'}
list lumiPlot::allowedActions = ['run','time','fill','perday','instpeakperday']
list lumiPlot::allowedscales = ['linear','log','both']
list lumiPlot::amodetagChoices = [ "PROTPHYS","IONPHYS",'PAPHYS' ]
list lumiPlot::beamChoices = ['PROTPHYS','IONPHYS','PAPHYS']
list lumiPlot::beamModeChoices = [ "stable", "quiet", "either"]
tuple lumiPlot::begT = datetime.datetime.combine(datetime.date.fromordinal(newFirstDay),midnight)
 lumiPlot::begtime = options.begintime
tuple lumiPlot::begTStr = lut.DatetimeToStr(begT,customfm='%m/%d/%y %H:%M:%S')
 lumiPlot::choices = allowedActions,
list lumiPlot::cmslsnum = lsdata[1]
tuple lumiPlot::config = ConfigParser.RawConfigParser()
tuple lumiPlot::currentdir = os.getcwd()
 parse figure configuration if found
tuple lumiPlot::dataidmap = revisionDML.dataIdsByTagId(session.nominalSchema(),datatagid,runlist=rruns,withcomment=False)
 lumiPlot::datatagname = options.datatag
 resolve data ids
tuple lumiPlot::daybeg = str(daydata[0][0])
list lumiPlot::daydata = daydict[day]
tuple lumiPlot::daydel = sum([t[2] for t in daydata if t[2]])
dictionary lumiPlot::daydict = {}
tuple lumiPlot::dayend = str(daydata[-1][0])
int lumiPlot::daymax_ls = 0
int lumiPlot::daymax_run = 0
float lumiPlot::daymax_val = 0.0
tuple lumiPlot::daynumber = lsTS.date()
tuple lumiPlot::dayrec = sum([t[3] for t in daydata if t[3]])
string lumiPlot::default = 'frontier://LumiCalc/CMS_LUMI_PROD'
list lumiPlot::dellum = lsdata[5]
list lumiPlot::dellumi = lsdata[5]
string lumiPlot::dest = 'connect'
 input/output file names
list lumiPlot::effdict = perlsdata[8]
 lumiPlot::endtime = options.endtime
tuple lumiPlot::f = open(ip,'r')
tuple lumiPlot::fig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])
dictionary lumiPlot::figureparams = {'sizex':7.5,'sizey':5.7,'dpi':135}
dictionary lumiPlot::fillrunMap = {}
tuple lumiPlot::GrunsummaryData = lumiCalcAPI.runsummaryMap(session.nominalSchema(),irunlsdict)
string lumiPlot::help = 'connect string to lumiDB'
 lumiPlot::hltname = options.hltpath
 lumiPlot::hltpat = None
 lumiPlot::inplot = options.inplot
 process old plot csv files,if any, skipping #commentlines
list lumiPlot::inplots = []
list lumiPlot::instlum = lsdata[5]
dictionary lumiPlot::irunlsdict = {}
 find runs need to read from DB
list lumiPlot::labels = ['Delivered','Recorded']
 lumiPlot::lastDrawnFill = None
 lumiPlot::lastDrawnRun = None
tuple lumiPlot::locallumiconfig = os.path.join(currentdir,rcparamfile)
tuple lumiPlot::logfig = Figure(figsize=(figureparams['sizex'],figureparams['sizey']),dpi=figureparams['dpi'])
tuple lumiPlot::lslength = lumip.lslengthsec()
list lumiPlot::lsTS = lsdata[2]
tuple lumiPlot::lumibyls = lumiCalcAPI.lumiForIds(session.nominalSchema(),irunlsdict,dataidmap,runsummaryMap=GrunsummaryData,beamstatusfilter=pbeammode,normmap=normvalueDict,lumitype='HF')
list lumiPlot::lumilsnum = lsdata[0]
tuple lumiPlot::lumip = lumiParameters.ParametersObject()
tuple lumiPlot::lut = lumiTime.lumiTime()
tuple lumiPlot::m = matplotRender.matplotRender(fig)
 lumiPlot::maxDrawnDay = None
tuple lumiPlot::midnight = datetime.time()
tuple lumiPlot::mlog = matplotRender.matplotRender(logfig)
tuple lumiPlot::mpllumiconfig = os.path.join(mplrcdir,rcparamfile)
tuple lumiPlot::mplrcdir = matplotlib.get_configdir()
 lumiPlot::newFirstDay = None
 lumiPlot::newFirstFill = None
 lumiPlot::newFirstRun = None
int lumiPlot::normid = 0
tuple lumiPlot::normmap = normDML.normIdByType(session.nominalSchema(),lumitype='HF',defaultonly=True)
string lumiPlot::normname = 'NONE'
dictionary lumiPlot::normvalueDict = {}
tuple lumiPlot::options = parser.parse_args()
 lumiPlot::outplotfilename = options.outplot
string lumiPlot::outtextfilename = '.csv'
tuple lumiPlot::parser
 parse arguments
dictionary lumiPlot::pathdict = {}
tuple lumiPlot::pathnames = effdict.keys()
 lumiPlot::pbeammode = None
dictionary lumiPlot::rawdata = {}
list lumiPlot::rawxdata = []
dictionary lumiPlot::rawydata = {}
string lumiPlot::rcparamfile = '.lumiplotrc'
tuple lumiPlot::reader = csv.reader(f,delimiter=',')
list lumiPlot::reclum = lsdata[6]
list lumiPlot::reclumi = lsdata[6]
string lumiPlot::referenceLabel = 'Delivered'
 ######################## ## ## ################## ## ## ## ## Main Program ## ## ## ## ################## ## ## ######################## ##
 lumiPlot::reqHlt = False
 lumiPlot::reqTrg = False
 lumiPlot::required = False,
list lumiPlot::resultlines = []
list lumiPlot::rruns = []
list lumiPlot::rundata = lumibyls[run]
tuple lumiPlot::runlist = lumiCalcAPI.runList(session.nominalSchema(),options.fillnum,runmin=None,runmax=None,startT=begTStr,stopT=endtime,l1keyPattern=None,hltkeyPattern=None,amodetag=options.amodetag,nominalEnergy=options.beamenergy,energyFlut=options.beamfluctuation,requiretrg=reqTrg,requirehlt=reqHlt)
tuple lumiPlot::session = svc.openSession(isReadOnly=True,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')])
int lumiPlot::starttime = 0
int lumiPlot::stoptime = 0
tuple lumiPlot::svc
tuple lumiPlot::thisfillnumber = fillrunMap.keys()
int lumiPlot::totcmsls = 0
int lumiPlot::totlumils = 0
 lumiPlot::type = int,