![]() |
![]() |
Functions | |
def | dasQuery |
def | dasRunQueryToDict |
def | day |
def | daysAgo |
def | Func_CopyWBMInfo |
Func_CopyWBMInfo(str_name) More... | |
def | Func_FillInfoDBS |
Func_FillInfoDBS(str_dbsInstance) More... | |
def | Func_FillInfoHlt |
Func_FillInfoHlt() More... | |
def | Func_FillInfoMagnetHistory |
Func_FillInfoMagnetHistory() More... | |
def | Func_FillInfoRunRegistry |
Func_FillInfoRunRegistry() More... | |
def | Func_FillInfoRunSummary |
Func_FillInfoRunSummary() More... | |
def | Func_GetHtmlTags |
FUNCTIONS. More... | |
def | Func_GetHtmlTagValue |
Func_GetHtmlTagValue(str_tag, str_text) More... | |
def | Func_GetHtmlTagValueAttr |
Func_GetHtmlTagValueAttr(str_tag, str_text) More... | |
def | Func_GetHtmlTagValues |
Func_GetHtmlTagValues(str_text) More... | |
def | Func_GetWBMInfo |
Func_GetWBMInfo(str_name, str_path) More... | |
def | Func_MakeShellWord |
Func_MakeShellWord(str_python) More... | |
def | getFilesForRun |
def | getRunsForDate |
def | getRunsNewer |
def | runGetDatasetsAvailable |
def | today |
Variables | |
bool_hlt = False | |
tuple | bool_runRegistry = Func_FillInfoRunRegistry() |
dictionary | Dict_dbsDatasets = {} |
dictionary | DICT_keysRunSummary = {} |
dictionary | DICT_keysRunSummaryTrigger = {} |
dictionary | Dict_maxLenDbsDatasets = {} |
dictionary | Dict_runRegistry = {} |
dictionary | DICT_tagsRunRegistry = {} |
dictionary | Dict_wbmRunSummary = {} |
dictionary | DictDict_dbsDatasets = {} |
dictionary | DictDict_dbsEvents = {} |
float | Float_magneticField = -999.0 |
tuple | int_length = len(str_print) |
int | INT_offset = 8 |
list | LSTR_dbsInstances |
list | Lstr_hltPaths = [] |
string | STR_headDatasets = 'datasets' |
string | STR_headFiles = 'available data files' |
string | STR_htlConfig = 'HLT Config ID' |
string | STR_p5 = 'cmsusr0.cern.ch' |
tuple | Str_passwd = getpass.getpass('> getRunInfo.py > '+Str_userID+'@'+STR_p5+'\'s password: ') |
string | str_print = '> getRunInfo.py > ' |
list | Str_run = sys.argv[1] |
string | STR_runEnd = 'STOP_TIME' |
string | STR_runStart = 'START_TIME' |
string | STR_SiStrip = 'SIST' |
tuple | Str_userID = getpass.getuser() |
MAIN PROGRAM. More... | |
string | STR_wwwDBSData = 'dbs_discovery/getData' |
string | STR_wwwWBM = 'http://cmswbm/cmsdb/servlet' |
tuple | TD_shiftUTC = datetime.timedelta(hours = 2) |
def getRunInfo.dasQuery | ( | queryString, | |
entryTitle | |||
) |
Definition at line 74 of file getRunInfo.py.
Referenced by dasRunQueryToDict(), getFilesForRun(), and runGetDatasetsAvailable().
def getRunInfo.dasRunQueryToDict | ( | querystring | ) |
Definition at line 66 of file getRunInfo.py.
References dasQuery().
Referenced by getRunsForDate(), and getRunsNewer().
def getRunInfo.day | ( | string | ) |
Definition at line 11 of file getRunInfo.py.
Referenced by RPCRunIOV.filterIMON(), CSCTFConfigOnlineProd.newObject(), RunSummaryRead.readData(), L1TriggerScalerRead.readData(), SiStripDetVOffBuilder.readLastValueFromFile(), RPCRunIOV.toUNIX(), and RPCFw.UTtoT().
def getRunInfo.daysAgo | ( | n | ) |
Definition at line 7 of file getRunInfo.py.
References today().
def getRunInfo.Func_CopyWBMInfo | ( | str_name | ) |
Func_CopyWBMInfo(str_name)
Logs in on cmsusr0 and copies file from there
Func_CopyWBMInfo(str_name) Logs in on cmsusr0 and copies file from there
Definition at line 198 of file getRunInfo.py.
Referenced by Func_FillInfoHlt(), Func_FillInfoMagnetHistory(), and Func_FillInfoRunSummary().
def getRunInfo.Func_FillInfoDBS | ( | str_dbsInstance | ) |
Func_FillInfoDBS(str_dbsInstance)
Retrieves run info from DBS and fills it into containers
Func_FillInfoDBS(str_dbsInstance) Retrieves run info from DBS and fills it into containers
Definition at line 343 of file getRunInfo.py.
References spr.find(), Func_GetHtmlTagValue(), and split.
def getRunInfo.Func_FillInfoHlt | ( | ) |
Retrieves run info from Hlt and fills it into containers
Func_FillInfoHlt(): Retrieves run info from Hlt and fills it into containers
Definition at line 319 of file getRunInfo.py.
References mergeVDriftHistosByStation.file, Func_CopyWBMInfo(), Func_GetWBMInfo(), Func_MakeShellWord(), and split.
def getRunInfo.Func_FillInfoMagnetHistory | ( | str_timeStart, | |
str_timeEnd | |||
) |
Retrieves run info from MagnetHistory and fills it into containers
Func_FillInfoMagnetHistory(): Retrieves run info from MagnetHistory and fills it into containers
Definition at line 300 of file getRunInfo.py.
References mergeVDriftHistosByStation.file, Func_CopyWBMInfo(), Func_GetWBMInfo(), Func_MakeShellWord(), and split.
def getRunInfo.Func_FillInfoRunRegistry | ( | ) |
Retrieves run info from RunRegistry and fills it into containers
Func_FillInfoRunRegistry(): Retrieves run info from RunRegistry and fills it into containers
Definition at line 222 of file getRunInfo.py.
References spr.find(), Func_GetHtmlTags(), Func_GetHtmlTagValue(), and split.
def getRunInfo.Func_FillInfoRunSummary | ( | ) |
Retrieves run info from RunSummary and fills it into containers
Func_FillInfoRunSummary(): Retrieves run info from RunSummary and fills it into containers
Definition at line 253 of file getRunInfo.py.
References mergeVDriftHistosByStation.file, Func_CopyWBMInfo(), Func_GetWBMInfo(), Func_MakeShellWord(), and split.
def getRunInfo.Func_GetHtmlTags | ( | str_text | ) |
FUNCTIONS.
Func_GetHtmlTags(str_text)
Gets HTML tags from a string
Func_GetHtmlTags(str_text): Gets HTML tags from a string
Definition at line 108 of file getRunInfo.py.
References split.
Referenced by Func_FillInfoRunRegistry().
def getRunInfo.Func_GetHtmlTagValue | ( | str_tag, | |
str_text, | |||
int_index = 1 |
|||
) |
Func_GetHtmlTagValue(str_tag, str_text)
Gets the value of the n-th oocurence a given HTML tag from a string
Func_GetHtmlTagValue(str_tag, str_text): Gets the value of the n-th oocurence a given HTML tag from a string
Definition at line 128 of file getRunInfo.py.
References split.
Referenced by Func_FillInfoDBS(), and Func_FillInfoRunRegistry().
def getRunInfo.Func_GetHtmlTagValueAttr | ( | str_value, | |
str_text | |||
) |
Func_GetHtmlTagValueAttr(str_tag, str_text)
Gets the (last) attribute of a given HTML tag value from a string
Func_GetHtmlTagValueAttr(str_value, str_text): Gets the (last) attributes of a given HTML tag value from a string
Definition at line 156 of file getRunInfo.py.
References split.
def getRunInfo.Func_GetHtmlTagValues | ( | str_text | ) |
Func_GetHtmlTagValues(str_text)
Gets HTML tag values from a string
Func_GetHtmlTagValues(str_text): Gets HTML tag values from a string
Definition at line 143 of file getRunInfo.py.
def getRunInfo.Func_GetWBMInfo | ( | str_name, | |
str_path | |||
) |
Func_GetWBMInfo(str_name, str_path)
Logs in on cmsusr0, retrieves WBM information and stores it locally
Func_GetWBMInfo(str_name, str_path) Logs in on cmsusr0, retrieves WBM information and stores it locally
Definition at line 174 of file getRunInfo.py.
Referenced by Func_FillInfoHlt(), Func_FillInfoMagnetHistory(), and Func_FillInfoRunSummary().
def getRunInfo.Func_MakeShellWord | ( | str_python | ) |
Func_MakeShellWord(str_python)
Adds shell escape charakters to Python strings
Func_MakeShellWord(str_python) Adds shell escape charakters to Python strings
Definition at line 165 of file getRunInfo.py.
References python.rootplot.root2matplotlib.replace().
Referenced by Func_FillInfoHlt(), Func_FillInfoMagnetHistory(), and Func_FillInfoRunSummary().
def getRunInfo.getFilesForRun | ( | run, | |
dataset | |||
) |
run : int dataset : string dataset to find files in, e.g. /ExpressCosmics/Run2015A-Express-v1/FEVT /ExpressPhysics/Run2015A-Express-v1/FEVT
Definition at line 47 of file getRunInfo.py.
References dasQuery(), and alcaDQMUpload.encode().
def getRunInfo.getRunsForDate | ( | date, | |
minlumis = 10 |
|||
) |
date: expected to be datetime.datetime object
Definition at line 14 of file getRunInfo.py.
References dasRunQueryToDict().
def getRunInfo.getRunsNewer | ( | run, | |
minlumis = 10 , |
|||
source = 'RunRegistry' |
|||
) |
run: run number int source: Either RunRegistry or DAS
Definition at line 22 of file getRunInfo.py.
References dasRunQueryToDict(), and rrClient.getRunsNewer().
def getRunInfo.runGetDatasetsAvailable | ( | run | ) |
run : int Will return a list of datasets in DAS that have the run in them
Definition at line 33 of file getRunInfo.py.
References dasQuery(), and alcaDQMUpload.encode().
def getRunInfo.today | ( | ) |
Definition at line 4 of file getRunInfo.py.
Referenced by daysAgo().
tuple getRunInfo.bool_hlt = False |
Definition at line 436 of file getRunInfo.py.
tuple getRunInfo.bool_runRegistry = Func_FillInfoRunRegistry() |
Definition at line 393 of file getRunInfo.py.
dictionary getRunInfo.Dict_dbsDatasets = {} |
Definition at line 100 of file getRunInfo.py.
dictionary getRunInfo.DICT_keysRunSummary = {} |
Definition at line 59 of file getRunInfo.py.
dictionary getRunInfo.DICT_keysRunSummaryTrigger = {} |
Definition at line 74 of file getRunInfo.py.
dictionary getRunInfo.Dict_maxLenDbsDatasets = {} |
Definition at line 101 of file getRunInfo.py.
dictionary getRunInfo.Dict_runRegistry = {} |
Definition at line 94 of file getRunInfo.py.
dictionary getRunInfo.DICT_tagsRunRegistry = {} |
Definition at line 35 of file getRunInfo.py.
dictionary getRunInfo.Dict_wbmRunSummary = {} |
Definition at line 96 of file getRunInfo.py.
dictionary getRunInfo.DictDict_dbsDatasets = {} |
Definition at line 98 of file getRunInfo.py.
dictionary getRunInfo.DictDict_dbsEvents = {} |
Definition at line 99 of file getRunInfo.py.
tuple getRunInfo.Float_magneticField = -999.0 |
Definition at line 95 of file getRunInfo.py.
tuple getRunInfo.int_length = len(str_print) |
Definition at line 474 of file getRunInfo.py.
int getRunInfo.INT_offset = 8 |
Definition at line 25 of file getRunInfo.py.
list getRunInfo.LSTR_dbsInstances |
Definition at line 31 of file getRunInfo.py.
list getRunInfo.Lstr_hltPaths = [] |
Definition at line 97 of file getRunInfo.py.
string getRunInfo.STR_headDatasets = 'datasets' |
Definition at line 33 of file getRunInfo.py.
string getRunInfo.STR_headFiles = 'available data files' |
Definition at line 34 of file getRunInfo.py.
string getRunInfo.STR_htlConfig = 'HLT Config ID' |
Definition at line 56 of file getRunInfo.py.
string getRunInfo.STR_p5 = 'cmsusr0.cern.ch' |
Definition at line 27 of file getRunInfo.py.
tuple getRunInfo.Str_passwd = getpass.getpass('> getRunInfo.py > '+Str_userID+'@'+STR_p5+'\'s password: ') |
Definition at line 389 of file getRunInfo.py.
string getRunInfo.str_print = '> getRunInfo.py > ' |
Definition at line 470 of file getRunInfo.py.
list getRunInfo.Str_run = sys.argv[1] |
Definition at line 93 of file getRunInfo.py.
string getRunInfo.STR_runEnd = 'STOP_TIME' |
Definition at line 58 of file getRunInfo.py.
string getRunInfo.STR_runStart = 'START_TIME' |
Definition at line 57 of file getRunInfo.py.
string getRunInfo.STR_SiStrip = 'SIST' |
Definition at line 29 of file getRunInfo.py.
tuple getRunInfo.Str_userID = getpass.getuser() |
MAIN PROGRAM.
Definition at line 388 of file getRunInfo.py.
string getRunInfo.STR_wwwDBSData = 'dbs_discovery/getData' |
Definition at line 30 of file getRunInfo.py.
string getRunInfo.STR_wwwWBM = 'http://cmswbm/cmsdb/servlet' |
Definition at line 28 of file getRunInfo.py.
tuple getRunInfo.TD_shiftUTC = datetime.timedelta(hours = 2) |
Definition at line 24 of file getRunInfo.py.