ATLAS Offline Software
Loading...
Searching...
No Matches
python.LumiCalculator.RLBRange Class Reference
Collaboration diagram for python.LumiCalculator.RLBRange:

Public Member Functions

 __init__ (self, run, lb1, lb2)
 __repr__ (self)
 IOVRange (self)

Public Attributes

 run = run
 lb1 = lb1
 lb2 = lb2

Detailed Description

This class represents a range of lumiblocks within a single run

Definition at line 16 of file LumiCalculator.py.

Constructor & Destructor Documentation

◆ __init__()

python.LumiCalculator.RLBRange.__init__ ( self,
run,
lb1,
lb2 )

Definition at line 18 of file LumiCalculator.py.

18 def __init__(self,run,lb1,lb2):
19 "Initialise to inclusive range lb1-lb2 in run run"
20 self.run=run
21 self.lb1=lb1
22 self.lb2=lb2
23

Member Function Documentation

◆ __repr__()

python.LumiCalculator.RLBRange.__repr__ ( self)

Definition at line 24 of file LumiCalculator.py.

24 def __repr__(self):
25 return 'Run %i LB [%i-%i]' % (self.run,self.lb1,self.lb2)
26

◆ IOVRange()

python.LumiCalculator.RLBRange.IOVRange ( self)

Definition at line 27 of file LumiCalculator.py.

27 def IOVRange(self):
28 "Return IOV since,until corresponding to this lumiblock range"
29 since=(self.run << 32)+self.lb1
30 until=(self.run << 32)+self.lb2+1
31 return (since,until)
32
33
Validity Range object.
Definition IOVRange.h:30

Member Data Documentation

◆ lb1

python.LumiCalculator.RLBRange.lb1 = lb1

Definition at line 21 of file LumiCalculator.py.

◆ lb2

python.LumiCalculator.RLBRange.lb2 = lb2

Definition at line 22 of file LumiCalculator.py.

◆ run

python.LumiCalculator.RLBRange.run = run

Definition at line 20 of file LumiCalculator.py.


The documentation for this class was generated from the following file: