Definition at line 17 of file LumiDBCache.py.
◆ __init__()
def python.LumiDBCache.LumiDBCache.__init__ |
( |
|
self, |
|
|
|
dbstr = None , |
|
|
|
folderstr = None |
|
) |
| |
Definition at line 19 of file LumiDBCache.py.
19 def __init__(self, dbstr=None, folderstr=None):
21 self.reader = CoolDataReader(dbstr, folderstr)
◆ clearValidity()
def python.LumiDBCache.LumiDBCache.clearValidity |
( |
|
self | ) |
|
Definition at line 24 of file LumiDBCache.py.
24 def clearValidity(self):
26 self.validStartTime = cool.ValidityKeyMax
27 self.validEndTime = cool.ValidityKeyMin
◆ getPayload()
def python.LumiDBCache.LumiDBCache.getPayload |
( |
|
self, |
|
|
|
time |
|
) |
| |
Definition at line 38 of file LumiDBCache.py.
38 def getPayload(self, time):
41 if self.isValid(time):
48 for obj
in self.reader.data:
49 if not obj.since() <= time < obj.until():
continue
53 if self.isValid(time):
57 self.reader.setIOVRange(time, time)
58 self.reader.readData()
61 for obj
in self.reader.data:
62 if not obj.since() <= time < obj.until():
continue
66 if self.isValid(time):
◆ isValid()
def python.LumiDBCache.LumiDBCache.isValid |
( |
|
self, |
|
|
|
time |
|
) |
| |
Definition at line 35 of file LumiDBCache.py.
36 return (self.validStartTime <= time < self.validEndTime)
◆ setValidity()
def python.LumiDBCache.LumiDBCache.setValidity |
( |
|
self, |
|
|
|
obj |
|
) |
| |
Definition at line 30 of file LumiDBCache.py.
30 def setValidity(self, obj):
31 self.validStartTime = obj.since()
32 self.validEndTime = obj.until()
33 self.payload = obj.payload()
◆ payload
python.LumiDBCache.LumiDBCache.payload |
◆ reader
python.LumiDBCache.LumiDBCache.reader |
◆ validEndTime
python.LumiDBCache.LumiDBCache.validEndTime |
◆ validStartTime
python.LumiDBCache.LumiDBCache.validStartTime |
The documentation for this class was generated from the following file: