Skip to content

Examples

Horizontal scan#

To execute the following examples, the STDPro package needs to be installed

Example of the working directory links:

Capture d’écran 2025-03-10 à 10.06.41.png

First we performs a full conversion to ADF with a single LUT for all the runs

sbatch ./Process_TNT2_to_ADF_single_LUT.sh Data/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1 

1858 ADF files processed in: /gridgroup/matnuc/agata/scan/TNT2_to_ADF/A005/Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/

⇒ Check data content:

command="source /gridgroup/matnuc/agata/scan/Softs/setenv.sh"
command="${command};CheckRawData -in Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1"
singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash -c "${command}"

Capture d’écran 2024-12-20 à 16.38.28.png

Capture d’écran 2024-12-20 à 16.45.22.png

Baseline studies#

Bad baselines on E1→E6 segments

Capture d’écran 2024-08-16 à 16.13.31.png

So I wrote a new tool to evaluate the baseline run_per_run:

EvalBaselinePerRun -in Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1 -lut LUT.conf

The baselines are stored in LutPerRun

Reprocess all the data:

sbatch ./Process_TNT2_to_ADF_LUTPerRun.sh Data/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1

Baselines after calib per run:

Capture d’écran 2024-08-16 à 16.55.40.png

Energy calibration#

⇒ Segments: using cubix and CheckRawData.root

Update calibration file:

PreprocessingFilterPSA.conf

segm         0   10.0   1   5.658553e-02   15   0
segm         1   10.0   1   5.571114e-02   15   0
segm         2   10.0   1   5.319540e-02   15   0
segm         3   10.0   1   5.985534e-02   15   0
segm         4   10.0   1   5.429298e-02   15   0
segm         5   10.0   1   5.622935e-02   15   0
segm         6   10.0   1   5.992263e-02   15   0
segm         7   10.0   1   5.189553e-02   15   0
segm         8   10.0   1   1.089791e-01   15   0
segm         9   10.0   1   1.160229e-01   15   0
segm        10   10.0   1   1.131623e-01   15   0
segm        11   10.0   1   1.042629e-01   15   0
segm        12   10.0   1   6.801596e-02   15   0
segm        13   10.0   1   5.747797e-02   15   0
segm        14   10.0   1   5.915599e-02   15   0
segm        15   10.0   1   5.462346e-02   15   0
segm        16   10.0   1   6.091354e-02   15   0
segm        17   10.0   1   6.058864e-02   15   0
segm        18   10.0   1   5.135432e-02   15   0
segm        19   10.0   1   6.100659e-02   15   0
segm        20   10.0   1   5.859249e-02   15   0
segm        21   10.0   1   5.836796e-02   15   0
segm        22   10.0   1   5.647514e-02   15   0
segm        23   10.0   1   5.838471e-02   15   0
segm        24   10.0   1   5.923433e-02   15   0
segm        25   10.0   1   6.033952e-02   15   0
segm        26   10.0   1   5.922700e-02   15   0
segm        27   10.0   1   6.172626e-02   15   0
segm        28   10.0   1   5.833192e-02   15   0
segm        29   10.0   1   5.829676e-02   15   0
segm        30   10.0   1   6.142740e-02   15   0
segm        31   10.0   1   6.487067e-02   15   0
segm        32   10.0   1   5.321479e-02   15   0
segm        33   10.0   1   5.237974e-02   15   0
segm        34   10.0   1   5.454783e-02   15   0
segm        35   10.0   1   5.620996e-02   15   0
core         0   10.0   1   1.365230e-01   0    0
core         1   10.0   1   1.365230e-01   0  0
tntf         1

Check again raw data using the calibration to have the statistics in the photopeak

command="source /gridgroup/matnuc/agata/scan/Softs/setenv.sh"
command="${command};CheckRawData -in Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1 -cal Conf/A005/PreprocessingFilterPSA.conf -r 657 665"
singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash -c "${command}"

Capture d’écran 2024-12-19 à 11.15.22.png

Preprocessing of the data#

  1. First processing to calibrate the traces:

In the AGATA process, trace calibration is done like:

if tntf < 0 : Tr = raw*gain with gain is the calibration value (5th value of conf file)

if tntf > 0 : Tr = rawgaintfall*trise/tntf

With the TNT2 cards, it doesn't work. So we will use the tfall and trise values to calibrate the traces, and tntf = 1.

tfall has been set to 10 for all channels to increase the dynamic range. We process all the runs with trise = 1., and we calibrate all the segments and core on the energy spectrum calculated from the trace, produced by the ADFInspector.

Batch launch of preprocessing, using the topology:

LOOP CRYS A005

Chain 3      CRYS
Producer     BasicAFP                 1000000
Filter       PreprocessingFilterPSA
Consumer     BasicAFC
ENDLOOP

And Preprocessing configuration:

ActualClass           PreprocessingFilterPSA
SaveDataDir           Out/Prepro
EnergyGain            4
XtalkFile             xinv_1325-1340.cal
TraceLengthRaw        118
sbatch Process_Preprocessing.sh Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1

ADFInspector on each slice of segments to have all in a faster way:

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
ADFInspector.exe -f Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_152,68_Pos_X_-20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_192,68_Pos_X_20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_152,68_Pos_X_-20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_192,68_Pos_X_20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_152,68_Pos_X_-20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_192,68_Pos_X_20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_152,68_Pos_X_-20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_192,68_Pos_X_20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_152,68_Pos_X_-20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_192,68_Pos_X_20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_152,68_Pos_X_-20_Y_Undef_Z_4_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_192,68_Pos_X_20_Y_Undef_Z_4_cal_0000.adf 

ADFInspector of the produced files: (a bit time consuming…)

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
ADFInspector.exe -f Out/Prepro/A005_2023_21_08_M_V_Cs_total-area_2x2mm_C1/Run_-*cal*.adf

⇒ Using Cubix on the 2D matrix: ETracevsID, we determine the traces calibration parameters. The new PreprocessingFilterPSA.conf is:

segm         0   10.0   6.145285e-01   5.658553e-02   15   0
segm         1   10.0   6.314583e-01   5.571114e-02   15   0
segm         2   10.0   6.256516e-01   5.319540e-02   15   0
segm         3   10.0   6.335965e-01   5.985534e-02   15   0
segm         4   10.0   6.213308e-01   5.429298e-02   15   0
segm         5   10.0   6.194165e-01   5.622935e-02   15   0
segm         6   10.0   5.958843e-01   5.992263e-02   15   0
segm         7   10.0   6.367662e-01   5.189553e-02   15   0
segm         8   10.0   6.295195e-01   1.089791e-01   15   0
segm         9   10.0   6.095476e-01   1.160229e-01   15   0
segm        10   10.0   6.130696e-01   1.131623e-01   15   0
segm        11   10.0   6.338866e-01   1.042629e-01   15   0
segm        12   10.0   6.240583e-01   6.801596e-02   15   0
segm        13   10.0   6.215359e-01   5.747797e-02   15   0
segm        14   10.0   6.331940e-01   5.915599e-02   15   0
segm        15   10.0   6.171751e-01   5.462346e-02   15   0
segm        16   10.0   6.325377e-01   6.091354e-02   15   0
segm        17   10.0   6.189157e-01   6.058864e-02   15   0
segm        18   10.0   6.546938e-01   5.135432e-02   15   0
segm        19   10.0   5.896272e-01   6.100659e-02   15   0
segm        20   10.0   6.252651e-01   5.859249e-02   15   0
segm        21   10.0   6.185537e-01   5.836796e-02   15   0
segm        22   10.0   6.169890e-01   5.647514e-02   15   0
segm        23   10.0   6.221716e-01   5.838471e-02   15   0
segm        24   10.0   5.961434e-01   5.923433e-02   15   0
segm        25   10.0   6.098673e-01   6.033952e-02   15   0
segm        26   10.0   6.088665e-01   5.922700e-02   15   0
segm        27   10.0   6.103404e-01   6.172626e-02   15   0
segm        28   10.0   6.162073e-01   5.833192e-02   15   0
segm        29   10.0   6.124000e-01   5.829676e-02   15   0
segm        30   10.0   5.822964e-01   6.142740e-02   15   0
segm        31   10.0   5.639036e-01   6.487067e-02   15   0
segm        32   10.0   6.331264e-01   5.321479e-02   15   0
segm        33   10.0   6.283395e-01   5.237974e-02   15   0
segm        34   10.0   6.384136e-01   5.454783e-02   15   0
segm        35   10.0   6.278690e-01   5.620996e-02   15   0
core         0   10.0   6.308032e-01   1.365230e-01   0    0
core         1   10.0   6.308032e-01   1.365230e-01   0    0
tntf         1
sbatch Process_Preprocessing.sh Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1

ADFInspector on each slice of segments to have all in a faster way:

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
ADFInspector.exe -f Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_152,68_Pos_X_-20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_192,68_Pos_X_20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_152,68_Pos_X_-20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_192,68_Pos_X_20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_152,68_Pos_X_-20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_192,68_Pos_X_20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_152,68_Pos_X_-20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_192,68_Pos_X_20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_152,68_Pos_X_-20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_192,68_Pos_X_20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_152,68_Pos_X_-20_Y_Undef_Z_4_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_192,68_Pos_X_20_Y_Undef_Z_4_cal_0000.adf 

Now energies are ok:

Capture d’écran 2024-08-21 à 11.43.16.png

Time alignment#

We process femul for all TNT2 adf files (building a BasicAFP.conf containing all the files), to obtain one single TkT spectra file: Out/Prepro/Prep__6-40-1000-UI__TT.spec

⚠️ Comment the NoMultiHist option in PreprocessingFilter.conf

Topology: TopologyNoCons.conf

LOOP CRYS A005

Chain 3      CRYS
Producer     BasicAFP                 1000000
Filter       PreprocessingFilterPSA
Consumer     None
ENDLOOP

Generation of the consumer file

rm Conf/A005/BasicAFP.conf 
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_152,68_Pos_X_-20_Y_Undef_Z_84_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_192,68_Pos_X_20_Y_Undef_Z_84_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_152,68_Pos_X_-20_Y_Undef_Z_64_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_192,68_Pos_X_20_Y_Undef_Z_64_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_152,68_Pos_X_-20_Y_Undef_Z_44_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_192,68_Pos_X_20_Y_Undef_Z_44_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_152,68_Pos_X_-20_Y_Undef_Z_28_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_192,68_Pos_X_20_Y_Undef_Z_28_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_152,68_Pos_X_-20_Y_Undef_Z_14_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_192,68_Pos_X_20_Y_Undef_Z_14_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_152,68_Pos_X_-20_Y_Undef_Z_4_0000.adf >> Conf/A005/BasicAFP.conf
ls Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_192,68_Pos_X_20_Y_Undef_Z_4_0000.adf >> Conf/A005/BasicAFP.conf

Launch femul:

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
femul.exe TopologyNoCons.conf

A - Time Calibration of Segments#

Standard procedure on the file produced by preprocessing: Prep__6-40-1000-UI__TT.spec

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
RecalEnergy -spe Out/Prepro/Prep__6-40-1000-UI__TT.spec -sub 40 -num 36 -T 500

Final version of PreprocessingFilterPSA.conf is:

segm         0   10.0   6.145285e-01   5.658553e-02   15   54.897
segm         1   10.0   6.314583e-01   5.571114e-02   15   48.880
segm         2   10.0   6.256516e-01   5.319540e-02   15   46.999
segm         3   10.0   6.335965e-01   5.985534e-02   15   49.109
segm         4   10.0   6.213308e-01   5.429298e-02   15   47.293
segm         5   10.0   6.194165e-01   5.622935e-02   15   48.885
segm         6   10.0   5.958843e-01   5.992263e-02   15   56.079
segm         7   10.0   6.367662e-01   5.189553e-02   15   53.807
segm         8   10.0   6.295195e-01   1.089791e-01   15   61.516
segm         9   10.0   6.095476e-01   1.160229e-01   15   63.698
segm        10   10.0   6.130696e-01   1.131623e-01   15   53.462
segm        11   10.0   6.338866e-01   1.042629e-01   15   53.429
segm        12   10.0   6.240583e-01   6.801596e-02   15   64.716
segm        13   10.0   6.215359e-01   5.747797e-02   15   60.722
segm        14   10.0   6.331940e-01   5.915599e-02   15   61.560
segm        15   10.0   6.171751e-01   5.462346e-02   15   60.516
segm        16   10.0   6.325377e-01   6.091354e-02   15   54.569
segm        17   10.0   6.189157e-01   6.058864e-02   15   54.418
segm        18   10.0   6.546938e-01   5.135432e-02   15   57.566
segm        19   10.0   5.896272e-01   6.100659e-02   15   52.355
segm        20   10.0   6.252651e-01   5.859249e-02   15   51.888
segm        21   10.0   6.185537e-01   5.836796e-02   15   48.398
segm        22   10.0   6.169890e-01   5.647514e-02   15   47.897
segm        23   10.0   6.221716e-01   5.838471e-02   15   50.832
segm        24   10.0   5.961434e-01   5.923433e-02   15   61.599
segm        25   10.0   6.098673e-01   6.033952e-02   15   59.027
segm        26   10.0   6.088665e-01   5.922700e-02   15   58.146
segm        27   10.0   6.103404e-01   6.172626e-02   15   58.166
segm        28   10.0   6.162073e-01   5.833192e-02   15   50.032
segm        29   10.0   6.124000e-01   5.829676e-02   15   50.935
segm        30   10.0   5.822964e-01   6.142740e-02   15   52.353
segm        31   10.0   5.639036e-01   6.487067e-02   15   50.129
segm        32   10.0   6.331264e-01   5.321479e-02   15   52.347
segm        33   10.0   6.283395e-01   5.237974e-02   15   52.379
segm        34   10.0   6.384136e-01   5.454783e-02   15   52.036
segm        35   10.0   6.278690e-01   5.620996e-02   15   53.288
core         0   10.0   6.308032e-01   1.365230e-01   0    0
core         1   10.0   6.308032e-01   1.365230e-01   0    0
tntf         1

Reprocessing of the data to check the Time alignment

sbatch Process_Preprocessing.sh Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1

ADFInspector of the produced files: (a bit time consuming…)

singularity exec -B /gridgroup/ /gridgroup/calcul/singularity/matnuc_ubuntu20.sif bash
source /gridgroup/matnuc/agata/scan/Softs/setenv.sh
ADFInspector.exe -f Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_152,68_Pos_X_-20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_192,68_Pos_X_20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_152,68_Pos_X_-20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_192,68_Pos_X_20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_152,68_Pos_X_-20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_192,68_Pos_X_20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_152,68_Pos_X_-20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_192,68_Pos_X_20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_152,68_Pos_X_-20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_192,68_Pos_X_20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_152,68_Pos_X_-20_Y_Undef_Z_4_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_192,68_Pos_X_20_Y_Undef_Z_4_cal_0000.adf 

Capture d’écran 2024-08-21 à 12.49.42.png

B - Time Calibration of Core#

⇒ Need to have a basis in ADL format with the good nomenclature ⇒ Not possible for the moment

By checking the average core signal on the photopeak energy, we can see that the traces are starting at ~8

Capture d’écran 2024-08-21 à 12.54.22.png

So we apply a core time shift of 20 to make it stat at ~10 ticks

