Belle II Software  release-06-02-00
IoV Class Reference
Inheritance diagram for IoV:
Collaboration diagram for IoV:

Public Member Functions

def __new__ (cls, exp_low=-1, run_low=-1, exp_high=-1, run_high=-1)
 
def __init__ (self, exp_low=-1, run_low=-1, exp_high=-1, run_high=-1)
 
def contains (self, iov)
 
def overlaps (self, iov)
 

Private Attributes

 _cpp_iov
 

Detailed Description

Python class to more easily manipulate an IoV and compare against others.
Uses the C++ framework IntervalOfValidity internally to do various comparisons.
It is derived from a namedtuple created class.

We use the name 'IoV_Factory' in the factory creation so that
the MRO doesn't contain two of the same class names which is probably fine
but feels wrong.

Default construction is an 'empty' IoV of -1,-1,-1,-1
e.g. i = IoV() => IoV(exp_low=-1, run_low=-1, exp_high=-1, run_high=-1)

For an IoV that encompasses all experiments and runs use 0,0,-1,-1.

Definition at line 153 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  exp_low = -1,
  run_low = -1,
  exp_high = -1,
  run_high = -1 
)
Called after __new__.

Definition at line 176 of file utils.py.

Member Function Documentation

◆ __new__()

def __new__ (   cls,
  exp_low = -1,
  run_low = -1,
  exp_high = -1,
  run_high = -1 
)
The special method to create the tuple instance. Returning the instance
calls the __init__ method.

Definition at line 169 of file utils.py.

◆ contains()

def contains (   self,
  iov 
)
Check if this IoV contains another one that is passed in.

Definition at line 182 of file utils.py.

◆ overlaps()

def overlaps (   self,
  iov 
)
Check if this IoV overlaps another one that is passed in.

Definition at line 188 of file utils.py.


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