Definition at line 14 of file dmtest_condwriter.py.
◆ execute()
def dmtest_condwriter.createTestDB.execute |
( |
|
self | ) |
|
Definition at line 28 of file dmtest_condwriter.py.
31 spec = cool.RecordSpecification()
32 spec.extend(
"xint", cool.StorageType.Int32)
33 print (
">== Store object in folder", self.folder)
34 cfolder = AtlCoolLib.ensureFolder(self.db, self.folder, spec,
35 AtlCoolLib.athenaDesc(self.runLumi,
'AthenaAttributeList'),
36 cool.FolderVersioning.MULTI_VERSION)
37 if (cfolder
is None): sys.exit(1)
39 payload = cool.Record(spec)
40 payload[
'xint'] = self.xint
41 print (
'>== Store object with IOV [',self.since,
',',self.until,
'] and tag',self.tag,
'xint',self.xint)
43 if (self.tag==
"HEAD"):
44 cfolder.storeObject(self.since,self.until,payload,0)
46 cfolder.storeObject(self.since,self.until,payload,0,self.tag)
47 print (
">== Storing COOL object succeeded. Current content:")
51 print (
'>== Storing COOL object FAILED')
55 act = AtlCoolTool.AtlCoolTool(self.db)
56 print (act.more(self.folder))
◆ setup()
def dmtest_condwriter.createTestDB.setup |
( |
|
self, |
|
|
|
args |
|
) |
| |
Definition at line 16 of file dmtest_condwriter.py.
19 self.xint=
int(args[1])
20 self.folder=args[2]
if len(args)>2
else '/DMTest/TestAttrList'
◆ usage()
def dmtest_condwriter.createTestDB.usage |
( |
|
self | ) |
|
Define the additional syntax for options
Definition at line 22 of file dmtest_condwriter.py.
23 """ Define the additional syntax for options """
25 print (
'TAG xint [Folder]')
◆ folder
dmtest_condwriter.createTestDB.folder |
◆ tag
dmtest_condwriter.createTestDB.tag |
◆ xint
dmtest_condwriter.createTestDB.xint |
The documentation for this class was generated from the following file: