Start with a conda environment {conda env:2022.11.1} Data is scattered in stor0, stor1 and stor2, most of the new data downloaded should be in stor2
There might be an error when you import some of the following modules, you can ignore that.
NOTE: Cutax does not come with the environments provided, you will have to downloaded an appropriate version of cutax (if you even need to use cutax/want to use it) at https://github.com/XENONnT/cutax
import strax
import straxen
import numpy as np
import matplotlib.pyplot as plt
import cutax # download cutax version 1.13.0
run_id = '049047' #
You can set the environment to either use cutax or straxen, the functionality will be the same. The main difference is that cutax allows you to use data cuts.
# For Cutax
st = cutax.contexts.xenonnt_offline(cmt_version = 'global_v9',
_raw_path = '/stor2/data/raw_recrods',
_processed_path = '/stor2/data/processed_data',
output_folder = '/stor2/data/processed_data')
# For Straxen
st = straxen.contexts.xenonnt(xedocs_version = 'global_v10',
_raw_paths = '/stor2/data/raw_recrods',
_processed_paths = '/stor2/data/processed_data',
output_folder = '/stor2/data/processed_data')
st.is_stored(run_id, 'raw_records')
rn_peaks = st.get_array(run_id, 'peaks') # get peak level data! this might take a while if the data has not been generated