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 12 of file LumiQuery.py.

Member Function Documentation

◆ __repr__()

def python.LumiQuery.PyRunLumiP1.__repr__ (   self)

Definition at line 37 of file LumiQuery.py.

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

◆ __str__()

def python.LumiQuery.PyRunLumiP1.__str__ (   self)

Definition at line 35 of file LumiQuery.py.

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

◆ block()

def python.LumiQuery.PyRunLumiP1.block (   self)

Definition at line 31 of file LumiQuery.py.

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

◆ event()

def python.LumiQuery.PyRunLumiP1.event (   self)

Definition at line 33 of file LumiQuery.py.

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

◆ run()

def python.LumiQuery.PyRunLumiP1.run (   self)

Definition at line 29 of file LumiQuery.py.

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

The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
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
str
Definition: BTagTrackIpAccessor.cxx:11