Belle II Software  release-05-01-25
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 110 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 131 of file utils.py.

131  def find_gap(self, other):
132  """
133  Finds the IoV gap bewteen these two ExpRuns.
134  """
135  lower, upper = sorted((self, other))
136  if lower.exp == upper.exp and lower.run != upper.run:
137  if (upper.run - lower.run) > 1:
138  return IoV(lower.exp, lower.run + 1, lower.exp, upper.run - 1)
139  else:
140  return None
141  else:
142  return None
143 
144 

◆ make_iov()

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

Definition at line 124 of file utils.py.


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