ATLAS Offline Software
Loading...
Searching...
No Matches
python.TriggerCoolUtil Namespace Reference

Classes

class  TriggerCoolUtil

Functions

 iterate_runlist (list[tuple[int, int]] runlist)

Variables

 db = TriggerCoolUtil.GetConnection('CONDBR2')
int run2 = 363947
int run3 = 435333

Function Documentation

◆ iterate_runlist()

python.TriggerCoolUtil.iterate_runlist ( list[tuple[int, int]] 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 11 of file TriggerCoolUtil.py.

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

Variable Documentation

◆ db

python.TriggerCoolUtil.db = TriggerCoolUtil.GetConnection('CONDBR2')

Definition at line 321 of file TriggerCoolUtil.py.

◆ run2

int python.TriggerCoolUtil.run2 = 363947

Definition at line 322 of file TriggerCoolUtil.py.

◆ run3

int python.TriggerCoolUtil.run3 = 435333

Definition at line 323 of file TriggerCoolUtil.py.