|
def | __init__ (self, run) |
|
def | __contains__ (self, k) |
|
def | __getitem__ (self, k) |
|
def | __setitem__ (self, k, value) |
|
def | __iter__ (self) |
|
def | keys (self) |
|
def | runNrS (self) |
|
def | lb (self) |
|
def | lbend (self, lb=None) |
|
def | NrLBs (self) |
|
def | result (self) |
|
def | isRejectedCurrentLB (self) |
|
def | isDQRejected (self) |
|
def | isDQDefectRejected (self) |
|
def | isRejected (self) |
|
def | isReady (self, lb=None) |
|
def | getLBRanges (self, activeOnly=False) |
|
def | addResult (self, iov, k, value, reject, valueForStorage=None) |
|
def | astxt (self) |
|
Definition at line 119 of file AtlRunQueryRun.py.
◆ __init__()
def python.AtlRunQueryRun.RunData.__init__ |
( |
|
self, |
|
|
|
run |
|
) |
| |
◆ __contains__()
def python.AtlRunQueryRun.RunData.__contains__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
Definition at line 134 of file AtlRunQueryRun.py.
136 return k
in self.data
or k.ResultKey
in self.data
137 return k
in self.data
◆ __getitem__()
def python.AtlRunQueryRun.RunData.__getitem__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
Definition at line 139 of file AtlRunQueryRun.py.
141 self.data[k] = DataEntryList(key=k, run=self.run)
145 return self.data[k]
if k
in self.data
else self.data[k.ResultKey]
◆ __iter__()
def python.AtlRunQueryRun.RunData.__iter__ |
( |
|
self | ) |
|
Definition at line 151 of file AtlRunQueryRun.py.
152 self.stops = self._calcStops()
153 for lb
in self.stops:
154 if lb>self.__run_o.lastlb:
◆ __setitem__()
def python.AtlRunQueryRun.RunData.__setitem__ |
( |
|
self, |
|
|
|
k, |
|
|
|
value |
|
) |
| |
◆ _calcStops()
def python.AtlRunQueryRun.RunData._calcStops |
( |
|
self | ) |
|
|
private |
Definition at line 279 of file AtlRunQueryRun.py.
279 def _calcStops(self):
281 for entrylist
in self.data.
values():
282 stops.update(entrylist.stops())
◆ _setLB()
def python.AtlRunQueryRun.RunData._setLB |
( |
|
self, |
|
|
|
lb |
|
) |
| |
|
private |
Definition at line 275 of file AtlRunQueryRun.py.
277 self.data_current_lb = dict([(k,entrylist.atLB(lb))
for k,entrylist
in self.data.
items()])
◆ addResult()
def python.AtlRunQueryRun.RunData.addResult |
( |
|
self, |
|
|
|
iov, |
|
|
|
k, |
|
|
|
value, |
|
|
|
reject, |
|
|
|
valueForStorage = None |
|
) |
| |
Definition at line 285 of file AtlRunQueryRun.py.
285 def addResult(self, iov, k, value, reject, valueForStorage = None):
287 iov =
IOVRange(runStart=self.run, lbStart=1, runEnd=self.run+1, lbEnd=0)
288 self[k].
append(DataEntry(iov=iov, value=value, reject=reject, valueForStorage=valueForStorage))
◆ astxt()
def python.AtlRunQueryRun.RunData.astxt |
( |
|
self | ) |
|
Definition at line 290 of file AtlRunQueryRun.py.
293 s +=
"%*s %*s " % (4, self.lb, 4, self.lbend())
294 s += (
"r" if self.isRejectedCurrentLB
else "a")
296 s +=
"%*s " % (_fW[
'Time'],
'')
299 for k
in Run.SortedShowOrder():
305 if self.data_current_lb[k]:
306 v = [x.value
for x
in self.data_current_lb[k]][0]
309 if k ==
"#Events" or k[0:4] ==
"STR:" or k==
"TriggerMenu" or k==
"TriggerRates" or k==
"olc:bcidmask":
◆ getLBRanges()
def python.AtlRunQueryRun.RunData.getLBRanges |
( |
|
self, |
|
|
|
activeOnly = False |
|
) |
| |
Definition at line 251 of file AtlRunQueryRun.py.
251 def getLBRanges(self,activeOnly=False):
252 last_lb = self.__run_o.nr_lb
253 a = [(
int(data.lb),
not data.isRejectedCurrentLB)
for data
in self
if data.lb<=last_lb]
262 ranges += [(state, start, x[0])]
264 last_start,last_state = a[-1]
265 if last_state==state:
266 ranges += [(state, start, last_lb+1)]
268 ranges += [(state, start, last_start)]
269 ranges += [(last_state, last_start, last_lb+1)]
271 return [x
for x
in ranges
if x[0]]
◆ isDQDefectRejected()
def python.AtlRunQueryRun.RunData.isDQDefectRejected |
( |
|
self | ) |
|
Definition at line 218 of file AtlRunQueryRun.py.
218 def isDQDefectRejected(self):
219 if 'DQ' not in self.data_current_lb:
221 return not RunData.DefectSelector(self.data_current_lb[
'DQ'])
◆ isDQRejected()
def python.AtlRunQueryRun.RunData.isDQRejected |
( |
|
self | ) |
|
Definition at line 203 of file AtlRunQueryRun.py.
203 def isDQRejected(self):
204 for orGroup
in RunData.DQLogic:
207 if len(self.data_current_lb[k])==0:
210 passes =
not self.data_current_lb[k][0].rejected
◆ isReady()
def python.AtlRunQueryRun.RunData.isReady |
( |
|
self, |
|
|
|
lb = None |
|
) |
| |
Definition at line 232 of file AtlRunQueryRun.py.
232 def isReady(self,lb=None):
233 if 'Ready for physics' not in self:
234 raise RuntimeError(
"No ready data available")
235 readydata = [x
for x
in self.data[
'Ready for physics']
if x.value==
'1']
243 if type(lb)==tuple
and len(lb)==2:
248 raise RuntimeError(
"Can't interpret lb to check isReady(lb=%r)" % lb)
◆ isRejected()
def python.AtlRunQueryRun.RunData.isRejected |
( |
|
self | ) |
|
Definition at line 225 of file AtlRunQueryRun.py.
225 def isRejected(self):
227 if not s.isRejectedCurrentLB:
◆ isRejectedCurrentLB()
def python.AtlRunQueryRun.RunData.isRejectedCurrentLB |
( |
|
self | ) |
|
Definition at line 184 of file AtlRunQueryRun.py.
184 def isRejectedCurrentLB(self):
186 need_dq_check =
False
187 for k,s
in self.data_current_lb.
items():
188 if k
in RunData.DQKeys:
197 if self.isDQRejected():
199 if self.isDQDefectRejected():
◆ keys()
def python.AtlRunQueryRun.RunData.keys |
( |
|
self | ) |
|
◆ lb()
def python.AtlRunQueryRun.RunData.lb |
( |
|
self | ) |
|
◆ lbend()
def python.AtlRunQueryRun.RunData.lbend |
( |
|
self, |
|
|
|
lb = None |
|
) |
| |
Definition at line 170 of file AtlRunQueryRun.py.
170 def lbend(self,lb=None):
173 return self.stops[self.stops.
index(lb)+1]-1
◆ NrLBs()
def python.AtlRunQueryRun.RunData.NrLBs |
( |
|
self | ) |
|
◆ result()
def python.AtlRunQueryRun.RunData.result |
( |
|
self | ) |
|
◆ runNrS()
def python.AtlRunQueryRun.RunData.runNrS |
( |
|
self | ) |
|
◆ __run_o
python.AtlRunQueryRun.RunData.__run_o |
|
private |
◆ current_lb
python.AtlRunQueryRun.RunData.current_lb |
◆ data
python.AtlRunQueryRun.RunData.data |
◆ data_current_lb
python.AtlRunQueryRun.RunData.data_current_lb |
◆ DefectSelector
python.AtlRunQueryRun.RunData.DefectSelector = None |
|
static |
◆ DQKeys
list python.AtlRunQueryRun.RunData.DQKeys = [] |
|
static |
◆ DQLogic
list python.AtlRunQueryRun.RunData.DQLogic = [] |
|
static |
◆ run
python.AtlRunQueryRun.RunData.run |
◆ stops
python.AtlRunQueryRun.RunData.stops |
The documentation for this class was generated from the following file:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.