segm         0   10.0   6.145285e-01   5.658553e-02   15   54.897
segm         1   10.0   6.314583e-01   5.571114e-02   15   48.880
segm         2   10.0   6.256516e-01   5.319540e-02   15   46.999
segm         3   10.0   6.335965e-01   5.985534e-02   15   49.109
segm         4   10.0   6.213308e-01   5.429298e-02   15   47.293
segm         5   10.0   6.194165e-01   5.622935e-02   15   48.885
segm         6   10.0   5.958843e-01   5.992263e-02   15   56.079
segm         7   10.0   6.367662e-01   5.189553e-02   15   53.807
segm         8   10.0   6.295195e-01   1.089791e-01   15   61.516
segm         9   10.0   6.095476e-01   1.160229e-01   15   63.698
segm        10   10.0   6.130696e-01   1.131623e-01   15   53.462
segm        11   10.0   6.338866e-01   1.042629e-01   15   53.429
segm        12   10.0   6.240583e-01   6.801596e-02   15   64.716
segm        13   10.0   6.215359e-01   5.747797e-02   15   60.722
segm        14   10.0   6.331940e-01   5.915599e-02   15   61.560
segm        15   10.0   6.171751e-01   5.462346e-02   15   60.516
segm        16   10.0   6.325377e-01   6.091354e-02   15   54.569
segm        17   10.0   6.189157e-01   6.058864e-02   15   54.418
segm        18   10.0   6.546938e-01   5.135432e-02   15   57.566
segm        19   10.0   5.896272e-01   6.100659e-02   15   52.355
segm        20   10.0   6.252651e-01   5.859249e-02   15   51.888
segm        21   10.0   6.185537e-01   5.836796e-02   15   48.398
segm        22   10.0   6.169890e-01   5.647514e-02   15   47.897
segm        23   10.0   6.221716e-01   5.838471e-02   15   50.832
segm        24   10.0   5.961434e-01   5.923433e-02   15   61.599
segm        25   10.0   6.098673e-01   6.033952e-02   15   59.027
segm        26   10.0   6.088665e-01   5.922700e-02   15   58.146
segm        27   10.0   6.103404e-01   6.172626e-02   15   58.166
segm        28   10.0   6.162073e-01   5.833192e-02   15   50.032
segm        29   10.0   6.124000e-01   5.829676e-02   15   50.935
segm        30   10.0   5.822964e-01   6.142740e-02   15   52.353
segm        31   10.0   5.639036e-01   6.487067e-02   15   50.129
segm        32   10.0   6.331264e-01   5.321479e-02   15   52.347
segm        33   10.0   6.283395e-01   5.237974e-02   15   52.379
segm        34   10.0   6.384136e-01   5.454783e-02   15   52.036
segm        35   10.0   6.278690e-01   5.620996e-02   15   53.288
core         0   10.0   6.308032e-01   1.365230e-01   0    20
core         1   10.0   6.308032e-01   1.365230e-01   0    20
tntf         1

Reprocessing of the data to check the Time alignment

sbatch Process_Preprocessing.sh Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1

ADFInspector of the produced files: (a bit time consuming…)

ADFInspector.exe -f Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_152,68_Pos_X_-20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-240,66_192,68_Pos_X_20_Y_Undef_Z_84_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_152,68_Pos_X_-20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-220,66_192,68_Pos_X_20_Y_Undef_Z_64_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_152,68_Pos_X_-20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-200,66_192,68_Pos_X_20_Y_Undef_Z_44_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_152,68_Pos_X_-20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-184,66_192,68_Pos_X_20_Y_Undef_Z_28_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_152,68_Pos_X_-20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-170,66_192,68_Pos_X_20_Y_Undef_Z_14_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_152,68_Pos_X_-20_Y_Undef_Z_4_cal_0000.adf Out/Prepro/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1/Run_-160,66_192,68_Pos_X_20_Y_Undef_Z_4_cal_0000.adf 

Capture d’écran 2024-08-21 à 13.56.09.png

Conversion in ROOT files#

sbatch Process_TreeBuilder.sh Out/Prod/A005_2024_07_19_H_M_Cs_TotalArea_1858pts_2x2mm_C1