◆ __init__()
def python.ConditionsContainerAccess.ConditionsContainerAccess.__init__ |
( |
|
self, |
|
|
|
theApp |
|
) |
| |
Definition at line 80 of file ConditionsContainerAccess.py.
82 pers = theApp.service(
'EventPersistencySvc')
85 iConverter = InterfaceRDS(
'IConverter')
86 self.icnv = iConverter.cast(pers)
89 iAddrCreator = InterfaceRDS(
'IAddressCreator')
90 self.iaddr = iAddrCreator.cast(pers)
93 self.dbCast = PyLCGDict.makeClass(
'DataBucketCast')
◆ getMultiCondContainer()
def python.ConditionsContainerAccess.ConditionsContainerAccess.getMultiCondContainer |
( |
|
self, |
|
|
|
channels, |
|
|
|
attrListColl, |
|
|
|
iovs |
|
) |
| |
Definition at line 142 of file ConditionsContainerAccess.py.
142 def getMultiCondContainer(self, channels, attrListColl, iovs) :
151 print(
"Channels, IOV, and string addresses")
153 for chan
in channels :
155 print(
"added chan/iov: ", chan, iov.iovPrint())
163 strAddress = self.header
166 print(
"Create IOpaqueAddress pointer")
167 ioa = PyLCGDict.libPyROOT.MakeNullPointer(
'GenericAddress')
170 print(
"Create DataBucketBase pointer")
171 dbb = PyLCGDict.libPyROOT.MakeNullPointer(
'DataBucketBase')
174 print(
"Create IOpaqueAddress for address list")
175 sc = self.iaddr.createAddress( 0, 0, strAddress, ioa )
176 print(
"Status code: ", sc)
179 CondAttrListCollAddress = PyLCGDict.makeClass(
'CondAttrListCollAddress')
181 collAddr.setAttrListColl(attrListColl)
185 print(
"Retrieve data object for IOA")
186 sc = self.icnv.createObj(collAddr, dbb)
187 print(
"Status code: ", sc)
188 if sc.isFailure():
raise RuntimeError(
"Cannot read object")
191 print(
"cast data object to correct type: ",self.typeName)
192 result = PyLCGDict.libPyROOT.MakeNullPointer(self.type)
193 self.dbCast.castObject(self.typeName, dbb, result)
◆ getSingleCondContainer()
def python.ConditionsContainerAccess.ConditionsContainerAccess.getSingleCondContainer |
( |
|
self | ) |
|
Definition at line 123 of file ConditionsContainerAccess.py.
123 def getSingleCondContainer(self) :
125 ioa = PyLCGDict.libPyROOT.MakeNullPointer(
'IOpaqueAddress')
128 dbb = PyLCGDict.libPyROOT.MakeNullPointer(
'DataBucketBase')
131 self.iaddr.createAddress( 0, 0, self.header, ioa )
134 self.icnv.createObj(ioa, dbb)
137 result = PyLCGDict.libPyROOT.MakeNullPointer(self.type)
138 self.dbCast.castObject(self.typeName, dbb, result)
◆ pyroot_typedef_bug_workaround()
def python.ConditionsContainerAccess.ConditionsContainerAccess.pyroot_typedef_bug_workaround |
( |
|
self | ) |
|
Definition at line 95 of file ConditionsContainerAccess.py.
95 def pyroot_typedef_bug_workaround(self):
101 del libPyROOT.const_iterator
102 except AttributeError:
106 del libPyROOT.iterator
107 except AttributeError:
◆ setDescription()
def python.ConditionsContainerAccess.ConditionsContainerAccess.setDescription |
( |
|
self, |
|
|
|
descr |
|
) |
| |
Definition at line 111 of file ConditionsContainerAccess.py.
111 def setDescription(self, descr) :
114 decoder = DescriptionDecoder(descr)
115 self.typeName = decoder.extract(
'<typeName>',
'</typeName>')
116 self.type = PyLCGDict.makeClass(self.typeName)
118 self.header = decoder.extract(
'<addrHeader>',
'</addrHeader>')
119 self.header +=
'POOLContainer_CondAttrListCollection][CLID=x'
121 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: