XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
21 stars 32 forks source link

add_ref_mon_nv_plugin #1307

Closed eangelino closed 8 months ago

eangelino commented 8 months ago

What does the code in this PR do / what does it improve?

The code in this PR introduce a new plugin which computes parameters used for the Reflectivity Monitor for the Neutron Veto

Can you briefly describe how it works?

From the raw records, the start time of each trigger window is extracted (by taking the smallest "time" of all the channels)
Using the hitlets, the delta times wrt the beginning of the trigger are computed. Cuts can be made in area (of all the hitlets), time (since the beginning of the trigger window) and number of contributing PMTs (in each window). The returned values are the delta times (used for the reflectivity), PMT channels and areas.

coveralls commented 8 months ago

Coverage Status

coverage: 91.591% (-0.2%) from 91.774% when pulling 5c5614fae093636d774f56c20b29cb54a2bee7cc on add_ref_mon_nv into 25fadfea81f39cbe15c1518e37dc6626af708371 on master.

WenzDaniel commented 8 months ago

I fixed a small import error, and test processed run 057562 now it works like a charm.

WenzDaniel commented 8 months ago

and removed some not needed imports