◆ __init__()
def python.ConditionsContainerAccess.ConditionsContainerAccess.__init__ |
( |
|
self, |
|
|
|
theApp |
|
) |
| |
Definition at line 79 of file ConditionsContainerAccess.py.
81 pers = theApp.service(
'EventPersistencySvc')
84 iConverter = InterfaceRDS(
'IConverter')
85 self.icnv = iConverter.cast(pers)
88 iAddrCreator = InterfaceRDS(
'IAddressCreator')
89 self.iaddr = iAddrCreator.cast(pers)
92 self.dbCast = PyLCGDict.makeClass(
'DataBucketCast')
◆ getMultiCondContainer()
def python.ConditionsContainerAccess.ConditionsContainerAccess.getMultiCondContainer |
( |
|
self, |
|
|
|
channels, |
|
|
|
attrListColl, |
|
|
|
iovs |
|
) |
| |
Definition at line 141 of file ConditionsContainerAccess.py.
141 def getMultiCondContainer(self, channels, attrListColl, iovs) :
150 print(
"Channels, IOV, and string addresses")
152 for chan
in channels :
154 print(
"added chan/iov: ", chan, iov.iovPrint())
162 strAddress = self.header
165 print(
"Create IOpaqueAddress pointer")
166 ioa = PyLCGDict.libPyROOT.MakeNullPointer(
'GenericAddress')
169 print(
"Create DataBucketBase pointer")
170 dbb = PyLCGDict.libPyROOT.MakeNullPointer(
'DataBucketBase')
173 print(
"Create IOpaqueAddress for address list")
174 sc = self.iaddr.createAddress( 0, 0, strAddress, ioa )
175 print(
"Status code: ", sc)
178 CondAttrListCollAddress = PyLCGDict.makeClass(
'CondAttrListCollAddress')
180 collAddr.setAttrListColl(attrListColl)
184 print(
"Retrieve data object for IOA")
185 sc = self.icnv.createObj(collAddr, dbb)
186 print(
"Status code: ", sc)
187 if sc.isFailure():
raise RuntimeError(
"Cannot read object")
190 print(
"cast data object to correct type: ",self.typeName)
191 result = PyLCGDict.libPyROOT.MakeNullPointer(self.type)
192 self.dbCast.castObject(self.typeName, dbb, result)
◆ getSingleCondContainer()
def python.ConditionsContainerAccess.ConditionsContainerAccess.getSingleCondContainer |
( |
|
self | ) |
|
Definition at line 122 of file ConditionsContainerAccess.py.
122 def getSingleCondContainer(self) :
124 ioa = PyLCGDict.libPyROOT.MakeNullPointer(
'IOpaqueAddress')
127 dbb = PyLCGDict.libPyROOT.MakeNullPointer(
'DataBucketBase')
130 self.iaddr.createAddress( 0, 0, self.header, ioa )
133 self.icnv.createObj(ioa, dbb)
136 result = PyLCGDict.libPyROOT.MakeNullPointer(self.type)
137 self.dbCast.castObject(self.typeName, dbb, result)
◆ pyroot_typedef_bug_workaround()
def python.ConditionsContainerAccess.ConditionsContainerAccess.pyroot_typedef_bug_workaround |
( |
|
self | ) |
|
Definition at line 94 of file ConditionsContainerAccess.py.
94 def pyroot_typedef_bug_workaround(self):
100 del libPyROOT.const_iterator
101 except AttributeError:
105 del libPyROOT.iterator
106 except AttributeError:
◆ setDescription()
def python.ConditionsContainerAccess.ConditionsContainerAccess.setDescription |
( |
|
self, |
|
|
|
descr |
|
) |
| |
Definition at line 110 of file ConditionsContainerAccess.py.
110 def setDescription(self, descr) :
113 decoder = DescriptionDecoder(descr)
114 self.typeName = decoder.extract(
'<typeName>',
'</typeName>')
115 self.type = PyLCGDict.makeClass(self.typeName)
117 self.header = decoder.extract(
'<addrHeader>',
'</addrHeader>')
118 self.header +=
'POOLContainer_CondAttrListCollection][CLID=x'
120 print(
"Type name, type, header ",self.typeName,self.type,self.header)
◆ dbCast
python.ConditionsContainerAccess.ConditionsContainerAccess.dbCast |
◆ descr
python.ConditionsContainerAccess.ConditionsContainerAccess.descr |
◆ header
python.ConditionsContainerAccess.ConditionsContainerAccess.header |
◆ iaddr
python.ConditionsContainerAccess.ConditionsContainerAccess.iaddr |
◆ icnv
python.ConditionsContainerAccess.ConditionsContainerAccess.icnv |
◆ type
python.ConditionsContainerAccess.ConditionsContainerAccess.type |
◆ typeName
python.ConditionsContainerAccess.ConditionsContainerAccess.typeName |
The documentation for this class was generated from the following file: