Data Conversion

The Data are written using Daresbury's MIDAS (Multi Instance Data Acquisition System). The Output Data Format is described here.

All the data should be unpacked into root-tree format using midas2nptool. Once NPTool itself is installed, The installation and setting up of the code are straight-forward and can be found in the README file.

The configuration file links every ADC channel with the corresponding detector (or detector segment) of the experiment, and it's written in ASCII format. The file can be found in the same github repo under the name t40.txt.

IMPORTANT: The root-tree name is set on the fly by the conversion command in the last argument (see below). However for consistency within the collaboration "T40Tree" should be used exclusively.

Quick How-to:

- For the executable to be available from any directory on your local machine (typically this line goes in the ~/.bashrc file). > source /home/ /path-to/midas2nptool/midas2nptool.sh

- to show the help : > midas2nptool -h

- to convert a file: > midas2nptool path/to/t40.txt path/to/midasfile path/to/rootfile.root T40Tree

- to convert a list of files in a folder: > m2n_folder path/to/t40.txt path/to/midasfolder/ path/to/rootfolder/ T40Tree

(NB: m2n_folder skip files that are already converted, and unzip them if necessary.)

GeTAMU Low Gain
For the low gain data collected in EXPT5 the data can be converted to nptool Raw Root folder by simply adding the the following lines in the t40.txt configuration file. There's one that is already created for this purpose, [t40_lowgain.txt]

ADC 11 CHANNEL 0 GeTAMU CLOVER01_CRYSTAL01_E_LG  // The token base is the same as the high-gain, ADC 11 CHANNEL 1 GeTAMU CLOVER01_SEGMENT01_E_LG  // appended with "_LG" for low-gain ADC 11 CHANNEL 2 GeTAMU CLOVER01_CRYSTAL01_T_LG
 * 1) example: