Backport lumiMask feature to 0995b branch (also includes 5324)

merged a few more old commits (selectRuns)
Merge pull request #5328 from amaltaro/handle-lumiMask

Backport lumiMask feature to 0995b branch (also includes 5324)