ATLAS Offline Software
Classes | Functions | Variables
python.TriggerCoolUtil Namespace Reference

Classes

class  TriggerCoolUtil
 

Functions

def iterate_runlist (runlist)
 

Variables

 db
 
 run2
 
 run3
 

Function Documentation

◆ iterate_runlist()

def python.TriggerCoolUtil.iterate_runlist (   runlist)
Helper to iterate through runlist. The format is:
runlist: [[run1,run2], [run3,run4], ... ]
In addition each "run" can be a tuple of format (run,LB)

Definition at line 10 of file TriggerCoolUtil.py.

10 def iterate_runlist(runlist):
11  """Helper to iterate through runlist. The format is:
12  runlist: [[run1,run2], [run3,run4], ... ]
13  In addition each "run" can be a tuple of format (run,LB)
14  """
15  def makeRunLumi(rl):
16  """Create (Run,Lumi) tuple"""
17  return rl if isinstance(rl,tuple) else (rl,0)
18 
19  for (a,b) in runlist:
20  (r1,l1) = makeRunLumi(a)
21  (r2,l2) = makeRunLumi(b)
22 
23  limmin = (r1 << 32) + l1
24  if isinstance(b,tuple):
25  limmax = (r2 << 32) + l2
26  else:
27  limmax = ((r2+1) << 32) - 1 # full run
28 
29  yield (limmin, limmax)
30 
31 

Variable Documentation

◆ db

python.TriggerCoolUtil.db

Definition at line 257 of file TriggerCoolUtil.py.

◆ run2

python.TriggerCoolUtil.run2

Definition at line 258 of file TriggerCoolUtil.py.

◆ run3

python.TriggerCoolUtil.run3

Definition at line 259 of file TriggerCoolUtil.py.

python.TriggerCoolUtil.iterate_runlist
def iterate_runlist(runlist)
Definition: TriggerCoolUtil.py:10