![]() |
ATLAS Offline Software
|
Classes | |
| class | COOLQueryWorker |
| class | COOLQueryHandler |
| class | QueryBundle |
| class | RateQueryWorker |
| class | RateQueryBundle |
| class | RateQueryHandler |
Functions | |
| waitForReturn (fd) | |
| commonKeys (dictionaries) | |
| createTimeConverter (runLbRanges) | |
| rateNameInfo (runLbRanges, mySignal, numProc=1) | |
| generateRateQueryBundles (name, level, runLbRanges, nameToChannel, nameToFolder, alias=None) | |
| parseRatesString (ratesString) | |
| runNumberToRunLbRange (runNumbers) | |
| timeRangeToRunLbRange (timeRange) | |
| nanoTimeRangesToRunLbRanges (nanoTimeRanges) | |
| fillNumberToRunLbRange (fillNumbers) | |
| setAtlasStyle () | |
| fillProfile (profileName, numBins, xMin, xMax, xValues, yValues) | |
| fillRateProfiles (data) | |
| configurePlotting (data) | |
| configureTime (data) | |
| configureLuminosity (data) | |
| configureNoBX (data) | |
| getNiceCanvas (name, aliases, textSize=25) | |
| configureCanvasLegend (canvas, aliases, textSize=25) | |
| plotRateProfiles (data, label=False, runNumber=None, fillNumber=None, log=True, minY=None, maxY=None, luminousBunches=None, drawOption='H') | |
| configureProfile (profile, i, minY, maxY, drawOption, data, log, textSize=25) | |
| getLumiEndPoints (data) | |
| generateAtlasLabel (canvas, timeLabel, luminousBunches, runNumber=None, fillNumber=None) | |
| fetchTimeLabel (timeStart, timeEnd) | |
Variables | |
| str | __author__ = "Peter Radloff" |
| str | __version__ = "$Revision: 1.0$" |
| str | __doc__ = "Fast Rate plotter from COOL database" |
| logger = logging.getLogger(__name__) | |
| ch = logging.StreamHandler() | |
| formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
| parser = argparse.ArgumentParser(prog='COOLRates.py',description='Plots rate information from COOL') | |
| dest | |
| help | |
| default | |
| None | |
| metavar | |
| type | |
| int | |
| nargs | |
| action | |
| args = parser.parse_args() | |
| dict | folderLocations = {} |
| list | MarkerColors = [TColor.GetColor(hexColor) for hexColor in ['#000000','#2956B2','#7DBD00','#FF542E','#AA0078','#FFCC00','#D01A55','#A6AF7A','#DCF600','#FF5B00','#659CEF','#F2BC00','#FFF0BA']] |
| list | MarkerStyles = [20,21,22, 29,31, 33, 34, 23,24,25,26,27,28, 30] |
| list | MarkerSizes = [1.,1.,1.4,1.8,1.,1.8,1.4,1.4,1.,1.,1.,1.,1.,1.8] |
| mySignal = Process(target = waitForReturn, args=(sys.stdin.fileno(),)) | |
| runLbRanges = runNumberToRunLbRange(args.RUNNUMBER) | |
| FILLNUMBER | |
| TIMERANGE | |
| RUNNUMBER | |
| timeConverter = createTimeConverter(runLbRanges) | |
| coolQueryHandler = COOLQueryHandler(mySignal,numProc=args.PROCESSES,verbose=args.VERBOSE) | |
| rateQueryHandler = RateQueryHandler(mySignal,numProc=args.PROCESSES,verbose=args.VERBOSE) | |
| nameToChannel | |
| nameToFolder | |
| numProc | |
| rateName | |
| level | |
| alias | |
| dict | Data = {} |
| dict | rateOutput = Data['rates']['deadTime1'].get(runLb) |
| dict | rateAfterPrescale = Data['rates']['deadTime2'].get(runLb) |
| float | deadTime = 1.0-rateOutput/rateAfterPrescale |
| str | drawOption = 'H' |
| local | |
| commonKeys | ( | dictionaries | ) |
Definition at line 61 of file COOLRates.py.
| configureCanvasLegend | ( | canvas, | |
| aliases, | |||
| textSize = 25 ) |
Definition at line 888 of file COOLRates.py.
| configureLuminosity | ( | data | ) |
Definition at line 804 of file COOLRates.py.
| configureNoBX | ( | data | ) |
Definition at line 838 of file COOLRates.py.
| configurePlotting | ( | data | ) |
#
Fills plotting data: # 1) xMin # 2) xMax # 3) xLabel # 4) xScale # 5) xOffset # 6) xFormat # 7) numBins # 8) validPoints # 8) yLabel # #
Definition at line 758 of file COOLRates.py.
| configureProfile | ( | profile, | |
| i, | |||
| minY, | |||
| maxY, | |||
| drawOption, | |||
| data, | |||
| log, | |||
| textSize = 25 ) |
Definition at line 984 of file COOLRates.py.
| configureTime | ( | data | ) |
Definition at line 770 of file COOLRates.py.
| createTimeConverter | ( | runLbRanges | ) |
Definition at line 241 of file COOLRates.py.
| fetchTimeLabel | ( | timeStart, | |
| timeEnd ) |
Definition at line 1081 of file COOLRates.py.
| fillNumberToRunLbRange | ( | fillNumbers | ) |
Definition at line 600 of file COOLRates.py.
| fillProfile | ( | profileName, | |
| numBins, | |||
| xMin, | |||
| xMax, | |||
| xValues, | |||
| yValues ) |
Definition at line 698 of file COOLRates.py.
| fillRateProfiles | ( | data | ) |
Definition at line 706 of file COOLRates.py.
Definition at line 1035 of file COOLRates.py.
| generateRateQueryBundles | ( | name, | |
| level, | |||
| runLbRanges, | |||
| nameToChannel, | |||
| nameToFolder, | |||
| alias = None ) |
Definition at line 471 of file COOLRates.py.
| getLumiEndPoints | ( | data | ) |
Definition at line 1015 of file COOLRates.py.
| getNiceCanvas | ( | name, | |
| aliases, | |||
| textSize = 25 ) |
Definition at line 865 of file COOLRates.py.
| nanoTimeRangesToRunLbRanges | ( | nanoTimeRanges | ) |
Definition at line 573 of file COOLRates.py.
| parseRatesString | ( | ratesString | ) |
Definition at line 506 of file COOLRates.py.
| plotRateProfiles | ( | data, | |
| label = False, | |||
| runNumber = None, | |||
| fillNumber = None, | |||
| log = True, | |||
| minY = None, | |||
| maxY = None, | |||
| luminousBunches = None, | |||
| drawOption = 'H' ) |
Definition at line 904 of file COOLRates.py.
| rateNameInfo | ( | runLbRanges, | |
| mySignal, | |||
| numProc = 1 ) |
Definition at line 308 of file COOLRates.py.
| runNumberToRunLbRange | ( | runNumbers | ) |
Definition at line 531 of file COOLRates.py.
| setAtlasStyle | ( | ) |
Definition at line 637 of file COOLRates.py.
| timeRangeToRunLbRange | ( | timeRange | ) |
Definition at line 553 of file COOLRates.py.
| waitForReturn | ( | fd | ) |
Definition at line 50 of file COOLRates.py.
|
private |
Definition at line 7 of file COOLRates.py.
|
private |
Definition at line 9 of file COOLRates.py.
|
private |
Definition at line 8 of file COOLRates.py.
| COOLRates.action |
Definition at line 34 of file COOLRates.py.
| COOLRates.alias |
Definition at line 1172 of file COOLRates.py.
| COOLRates.args = parser.parse_args() |
Definition at line 44 of file COOLRates.py.
| COOLRates.ch = logging.StreamHandler() |
Definition at line 22 of file COOLRates.py.
| COOLRates.coolQueryHandler = COOLQueryHandler(mySignal,numProc=args.PROCESSES,verbose=args.VERBOSE) |
Definition at line 1138 of file COOLRates.py.
| dict COOLRates.Data = {} |
Definition at line 1202 of file COOLRates.py.
| float COOLRates.deadTime = 1.0-rateOutput/rateAfterPrescale |
Definition at line 1220 of file COOLRates.py.
| COOLRates.default |
Definition at line 31 of file COOLRates.py.
| COOLRates.dest |
Definition at line 30 of file COOLRates.py.
| COOLRates.drawOption = 'H' |
Definition at line 1241 of file COOLRates.py.
| COOLRates.FILLNUMBER |
Definition at line 1115 of file COOLRates.py.
| dict COOLRates.folderLocations = {} |
Definition at line 286 of file COOLRates.py.
| COOLRates.formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') |
Definition at line 23 of file COOLRates.py.
| COOLRates.help |
Definition at line 30 of file COOLRates.py.
| COOLRates.int |
Definition at line 31 of file COOLRates.py.
| COOLRates.level |
Definition at line 1172 of file COOLRates.py.
| COOLRates.local |
Definition at line 1253 of file COOLRates.py.
| COOLRates.logger = logging.getLogger(__name__) |
Definition at line 21 of file COOLRates.py.
| list COOLRates.MarkerColors = [TColor.GetColor(hexColor) for hexColor in ['#000000','#2956B2','#7DBD00','#FF542E','#AA0078','#FFCC00','#D01A55','#A6AF7A','#DCF600','#FF5B00','#659CEF','#F2BC00','#FFF0BA']] |
#
Set default color, styles and sizes (14 available) # #
Definition at line 694 of file COOLRates.py.
| list COOLRates.MarkerSizes = [1.,1.,1.4,1.8,1.,1.8,1.4,1.4,1.,1.,1.,1.,1.,1.8] |
Definition at line 696 of file COOLRates.py.
| list COOLRates.MarkerStyles = [20,21,22, 29,31, 33, 34, 23,24,25,26,27,28, 30] |
Definition at line 695 of file COOLRates.py.
| COOLRates.metavar |
Definition at line 31 of file COOLRates.py.
| COOLRates.mySignal = Process(target = waitForReturn, args=(sys.stdin.fileno(),)) |
Definition at line 1106 of file COOLRates.py.
| COOLRates.nameToChannel |
Definition at line 1142 of file COOLRates.py.
| COOLRates.nameToFolder |
Definition at line 1142 of file COOLRates.py.
| COOLRates.nargs |
Definition at line 31 of file COOLRates.py.
| COOLRates.None |
Definition at line 31 of file COOLRates.py.
| COOLRates.numProc |
Definition at line 1142 of file COOLRates.py.
| COOLRates.parser = argparse.ArgumentParser(prog='COOLRates.py',description='Plots rate information from COOL') |
Definition at line 29 of file COOLRates.py.
Definition at line 1217 of file COOLRates.py.
| COOLRates.rateName |
Definition at line 1172 of file COOLRates.py.
Definition at line 1216 of file COOLRates.py.
| COOLRates.rateQueryHandler = RateQueryHandler(mySignal,numProc=args.PROCESSES,verbose=args.VERBOSE) |
Definition at line 1139 of file COOLRates.py.
| COOLRates.runLbRanges = runNumberToRunLbRange(args.RUNNUMBER) |
Definition at line 1114 of file COOLRates.py.
| COOLRates.RUNNUMBER |
Definition at line 1120 of file COOLRates.py.
| COOLRates.timeConverter = createTimeConverter(runLbRanges) |
Definition at line 1136 of file COOLRates.py.
| COOLRates.TIMERANGE |
Definition at line 1116 of file COOLRates.py.
| COOLRates.type |
Definition at line 31 of file COOLRates.py.