Belle II Software  release-06-00-14
ExpRun Class Reference
Inheritance diagram for ExpRun:
Collaboration diagram for ExpRun:

Public Member Functions

def make_iov (self)
 
def find_gap (self, other)
 

Detailed Description

Class to define a single (Exp,Run) number i.e. not an IoV.
It is derived from a namedtuple created class.

We use the name 'ExpRun_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.

KeyWord Arguments:
    exp (int): The experiment number
    run (int): The run number

Definition at line 118 of file utils.py.

Member Function Documentation

◆ find_gap()

def find_gap (   self,
  other 
)
Finds the IoV gap bewteen these two ExpRuns.

Definition at line 139 of file utils.py.

139  def find_gap(self, other):
140  """
141  Finds the IoV gap bewteen these two ExpRuns.
142  """
143  lower, upper = sorted((self, other))
144  if lower.exp == upper.exp and lower.run != upper.run:
145  if (upper.run - lower.run) > 1:
146  return IoV(lower.exp, lower.run + 1, lower.exp, upper.run - 1)
147  else:
148  return None
149  else:
150  return None
151 
152 

◆ make_iov()

def make_iov (   self)
Returns:
    IoV: A simple IoV corresponding to this single ExpRun

Definition at line 132 of file utils.py.


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