LumiMask

class coffea.lumi_tools.LumiMask(jsonfile)[source]

Bases: object

Holds a luminosity mask index, and provides vectorized lookup

Parameters:

jsonfile (str) – Path the the ‘golden json’ file or other valid lumiSection database in json format.

This class parses a CMS lumi json into an efficient valid lumiSection lookup table

Methods Summary

__call__(runs, lumis)

Check if run and lumi are valid

Methods Documentation

__call__(runs, lumis)[source]

Check if run and lumi are valid

Parameters:
  • runs (numpy.ndarray or awkward.highlevel.Array or dask_awkward.Array) – Vectorized list of run numbers

  • lumis (numpy.ndarray or awkward.highlevel.Array or dask_awkward.Array) – Vectorized list of lumiSection numbers

Returns:

mask_out – An array of dtype bool where valid (run, lumi) tuples will have their corresponding entry set True.

Return type:

numpy.ndarray