|
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 120 of file AtlRunQueryRun.py.
◆ __init__()
def python.AtlRunQueryRun.RunData.__init__ |
( |
|
self, |
|
|
|
run |
|
) |
| |
◆ __contains__()
def python.AtlRunQueryRun.RunData.__contains__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
Definition at line 135 of file AtlRunQueryRun.py.
137 return k
in self.data
or k.ResultKey
in self.data
138 return k
in self.data
◆ __getitem__()
def python.AtlRunQueryRun.RunData.__getitem__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
Definition at line 140 of file AtlRunQueryRun.py.
142 self.data[k] = DataEntryList(key=k, run=self.run)
146 return self.data[k]
if k
in self.data
else self.data[k.ResultKey]
◆ __iter__()
def python.AtlRunQueryRun.RunData.__iter__ |
( |
|
self | ) |
|
Definition at line 152 of file AtlRunQueryRun.py.
153 self.stops = self._calcStops()
154 for lb
in self.stops:
155 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 280 of file AtlRunQueryRun.py.
280 def _calcStops(self):
282 for entrylist
in self.data.
values():
283 stops.update(entrylist.stops())
◆ _setLB()
def python.AtlRunQueryRun.RunData._setLB |
( |
|
self, |
|
|
|
lb |
|
) |
| |
|
private |
Definition at line 276 of file AtlRunQueryRun.py.
278 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 286 of file AtlRunQueryRun.py.
286 def addResult(self, iov, k, value, reject, valueForStorage = None):
288 iov =
IOVRange(runStart=self.run, lbStart=1, runEnd=self.run+1, lbEnd=0)
289 self[k].
append(DataEntry(iov=iov, value=value, reject=reject, valueForStorage=valueForStorage))
◆ astxt()
def python.AtlRunQueryRun.RunData.astxt |
( |
|
self | ) |
|
Definition at line 291 of file AtlRunQueryRun.py.
294 s +=
"%*s %*s " % (4, self.lb, 4, self.lbend())
295 s += (
"r" if self.isRejectedCurrentLB
else "a")
297 s +=
"%*s " % (_fW[
'Time'],
'')
300 for k
in Run.SortedShowOrder():
306 if self.data_current_lb[k]:
307 v = [x.value
for x
in self.data_current_lb[k]][0]
310 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 252 of file AtlRunQueryRun.py.
252 def getLBRanges(self,activeOnly=False):
253 last_lb = self.__run_o.nr_lb
254 a = [(
int(data.lb),
not data.isRejectedCurrentLB)
for data
in self
if data.lb<=last_lb]
263 ranges += [(state, start, x[0])]
265 last_start,last_state = a[-1]
266 if last_state==state:
267 ranges += [(state, start, last_lb+1)]
269 ranges += [(state, start, last_start)]
270 ranges += [(last_state, last_start, last_lb+1)]
272 return [x
for x
in ranges
if x[0]]
◆ isDQDefectRejected()
def python.AtlRunQueryRun.RunData.isDQDefectRejected |
( |
|
self | ) |
|
Definition at line 219 of file AtlRunQueryRun.py.
219 def isDQDefectRejected(self):
220 if 'DQ' not in self.data_current_lb:
222 return not RunData.DefectSelector(self.data_current_lb[
'DQ'])
◆ isDQRejected()
def python.AtlRunQueryRun.RunData.isDQRejected |
( |
|
self | ) |
|
Definition at line 204 of file AtlRunQueryRun.py.
204 def isDQRejected(self):
205 for orGroup
in RunData.DQLogic:
208 if len(self.data_current_lb[k])==0:
211 passes =
not self.data_current_lb[k][0].rejected
◆ isReady()
def python.AtlRunQueryRun.RunData.isReady |
( |
|
self, |
|
|
|
lb = None |
|
) |
| |
Definition at line 233 of file AtlRunQueryRun.py.
233 def isReady(self,lb=None):
234 if 'Ready for physics' not in self:
235 raise RuntimeError(
"No ready data available")
236 readydata = [x
for x
in self.data[
'Ready for physics']
if x.value==
'1']
244 if type(lb)==tuple
and len(lb)==2:
249 raise RuntimeError(
"Can't interpret lb to check isReady(lb=%r)" % lb)
◆ isRejected()
def python.AtlRunQueryRun.RunData.isRejected |
( |
|
self | ) |
|
Definition at line 226 of file AtlRunQueryRun.py.
226 def isRejected(self):
228 if not s.isRejectedCurrentLB:
◆ isRejectedCurrentLB()
def python.AtlRunQueryRun.RunData.isRejectedCurrentLB |
( |
|
self | ) |
|
Definition at line 185 of file AtlRunQueryRun.py.
185 def isRejectedCurrentLB(self):
187 need_dq_check =
False
188 for k,s
in self.data_current_lb.
items():
189 if k
in RunData.DQKeys:
198 if self.isDQRejected():
200 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 171 of file AtlRunQueryRun.py.
171 def lbend(self,lb=None):
174 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.