Definition at line 35 of file AtlRunQueryRun.py.
◆ __init__()
def python.AtlRunQueryRun.DataEntry.__init__ |
( |
|
self, |
|
|
|
iov, |
|
|
|
value, |
|
|
|
reject = False , |
|
|
|
valueForStorage = None |
|
) |
| |
Definition at line 36 of file AtlRunQueryRun.py.
36 def __init__(self, iov, value, reject=False, valueForStorage=None):
38 self.lbrange = (self.iov.startTime.lb, self.iov.endTime.lb)
40 self.rejected = reject
41 self.valueForStorage = valueForStorage
◆ __getitem__()
def python.AtlRunQueryRun.DataEntry.__getitem__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
◆ __len__()
def python.AtlRunQueryRun.DataEntry.__len__ |
( |
|
self | ) |
|
Definition at line 49 of file AtlRunQueryRun.py.
50 length_L = self.lastlb-self.startlb+1
51 if length_L>0x7FFFFFFF:
◆ __repr__()
def python.AtlRunQueryRun.DataEntry.__repr__ |
( |
|
self | ) |
|
◆ __str__()
def python.AtlRunQueryRun.DataEntry.__str__ |
( |
|
self | ) |
|
Definition at line 43 of file AtlRunQueryRun.py.
44 return "[%i-%i) %s %r" % (self.lbrange[0], self.lbrange[1],
"r" if self.rejected
else "a", self.value)
◆ contains()
def python.AtlRunQueryRun.DataEntry.contains |
( |
|
self, |
|
|
|
lb |
|
) |
| |
Definition at line 70 of file AtlRunQueryRun.py.
71 return self.lbrange[0]<=lb
and lb<self.lbrange[1]
◆ endlb()
def python.AtlRunQueryRun.DataEntry.endlb |
( |
|
self | ) |
|
◆ intersects()
def python.AtlRunQueryRun.DataEntry.intersects |
( |
|
self, |
|
|
|
lbrange |
|
) |
| |
Definition at line 73 of file AtlRunQueryRun.py.
73 def intersects(self,lbrange):
74 lbstart, lbend = lbrange
75 return self.contains(lbstart)
or self.contains(lbend-1)
or (lbstart<=self.lbrange[0]
and self.lbrange[1]<lbend)
◆ json()
def python.AtlRunQueryRun.DataEntry.json |
( |
|
self | ) |
|
Definition at line 81 of file AtlRunQueryRun.py.
82 retDict = {
'lbrange' : [self.startlb, self.lastlb] }
83 if self.valueForStorage
is None:
84 v = self.value.
pickled()
if hasattr(self.value,
'pickled')
else self.value
87 retDict.update(self.valueForStorage)
◆ lastlb()
def python.AtlRunQueryRun.DataEntry.lastlb |
( |
|
self | ) |
|
Definition at line 64 of file AtlRunQueryRun.py.
65 return ((0x100000000 + self.endlb)-1) & 0xFFFFFFFF
◆ pickled()
def python.AtlRunQueryRun.DataEntry.pickled |
( |
|
self | ) |
|
Definition at line 77 of file AtlRunQueryRun.py.
78 v = self.value.
pickled()
if hasattr(self.value,
'pickled')
else self.value
79 return {
'firstlb' : self.startlb,
'lastlb' : self.lastlb,
'value' : v,
'accepted' :
not self.rejected }
◆ startlb()
def python.AtlRunQueryRun.DataEntry.startlb |
( |
|
self | ) |
|
◆ iov
python.AtlRunQueryRun.DataEntry.iov |
◆ lbrange
python.AtlRunQueryRun.DataEntry.lbrange |
◆ rejected
python.AtlRunQueryRun.DataEntry.rejected |
◆ value
python.AtlRunQueryRun.DataEntry.value |
◆ valueForStorage
python.AtlRunQueryRun.DataEntry.valueForStorage |
The documentation for this class was generated from the following file: