wimpydd is hosted by Hepforge, IPPP Durham






The experiment class collects in a single object all the required input about the experimental set-up necessary to calculate the integrated response functions: the target, the energy bins, the energy resolution, the efficiency, the quenching factors, the exposure. All the corresponding information must be collected in a subdirectory of the WimPyDD/Experiments folder whose name is the main argument of the experiment class. For instance, if:

>>>pico60=WD.experiment('PICO60_2019')

the files below are searched in the directory WimPyDD/Experiments/PICO60_2019.

Physical quantity (unit) Default(if missing file) File name
\(T\) (target material) no default target.tab
\(MT_0\) (kg day) 1 exposure.tab
\(\epsilon(E^{\prime})\) 1 efficiency.tab
efficiency.py
\({\cal G}(E^{\prime},E_{ee})\) \(\delta(E^{\prime}-E_{ee})\) resolution.py
\(q_T(E_R)\)

1 element.name+_quenching.tab
element.name+_quenching.py
(ex:xenon_quenching.tab) \([E^{\prime}_1,E^{\prime}_2]\) (keV) \(E^{\prime}_1\)=\(E^{\prime}_2\)=1 keV
(no integral - differential rate) data.tab Modifier 1 modifier.py The built-in experiment object WD.XENON_1T_2018 can be instantiated using:

>>xenon_1t_2018=WD.experiment('XENON_1T_2018') 

where the string 'XENON_1T_2018' is the name of the folder:

WimPyDD/Experiments/XENON_1T_2018

which contains the following files:

target.tab
exposure.tab
data.tab
efficiency.tab
resolution.py
xenon_quenching.tab

Attributes and methods of the experiment class

The information collected from the input folder is stored in the attributes and methods of the experiment class:

 >>> dir(xenon_1t_2018) 
['data', 'diff_response_functions', 'efficiency', 'exposure', 'modifier',
'name', 'resolution', 'response_functions', 'target'] 

Experiment printout

A print(xenon_1t_2018) command prints out all the information collected from the target, the files loaded from WimPyDD/Experiments/XENON_1T_2018, and the info about the nuclear response functions:
print(xenon_1t_2018)
=========================================================================================
Experiment name : XENON_1T_2018
******************
Target :
Xe contains:
xenon, symbol Xe, atomic number 54, average mass 122.322, 9 isotopes.
Isotope-averaged mass: 122.32212558999998
Exposure (kg-days) : 362440.0, No help provided
Quenching for xenon : # Q=g1*LY (g1=0.055 from FIG.3 in 1709.10149v2. LY is taken from the first figure of FIG. 7)
******************
Nuclear response functions for 124Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 126Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 128Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 129Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 130Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 131Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 132Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 134Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 136Xe. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
******************
Data for XENON_1T_2018 : #counted the number of events from FIG. 3 of 1805.12562
Efficiency for XENON_1T_2018 : # taken from FIG. 1. of 1805.12562 and converted er into s1 [PE] using xenon_1t.target.element[0].quenching(er)*er
Resolution for XENON_1T_2018 : See Eqs. (14) and (15) of 1103.0303
Modifier for XENON_1T_2018 : This function was not initialized and automatically set to 1
=========================================================================================

The simplest experiment object

The only required inputs for the experiment class are the input folder name and the target. An experiment object using all the default values listed in the second column of the table above can be instantiated if the input directory is missing or empty. Upon instantiation the input directory is created if missing. This allows to create an empty experiment that can be filled up in subsequent steps with files with the energy resolution, the exposure, quenching factors, etc. For instance:

>>> empty_ge=WD.experiment('empty_ge')
Target not provided. Could not find Experiments/empty_ge/target.tab.
Enter now a valid target name (no quotation marks):
Ge
creates the directory WimPyDD/Experiments/empty_ge containing the file target.tab with all default inputs:
>>> print(empty_ge)
=========================================================================================
Experiment name : empty_ge
******************
Target :
Ge contains:
germanium, symbol Ge, atomic number 32, average mass 67.691, 5 isotopes.
Isotope-averaged mass: 67.69094183601963
Exposure (kg-days) : 1.0, No input file provided, using 1. as default
Quenching for germanium : This function was not initialized and automatically set to 1
******************
Nuclear response functions for 70Ge. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 72Ge. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 73Ge. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 74Ge. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
Nuclear response functions for 76Ge. Definition from Phys.Rev.C 89 (2014) 6, 065501 (e-Print: 1308.6288[hep-ph]) used for nuclear W functions as default
******************
Data for empty_ge : No input file provided, using (np.array([1.]),) as default
Efficiency for empty_ge : This function was not initialized and automatically set to 1
Resolution for empty_ge : This function was not initialized and automatically set to 1
Modifier for empty_ge : This function was not initialized and automatically set to 1
=========================================================================================