ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.AtlCoolSchemaLib.coolSchema Class Reference
Collaboration diagram for python.AtlCoolSchemaLib.coolSchema:

Public Member Functions

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

Private Attributes

 _schema
 
 _logic
 
 _detector
 
 _instance
 
 _extra
 

Detailed Description

Definition at line 7 of file AtlCoolSchemaLib.py.

Constructor & Destructor Documentation

◆ __init__()

def 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()

def 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()

def 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 

◆ logical()

def 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()

def 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 

◆ schema()

def 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
private

Definition at line 16 of file AtlCoolSchemaLib.py.

◆ _extra

python.AtlCoolSchemaLib.coolSchema._extra
private

Definition at line 18 of file AtlCoolSchemaLib.py.

◆ _instance

python.AtlCoolSchemaLib.coolSchema._instance
private

Definition at line 17 of file AtlCoolSchemaLib.py.

◆ _logic

python.AtlCoolSchemaLib.coolSchema._logic
private

Definition at line 15 of file AtlCoolSchemaLib.py.

◆ _schema

python.AtlCoolSchemaLib.coolSchema._schema
private

Definition at line 14 of file AtlCoolSchemaLib.py.


The documentation for this class was generated from the following file:
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
offline
CheckTagAssociation.schema
schema
Definition: CheckTagAssociation.py:22
instance
std::map< std::string, double > instance
Definition: Run_To_Get_Tags.h:8
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18