ATLAS Offline Software
Loading...
Searching...
No Matches
python.AtlCoolSchemaLib.coolSchema Class Reference
Collaboration diagram for python.AtlCoolSchemaLib.coolSchema:

Public Member Functions

 __init__ (self, schema, instance, extra=0)
 schema (self)
 logical (self)
 instance (self)
 detector (self)
 offline (self)

Protected Attributes

 _schema = schema
 _logic = schema[x1+1:]
 _detector = schema[x2+1:]
 _instance = instance
 _extra = extra

Detailed Description

Definition at line 7 of file AtlCoolSchemaLib.py.

Constructor & Destructor Documentation

◆ __init__()

python.AtlCoolSchemaLib.coolSchema.__init__ ( self,
schema,
instance,
extra = 0 )
initialise from a schema ('ATLAS_COOLONL_INDET')
and instance ('OFLP200')

Definition at line 9 of file AtlCoolSchemaLib.py.

9 def __init__(self,schema,instance,extra=0):
10 """initialise from a schema ('ATLAS_COOLONL_INDET')
11 and instance ('OFLP200')"""
12 x1=schema.index('_')
13 x2=schema.index('_',x1+1)
14 self._schema=schema
15 self._logic=schema[x1+1:]
16 self._detector=schema[x2+1:]
17 self._instance=instance
18 self._extra=extra
19

Member Function Documentation

◆ detector()

python.AtlCoolSchemaLib.coolSchema.detector ( self)

Definition at line 32 of file AtlCoolSchemaLib.py.

32 def detector(self):
33 "Return detector name"
34 return self._detector
35

◆ instance()

python.AtlCoolSchemaLib.coolSchema.instance ( self)

Definition at line 28 of file AtlCoolSchemaLib.py.

28 def instance(self):
29 "Return database instance name"
30 return self._instance
31
std::map< std::string, double > instance

◆ logical()

python.AtlCoolSchemaLib.coolSchema.logical ( self)

Definition at line 24 of file AtlCoolSchemaLib.py.

24 def logical(self):
25 "Return logical (readonly) connection name"
26 return self._logic+'/'+self._instance
27

◆ offline()

python.AtlCoolSchemaLib.coolSchema.offline ( self)

Definition at line 36 of file AtlCoolSchemaLib.py.

36 def offline(self):
37 "Returns true if the connection is to an offline DB"
38 return (self._schema.find('ONL')<0)
39
40
std::string find(const std::string &s)
return a remapped string
Definition hcg.cxx:138

◆ schema()

python.AtlCoolSchemaLib.coolSchema.schema ( self)

Definition at line 20 of file AtlCoolSchemaLib.py.

20 def schema(self):
21 "Return full database schema name"
22 return self._schema
23

Member Data Documentation

◆ _detector

python.AtlCoolSchemaLib.coolSchema._detector = schema[x2+1:]
protected

Definition at line 16 of file AtlCoolSchemaLib.py.

◆ _extra

python.AtlCoolSchemaLib.coolSchema._extra = extra
protected

Definition at line 18 of file AtlCoolSchemaLib.py.

◆ _instance

python.AtlCoolSchemaLib.coolSchema._instance = instance
protected

Definition at line 17 of file AtlCoolSchemaLib.py.

◆ _logic

python.AtlCoolSchemaLib.coolSchema._logic = schema[x1+1:]
protected

Definition at line 15 of file AtlCoolSchemaLib.py.

◆ _schema

python.AtlCoolSchemaLib.coolSchema._schema = schema
protected

Definition at line 14 of file AtlCoolSchemaLib.py.


The documentation for this class was generated from the following file: