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:
Returns:

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

Return type:

numpy.ndarray