![]() |
ATLAS Offline Software
|
Functions | |
| _getFileLocalOrPath (filename, pathenv) | |
| _getConnectionServicesForAlias (alias) | |
| _readAuthentication () | |
| _getConnectionParameters (connection) | |
| interpretConnection (connection, debug=False, resolveAlias=True) | |
| getTriggerDBCursor (connection) | |
| _get_sqlite_cursor (filename) | |
| _get_oracle_cursor (tns, user, passwd="") | |
| _get_mysql_cursor (host, db, user, passwd="") | |
| getUsedTables (output, condition, schemaname, tables) | |
| isRun2 (cursor, schemaname) | |
| executeQuery (cursor, output, condition, schemaname, tables, bindvars=()) | |
| getAlgorithmsForMenu (connection, smk) | |
| getAlgorithmsForMenuRun2 (connection, smk) | |
| getPropertyFromDB (connection, smk, component, parameter) | |
| getMenuNameFromDB (connection, hltprescalekey) | |
| getKeysFromName (connection, name, MCOnly=False) | |
| getKeysFromNameRelease (connection, name, release, l1only) | |
| getChainsAndStreams (connection, smk) | |
| getChains (connection, smk) | |
| getChainsWithLowerChainNames (connection, smk) | |
| getStreams (connection, smk) | |
| getL1Items (connection, smk) | |
| getBunchGroupContent (connection, bgsk) | |
| getL1Prescales (connection, l1prescalekey) | |
| getPrescaleFromCut (cut) | |
| queryHLTPrescaleTable (connection, psk) | |
| getHLTPrescales (connection, psk) | |
| getExpressStreamPrescales (connection, psk) | |
| getHLTPrescalesRun2 (connection, psk, smk) | |
| getExpressStreamPrescalesRun2 (connection, psk, smk) | |
| getReRunPrescalesRun2 (connection, psk, smk) | |
| queryHLTPrescaleTableRun2 (connection, psk, smk) | |
| getHLTPrescalesFromSMK (connection, smk) | |
| test () | |
| test1 () | |
| test2 () | |
Variables | |
| log = logging.getLogger( "TrigConfigSvcUtils.py" ) | |
| authDict = None | |
|
protected |
Definition at line 271 of file TrigConfigSvcUtils.py.
|
protected |
Definition at line 261 of file TrigConfigSvcUtils.py.
|
protected |
Definition at line 255 of file TrigConfigSvcUtils.py.
|
protected |
Definition at line 81 of file TrigConfigSvcUtils.py.
|
protected |
Definition at line 36 of file TrigConfigSvcUtils.py.
|
protected |
looks for filename in local directory and then in all paths specified in environment variable 'pathenv' returns path/filename if existing, otherwise None
Definition at line 19 of file TrigConfigSvcUtils.py.
|
protected |
read authentication.xml, first from local directory, then from all paths specified in CORAL_AUTH_PATH returns dictionary d with d[connection] -> (user,pw)
Definition at line 55 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.executeQuery | ( | cursor, | |
| output, | |||
| condition, | |||
| schemaname, | |||
| tables, | |||
| bindvars = () ) |
Definition at line 301 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getAlgorithmsForMenu | ( | connection, | |
| smk ) |
Definition at line 319 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getAlgorithmsForMenuRun2 | ( | connection, | |
| smk ) |
Definition at line 360 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getBunchGroupContent | ( | connection, | |
| bgsk ) |
Definition at line 719 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getChains | ( | connection, | |
| smk ) |
Definition at line 592 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getChainsAndStreams | ( | connection, | |
| smk ) |
Definition at line 586 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getChainsWithLowerChainNames | ( | connection, | |
| smk ) |
Definition at line 630 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getExpressStreamPrescales | ( | connection, | |
| psk ) |
returns the express stream prescales for a given HLT prescale key @connection - connection string, e.g. TRIGGERDB @psk - HLT prescale key @return (ps name, [chainId,prescale),...])
Definition at line 820 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getExpressStreamPrescalesRun2 | ( | connection, | |
| psk, | |||
| smk ) |
returns the express stream prescales for a given HLT prescale key @connection - connection string, e.g. TRIGGERDB @psk - HLT prescale key @smk - Supermaster key @return (ps name, [chainId,prescale),...])
Definition at line 850 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getHLTPrescales | ( | connection, | |
| psk ) |
returns set name, prescale and passthrough values for a
given HLT prescale key
@connection - connection string, e.g. TRIGGERDB
@psk - HLT prescale key
@return (ps name, [('L2/EF',chainId,prescale,pass-through),...])
Definition at line 806 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getHLTPrescalesFromSMK | ( | connection, | |
| smk ) |
Definition at line 924 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getHLTPrescalesRun2 | ( | connection, | |
| psk, | |||
| smk ) |
returns set name, prescale and passthrough
values for a given HLT prescale key
@connection - connection string, e.g. TRIGGERDB
@psk - HLT prescale key
@smk - Supermaster key
@return (ps name, [('L2/EF',chainId,prescale,pass-through),...])
Definition at line 834 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getKeysFromName | ( | connection, | |
| name, | |||
| MCOnly = False ) |
Definition at line 461 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getKeysFromNameRelease | ( | connection, | |
| name, | |||
| release, | |||
| l1only ) |
Definition at line 474 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getL1Items | ( | connection, | |
| smk ) |
Definition at line 696 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getL1Prescales | ( | connection, | |
| l1prescalekey ) |
Definition at line 744 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getMenuNameFromDB | ( | connection, | |
| hltprescalekey ) |
Definition at line 435 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getPrescaleFromCut | ( | cut | ) |
Convert (run-2) prescale cuts into prescale value
Definition at line 763 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getPropertyFromDB | ( | connection, | |
| smk, | |||
| component, | |||
| parameter ) |
Get property value from DB. smk can be a single SMK or a list/tuple of SMKs. SQL wildcards (%) can be used in both component and parameter names. Return [(SMK,Component,Parameter,Value,Level)]
Definition at line 396 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getReRunPrescalesRun2 | ( | connection, | |
| psk, | |||
| smk ) |
returns the express stream prescales for a given HLT prescale key @connection - connection string, e.g. TRIGGERDB @psk - HLT prescale key @smk - Supermaster key @return (ps name, [chainId,prescale),...])
Definition at line 867 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getStreams | ( | connection, | |
| smk ) |
Definition at line 668 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getTriggerDBCursor | ( | connection | ) |
Definition at line 229 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.getUsedTables | ( | output, | |
| condition, | |||
| schemaname, | |||
| tables ) |
Definition at line 280 of file TrigConfigSvcUtils.py.
connection needs to be of the following format (this is also the order of checking) <ALIAS> -- any string without a colon ':' will be checked for in the dblookup.xml file type:<detail> -- no dblookup will be used, type has to be oracle, mysql, or sqlite_file sqlite_file:filename.db -- an sqlite file, no authentication needed, will be opened in read-only mode oracle://ATLR/ATLAS_CONF_TRIGGER_V2 -- a service description without user and password, requires lookup in authentication.xml oracle://ATLR/ATLAS_CONF_TRIGGER_V2;username=ATLAS_CONF_TRIGGER_V2_R;password=<...> -- a service description with user and password
Definition at line 139 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.isRun2 | ( | cursor, | |
| schemaname ) |
Definition at line 290 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.queryHLTPrescaleTable | ( | connection, | |
| psk ) |
returns content of prescale set table and prescale table for a
given HLT prescale key
@connection - connection string, e.g. TRIGGERDB
@psk - HLT prescale key
@return (ps name, [('L2/EF/express',chainId,prescale,pass-through),...])
In case of 'express', the express stream prescale is returned in the position of the pass-through
Definition at line 769 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.queryHLTPrescaleTableRun2 | ( | connection, | |
| psk, | |||
| smk ) |
Definition at line 884 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.test | ( | ) |
Definition at line 946 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.test1 | ( | ) |
Definition at line 982 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.test2 | ( | ) |
Definition at line 985 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.authDict = None |
Definition at line 79 of file TrigConfigSvcUtils.py.
| python.TrigConfigSvcUtils.log = logging.getLogger( "TrigConfigSvcUtils.py" ) |
Definition at line 11 of file TrigConfigSvcUtils.py.