![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, line, basedir) | |
normalize (self, name=None, root_version=61408) | |
checksum (self) | |
__repr__ (self) | |
__eq__ (self, other) | |
__le__ (self, other) | |
__lt__ (self, other) | |
__hash__ (self) | |
iov_tuple (self) | |
iov_str (self) | |
Public Attributes | |
revision = revision | |
revision stored in the file | |
module = name.split("/")[1] | |
module name | |
filename = os.path.join(basedir, f"dbstore_{self.module}_rev_{self.revision}.root") | |
filename | |
dict | firstRun = {"exp": iov[0], "run": iov[1]} |
experiment/run of the first run | |
dict | finalRun = {"exp": iov[2], "run": iov[3]} |
experiment/run of the final run | |
payload = None | |
payload id, to be filled later | |
iov = None | |
iov id, to be filled later | |
Private Attributes | |
__checksum = None | |
variable for checksum, calculated on first access | |
tuple | __id = (self.module,) + tuple(iov) |
object to uniquely identify this entry (payload + iov) | |
Class to keep information about an entry in the testing payloads storage file
Definition at line 25 of file testing_payloads.py.
__init__ | ( | self, | |
line, | |||
basedir ) |
Create new entry from line in testing payloads storage file
Definition at line 28 of file testing_payloads.py.
__eq__ | ( | self, | |
other ) |
Compare to other entries, only consider package, module and iov for equality
Definition at line 84 of file testing_payloads.py.
__hash__ | ( | self | ) |
Provide hash function to be able to create a set
Definition at line 96 of file testing_payloads.py.
__le__ | ( | self, | |
other ) |
Compare to other entries, only consider package, module and iov for equality
Definition at line 88 of file testing_payloads.py.
__lt__ | ( | self, | |
other ) |
Compare to other entries, only consider package, module and iov for equality
Definition at line 92 of file testing_payloads.py.
__repr__ | ( | self | ) |
Convert to useful string representation
Definition at line 80 of file testing_payloads.py.
checksum | ( | self | ) |
Return checksum, calculated on first access
Definition at line 74 of file testing_payloads.py.
iov_str | ( | self | ) |
String representation of IoV
Definition at line 105 of file testing_payloads.py.
iov_tuple | ( | self | ) |
Return a tuple with the valid exp,run range
Definition at line 101 of file testing_payloads.py.
normalize | ( | self, | |
name = None, | |||
root_version = 61408 ) |
Normalize the root file to have the same checksum for the same content
Definition at line 68 of file testing_payloads.py.
|
private |
variable for checksum, calculated on first access
Definition at line 60 of file testing_payloads.py.
|
private |
object to uniquely identify this entry (payload + iov)
Definition at line 62 of file testing_payloads.py.
filename = os.path.join(basedir, f"dbstore_{self.module}_rev_{self.revision}.root") |
filename
Definition at line 54 of file testing_payloads.py.
experiment/run of the final run
Definition at line 58 of file testing_payloads.py.
experiment/run of the first run
Definition at line 56 of file testing_payloads.py.
iov = None |
iov id, to be filled later
Definition at line 66 of file testing_payloads.py.
module = name.split("/")[1] |
module name
Definition at line 41 of file testing_payloads.py.
payload = None |
payload id, to be filled later
Definition at line 64 of file testing_payloads.py.
revision = revision |
revision stored in the file
Definition at line 37 of file testing_payloads.py.