ATLAS Offline Software
|
Classes | |
class | AtlCoolTool |
class | Info |
class | InfoList |
Functions | |
def | expandConnectString (connectString) |
def | connect (connectString, verbose=False) |
def | byteSize (spec) |
Variables | |
dictionary | typeSizes |
def python.AtlCoolTool.byteSize | ( | spec | ) |
Determines the (effective) byte size of an AttributeListSpecification. This does not account for any extra size for the specification's own structure but just the byte sizes of the attributes. In other words an AttributeListSpecification with a single 'int' fields will report a byte size of 4.
Definition at line 112 of file AtlCoolTool.py.
def python.AtlCoolTool.connect | ( | connectString, | |
verbose = False |
|||
) |
Connects to the given database and returns a tuple database, connectString where 'database' is a cool.IDatabase object and 'connectString' is the possibly expanded connectString that 'database' is based on. This expansion can occur when a connect string without a containing '://' is specified. In this case the string is interpreted as a sqlite file name and rewritten to a RAL compliant format: TEST.db --> 'sqlite://;schema=TEST.db;dbname=TEST' TEST --> 'sqlite://;schema=TEST;dbname=TEST' The filename can have a '.db' suffix which will be stripped for the 'dbname' part of the connect string. Other suffixes will not be recognized. Note that the COOL database inside the file must have the same name as the base of the filename for this shortcut to work. Storing a COOL database MYTEST in a file mytest.db will not work. Set verbose to True to obtain an error print out.
Definition at line 45 of file AtlCoolTool.py.
def python.AtlCoolTool.expandConnectString | ( | connectString | ) |
Expands a connect string. This expansion can occur when a connect string without a containing '://' or not in the format 'alias/DBNAME' is specified. In this case the string is interpreted as a sqlite file name and rewritten to a COOL compliant format: TEST.db --> 'sqlite://;schema=TEST.db;dbname=TEST' TEST --> 'sqlite://;schema=TEST;dbname=TEST' The filename can have a '.db' suffix which will be stripped for the 'dbname' part of the connect string. Other suffixes will not be recognized. Actually for ATLAS, a simple string without / is interpreted as a database instance name within the SQLite file mycool.db, for consistency with AtlCoolLib behavior
Definition at line 12 of file AtlCoolTool.py.
dictionary python.AtlCoolTool.typeSizes |
Definition at line 94 of file AtlCoolTool.py.