ATLAS Offline Software
Loading...
Searching...
No Matches
python.LumiQuery.PyRunLumiP1 Class Reference
Inheritance diagram for python.LumiQuery.PyRunLumiP1:
Collaboration diagram for python.LumiQuery.PyRunLumiP1:

Public Member Functions

 run (self)
 block (self)
 event (self)
 __str__ (self)
 __repr__ (self)

Detailed Description

 Python (run,block)/(run,event) type object based on the LumiBlockRange_p1 persistency format. 

LumiBlockRanges are stored as encoded run and (luminosity) block
numbers.  Since the conventional run-based accessors for IOVTime
are run() and event(), event() is provided *as a synonym* for block.

This class is initialized with an IOVTime *as stored* in the 
persistent object LumiBlockRange_p1 (Note, it does not work on the
transient object!)

Warning: although PyRunLumiP1 inherits from long, addition and
subtraction are not well defined and should be treated with care!
Nevertheless, *incrementing* a PyRunLumiP1 gives a basically intuitive
result.) 

Definition at line 11 of file LumiQuery.py.

Member Function Documentation

◆ __repr__()

python.LumiQuery.PyRunLumiP1.__repr__ ( self)

Definition at line 36 of file LumiQuery.py.

36 def __repr__(self):
37 return self.__hex__().__repr__() + '->(' + repr(self.run()) + ':' + repr(self.event()) + ')'
38
39
40

◆ __str__()

python.LumiQuery.PyRunLumiP1.__str__ ( self)

Definition at line 34 of file LumiQuery.py.

34 def __str__(self):
35 return 'R='+ str(self.run()) + '; LB=' + str(self.event())

◆ block()

python.LumiQuery.PyRunLumiP1.block ( self)

Definition at line 30 of file LumiQuery.py.

30 def block(self):
31 return int(self & 0xFFFFFFFF)

◆ event()

python.LumiQuery.PyRunLumiP1.event ( self)

Definition at line 32 of file LumiQuery.py.

32 def event(self):
33 return self.block()

◆ run()

python.LumiQuery.PyRunLumiP1.run ( self)

Definition at line 28 of file LumiQuery.py.

28 def run(self):
29 return int(self >> 32)
Definition run.py:1

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