Classes | |
class | _Col |
class | BoostRunMap |
class | Connection |
class | DbRef |
class | GlobalTag |
class | GlobalTagMap |
class | IOV |
class | Payload |
class | RunInfo |
class | Synchronization |
class | Tag |
class | TagAuthorization |
class | TagLog |
class | TagMetadata |
class | TimeType |
Functions | |
def | _exists |
def | _getCMSFrontierConnectionString |
def | _getCMSSQLAlchemyConnectionString |
def | _inserted_before |
def | connect |
def | fq_col |
def | fq_name |
def | getPayload |
def | getSchema |
def | getSessionOnMasterDB |
def | hash |
def | listObject |
def | make_dbtype |
def | make_url |
def | oracle_connection_string |
Variables | |
string | __author__ = 'Miguel Ojeda' |
string | __copyright__ = 'Copyright 2013, CERN' |
list | __credits__ = ['Giacomo Govi', 'Miguel Ojeda', 'Andreas Pfeiffer'] |
string | __email__ = 'giacomo.govi@cern.ch' |
string | __license__ = 'Unknown' |
string | __maintainer__ = 'Giacomo Govi' |
tuple | _Base = sqlalchemy.ext.declarative.declarative_base() |
string | ARC = 'FrontierArc' |
string | authPathEnvVar = 'COND_AUTH_PATH' |
string | contact_help = 'If you need assistance, please write an email to %s and %s. If you need immediate/urgent assistance, you can call the Offline DB expert on call (%s).' |
string | database_help |
dictionary | db_models = {} |
string | dbkey_filename = 'db.key' |
tuple | dbkey_folder = os.path.join('.cms_cond',dbkey_filename) |
string | dbreader_user_name = 'cms_cond_general_r' |
string | dbuser_name = 'cms_conditions' |
string | dbwriter_user_name = 'cms_cond_general_w' |
int | description_length = 4000 |
string | DEV = 'FrontierPrep' |
string | empty_label = '-' |
tuple | hash_length = len(hash('')) |
string | INT = 'FrontierInt' |
tuple | logger = logging.getLogger(__name__) |
int | name_length = 100 |
string | offline_db_experts_email = 'cms-offlinedb-exp@cern.ch' |
string | offline_db_experts_phone = '+41 22 76 70817, or 70817 from CERN; check https://twiki.cern.ch/twiki/bin/viewauth/CMS/DBShifterHelpPage if it does not work; availability depends on the state of the LHC' |
string | ONLINEORAINT = 'cmsintr_lb' |
string | ONLINEORAPRO = 'cms_orcon_prod' |
string | ORAARC = 'cmsarc_lb' |
string | ORADEV = 'cms_orcoff_prep' |
string | ORAINT = 'cms_orcoff_int' |
string | ORAPRO = 'cms_orcon_adg' |
string | PRO = 'PromptProd' |
string | schema_name = 'cms_conditions' |
tuple | synch_list = list(x.value for x in list(Synchronization)) |
string | web_experts_email = 'cms-cond-dev@cern.ch' |
CMS Conditions DB Python library.
|
private |
Definition at line 609 of file conddblib.py.
References submitPVResolutionJobs.count, and alcazmumu_cfi.filter.
Referenced by listObject().
|
private |
Definition at line 470 of file conddblib.py.
References communicate(), and digitizers_cfi.strip.
Referenced by _getCMSSQLAlchemyConnectionString().
|
private |
Definition at line 474 of file conddblib.py.
References _getCMSFrontierConnectionString().
Referenced by make_url().
|
private |
To be used inside filter().
Definition at line 620 of file conddblib.py.
Referenced by listObject().
Returns a Connection instance to the CMS Condition DB. See database_help for the description of the database parameter. The verbosity level is as follows: 0 = No output (default). 1 = SQL statements issued, including their parameters. 2 = In addition, results of the queries (all rows and the column headers).
Definition at line 533 of file conddblib.py.
References oracle_connection_string(), and str.
Referenced by helperFunctions.getTagsMap().
def conddblib.fq_col | ( | schema, | |
table, | |||
column | |||
) |
def conddblib.fq_name | ( | schema_name, | |
table_name | |||
) |
Definition at line 166 of file conddblib.py.
def conddblib.getPayload | ( | session, | |
hash | |||
) |
Definition at line 672 of file conddblib.py.
References alcazmumu_cfi.filter.
def conddblib.getSchema | ( | tp | ) |
def conddblib.getSessionOnMasterDB | ( | session1, | |
session2 | |||
) |
Definition at line 448 of file conddblib.py.
References make_url().
def conddblib.hash | ( | data | ) |
Definition at line 52 of file conddblib.py.
def conddblib.listObject | ( | session, | |
name, | |||
snapshot = None |
|||
) |
Definition at line 633 of file conddblib.py.
References _exists(), _inserted_before(), python.cmstools.all(), alcazmumu_cfi.filter, join(), and hitfit.scalar().
def conddblib.make_dbtype | ( | backendName, | |
schemaName, | |||
baseType | |||
) |
Definition at line 190 of file conddblib.py.
References fq_col().
Referenced by conddblib.Connection.get_dbtype().
def conddblib.make_url | ( | database = 'pro' , |
|
read_only = True |
|||
) |
Definition at line 487 of file conddblib.py.
References _getCMSSQLAlchemyConnectionString().
Referenced by getSessionOnMasterDB(), and helperFunctions.getTagsMap().
def conddblib.oracle_connection_string | ( | db_service, | |
db_schema | |||
) |
string conddblib.__author__ = 'Miguel Ojeda' |
Definition at line 4 of file conddblib.py.
string conddblib.__copyright__ = 'Copyright 2013, CERN' |
Definition at line 5 of file conddblib.py.
list conddblib.__credits__ = ['Giacomo Govi', 'Miguel Ojeda', 'Andreas Pfeiffer'] |
Definition at line 6 of file conddblib.py.
string conddblib.__email__ = 'giacomo.govi@cern.ch' |
Definition at line 9 of file conddblib.py.
string conddblib.__license__ = 'Unknown' |
Definition at line 7 of file conddblib.py.
string conddblib.__maintainer__ = 'Giacomo Govi' |
Definition at line 8 of file conddblib.py.
tuple conddblib._Base = sqlalchemy.ext.declarative.declarative_base() |
Definition at line 164 of file conddblib.py.
string conddblib.ARC = 'FrontierArc' |
Definition at line 34 of file conddblib.py.
string conddblib.authPathEnvVar = 'COND_AUTH_PATH' |
Definition at line 28 of file conddblib.py.
string conddblib.contact_help = 'If you need assistance, please write an email to %s and %s. If you need immediate/urgent assistance, you can call the Offline DB expert on call (%s).' |
Definition at line 67 of file conddblib.py.
string conddblib.database_help |
Definition at line 68 of file conddblib.py.
dictionary conddblib.db_models = {} |
Definition at line 172 of file conddblib.py.
string conddblib.dbkey_filename = 'db.key' |
Definition at line 29 of file conddblib.py.
tuple conddblib.dbkey_folder = os.path.join('.cms_cond',dbkey_filename) |
Definition at line 30 of file conddblib.py.
string conddblib.dbreader_user_name = 'cms_cond_general_r' |
Definition at line 23 of file conddblib.py.
string conddblib.dbuser_name = 'cms_conditions' |
Definition at line 22 of file conddblib.py.
string conddblib.dbwriter_user_name = 'cms_cond_general_w' |
Definition at line 24 of file conddblib.py.
int conddblib.description_length = 4000 |
Definition at line 60 of file conddblib.py.
string conddblib.DEV = 'FrontierPrep' |
Definition at line 36 of file conddblib.py.
string conddblib.empty_label = '-' |
Definition at line 57 of file conddblib.py.
tuple conddblib.hash_length = len(hash('')) |
Definition at line 61 of file conddblib.py.
string conddblib.INT = 'FrontierInt' |
Definition at line 35 of file conddblib.py.
tuple conddblib.logger = logging.getLogger(__name__) |
int conddblib.name_length = 100 |
Definition at line 59 of file conddblib.py.
string conddblib.offline_db_experts_email = 'cms-offlinedb-exp@cern.ch' |
Definition at line 64 of file conddblib.py.
string conddblib.offline_db_experts_phone = '+41 22 76 70817, or 70817 from CERN; check https://twiki.cern.ch/twiki/bin/viewauth/CMS/DBShifterHelpPage if it does not work; availability depends on the state of the LHC' |
Definition at line 65 of file conddblib.py.
string conddblib.ONLINEORAINT = 'cmsintr_lb' |
Definition at line 44 of file conddblib.py.
string conddblib.ONLINEORAPRO = 'cms_orcon_prod' |
Definition at line 43 of file conddblib.py.
string conddblib.ORAARC = 'cmsarc_lb' |
Definition at line 39 of file conddblib.py.
string conddblib.ORADEV = 'cms_orcoff_prep' |
Definition at line 42 of file conddblib.py.
string conddblib.ORAINT = 'cms_orcoff_int' |
Definition at line 41 of file conddblib.py.
string conddblib.ORAPRO = 'cms_orcon_adg' |
Definition at line 38 of file conddblib.py.
string conddblib.PRO = 'PromptProd' |
Definition at line 33 of file conddblib.py.
string conddblib.schema_name = 'cms_conditions' |
Definition at line 21 of file conddblib.py.
tuple conddblib.synch_list = list(x.value for x in list(Synchronization)) |
Definition at line 153 of file conddblib.py.
string conddblib.web_experts_email = 'cms-cond-dev@cern.ch' |
Definition at line 63 of file conddblib.py.