Code accompanying the 2018 release of data from the COHERENT Collaboration
This release corresponds to the result published in arXiv:1708.01294[nucl-ex]
For a full description, see the PDF document included within the release. The release can be found at http://coherent.ornl.gov/data or on zenodo.org, DOI: 10.5281/zenodo.1228631
This code is intended to provide examples of reading the data comprising the release
Included Python scripts are:
coherent_readDataExample.py: this reads one of the 2-D data files and produces an image of a corresponding 2-D histogram. A function included in this script can be reused to read all 2-D data included.
coherent_readPromptPDF.py: this reads the text file describing the distribution in photoelectron space of events from prompt, SNS-produced neutrons, producing an image of this distribution with and without analysis efficiency applied.
coherent_readTiming.py: this reads the text file describing the time distributions for prompt neutrons and both the prompt and delayed CEvNS populations. An image is produced which shows these distributions.
coherent_readParameters.py: this reads the YAML file which includes experimental parameters or details that can be described by single values with (or without) uncertainties.
Evaluate the acceptance efficiency for the CsI[Na] analysis for a signal with a specified number of photoelectrons
Note that this should be applied to data/models binned with 1PE granularity - the efficiency for a bin is based on this function's value at the bin center
So, this would be evaluted at, e.g., 0.5 for efficiency of 1PE signals, 1.5 for efficiency of 2PE signals, etc
'''
ifx<5:
return0.
acceptance=a/(1.0+np.exp(-k*(x-shift)))
ifx>=5andx<6:
acceptance=acceptance*0.5
returnacceptance
# get an array of the acceptance efficiencies for each bin