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) low gain configuration example :

ADC Channel Assignments (for 25Mg(d,p) and 22Ne(6Li,d))
% Basic setting ADC BASE 32 ADC OFFSET 992 MAP ADC 1 CHANNEL 0 Tiara B01_UP01_E ADC 1 CHANNEL 1 Tiara B01_DW01_E ADC 1 CHANNEL 2 Tiara B01_UP02_E ADC 1 CHANNEL 3 Tiara B01_DW02_E ADC 1 CHANNEL 4 Tiara B01_UP03_E ADC 1 CHANNEL 5 Tiara B01_DW03_E ADC 1 CHANNEL 6 Tiara B01_UP04_E ADC 1 CHANNEL 7 Tiara B01_DW04_E ADC 1 CHANNEL 8 Tiara B02_UP01_E ADC 1 CHANNEL 9 Tiara B02_DW01_E ADC 1 CHANNEL 10 Tiara B02_UP02_E ADC 1 CHANNEL 11 Tiara B02_DW02_E ADC 1 CHANNEL 12 Tiara B02_UP03_E ADC 1 CHANNEL 13 Tiara B02_DW03_E ADC 1 CHANNEL 14 Tiara B02_UP04_E ADC 1 CHANNEL 15 Tiara B02_DW04_E ADC 1 CHANNEL 16 Tiara B03_UP01_E ADC 1 CHANNEL 17 Tiara B03_DW01_E ADC 1 CHANNEL 18 Tiara B03_UP02_E ADC 1 CHANNEL 19 Tiara B03_DW02_E ADC 1 CHANNEL 20 Tiara B03_UP03_E ADC 1 CHANNEL 21 Tiara B03_DW03_E ADC 1 CHANNEL 22 Tiara B03_UP04_E ADC 1 CHANNEL 23 Tiara B03_DW04_E ADC 1 CHANNEL 24 Tiara B04_UP01_E ADC 1 CHANNEL 25 Tiara B04_DW01_E ADC 1 CHANNEL 26 Tiara B04_UP02_E ADC 1 CHANNEL 27 Tiara B04_DW02_E ADC 1 CHANNEL 28 Tiara B04_UP03_E ADC 1 CHANNEL 29 Tiara B04_DW03_E ADC 1 CHANNEL 30 Tiara B04_UP04_E ADC 1 CHANNEL 31 Tiara B04_DW04_E ADC 2 CHANNEL 0 Tiara B05_UP01_E ADC 2 CHANNEL 1 Tiara B05_DW01_E ADC 2 CHANNEL 2 Tiara B05_UP02_E ADC 2 CHANNEL 3 Tiara B05_DW02_E ADC 2 CHANNEL 4 Tiara B05_UP03_E ADC 2 CHANNEL 5 Tiara B05_DW03_E ADC 2 CHANNEL 6 Tiara B05_UP04_E ADC 2 CHANNEL 7 Tiara B05_DW04_E ADC 2 CHANNEL 8 Tiara B06_UP01_E ADC 2 CHANNEL 9 Tiara B06_DW01_E ADC 2 CHANNEL 10 Tiara B06_UP02_E ADC 2 CHANNEL 11 Tiara B06_DW02_E ADC 2 CHANNEL 12 Tiara B06_UP03_E ADC 2 CHANNEL 13 Tiara B06_DW03_E ADC 2 CHANNEL 14 Tiara B06_UP04_E ADC 2 CHANNEL 15 Tiara B06_DW04_E ADC 2 CHANNEL 16 Tiara B07_UP01_E ADC 2 CHANNEL 17 Tiara B07_DW01_E ADC 2 CHANNEL 18 Tiara B07_UP02_E ADC 2 CHANNEL 19 Tiara B07_DW02_E ADC 2 CHANNEL 20 Tiara B07_UP03_E ADC 2 CHANNEL 21 Tiara B07_DW03_E ADC 2 CHANNEL 22 Tiara B07_UP04_E ADC 2 CHANNEL 23 Tiara B07_DW04_E ADC 2 CHANNEL 24 Tiara B08_UP01_E ADC 2 CHANNEL 25 Tiara B08_DW01_E ADC 2 CHANNEL 26 Tiara B08_UP02_E ADC 2 CHANNEL 27 Tiara B08_DW02_E ADC 2 CHANNEL 28 Tiara B08_UP03_E ADC 2 CHANNEL 29 Tiara B08_DW03_E ADC 2 CHANNEL 30 Tiara B08_UP04_E ADC 2 CHANNEL 31 Tiara B08_DW04_E