ATLAS Offline Software
Public Member Functions | List of all members
python.LumiQuery.PyRunLumiP1 Class Reference
Inheritance diagram for python.LumiQuery.PyRunLumiP1:
Collaboration diagram for python.LumiQuery.PyRunLumiP1:

Public Member Functions

def run (self)
 
def block (self)
 
def event (self)
 
def __str__ (self)
 
def __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__()

def 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__()

def 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()

def python.LumiQuery.PyRunLumiP1.block (   self)

Definition at line 30 of file LumiQuery.py.

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

◆ event()

def python.LumiQuery.PyRunLumiP1.event (   self)

Definition at line 32 of file LumiQuery.py.

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

◆ run()

def python.LumiQuery.PyRunLumiP1.run (   self)

Definition at line 28 of file LumiQuery.py.

28  def run(self):
29  return int(self >> 32)

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
PyAthena::repr
std::string repr(PyObject *o)
returns the string representation of a python object equivalent of calling repr(o) in python
Definition: PyAthenaUtils.cxx:106
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
str
Definition: BTagTrackIpAccessor.cxx:11