forked from e-j-w/FileConvTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree2mca_sample_parameters
More file actions
44 lines (36 loc) · 3.68 KB
/
Copy pathtree2mca_sample_parameters
File metadata and controls
44 lines (36 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
INPUT_FILE 0p2a_30MeVSRIMcomp_run1.root
TREE_NAME tree
SORT_PATH partCsIHit/E
SORT_DATA_SCALING_FACTOR 100000
SORT_DATA_FWHM_RESPONSE no
FWHM_F 3.1841
FWHM_G 3.3834
FWHM_H 1.7316
FWHM_2A 0.0
FWHM_2W 0.0
OUTPUT_FILE 0p2a_30MeVSRIMcomp_run1.mca
<---END_OF_PARAMETERS--->
This is a configuration file for the tree2mca and tree2mca_gated codes.
If you change the format of the file, prepare for unforseen
consequences.
Parameter list:
INPUT_FILE - Path to a single ROOT file to take tree data from. Incompatible with INPUT_FILE_LIST.
INPUT_FILE_LIST - Path to a list of ROOT files (plaintext, one file path per line) to take tree data from. Incompatible with INPUT_FILE.
TREE_NAME - Name of the tree inside the specified ROOT file(s) containing sort and gate data. If sort and gate data are in different trees, use SORT_TREE_NAME and GATE_TREE_NAME (tree2mca_gated only) instead.
SORT_PATH - Path to the branch/leaf containing the data to be sorted. Folder paths are designated with forward slashes eg. 'resDec/E' sorts data from the leaf with name 'E' in the branch 'resDec'.
GATE_PATH - (tree2mca_gated only) Path to the branch/leaf containing gate data. Folder paths are designated with forward slashes as in SORT_PATH.
SORT_DATA_SCALING_FACTOR - Multiplicative factor to scale sorted data by before writing the .mca file. Applied before SORT_DATA_SHIFT. Default: 1.
SORT_DATA_SHIFT - Number of bins to shift sorted data by before writing the .mca file. Default: 0.
GATE_DATA_SCALING_FACTOR - (tree2mca_gated only) Multiplicative factor to scale gates by before writing the .mca file. Applied before GATE_DATA_SHIFT. Default: 1.
GATE_DATA_SHIFT - (tree2mca_gated only) Numerical value to shift gates by before writing the .mca file. Default: 0.
Note that gate values smaller than 0 and larger than S32K (32768, unless redefined by the user in common.h) will be discarded.
CUSTOM_GATE_FILE - (tree2mca_gated only) Path to a plaintext file containing custom gate definitions. The custom gate file should contain line seperated numbers denoting the boundaries of individual gates. In the included 'custom gates' file there are 6 gated regions, the first corresponding to tree entries where the gate data falls between 1.09 and 1.05 (lower bound inclusive), and the last corresponding to entries where the gate data falls between 0.95 and 0.92. Custom gate boundaries may be listed in ascending or descending order. Using this option sepercedes GATE_DATA_SCALING_FACTOR and GATE_DATA_SHIFT.
SORT_DATA_FWHM_RESPONSE
yes: Apply FWHM response parameters to broaden peaks in the resulting .mca file.
no: Don't apply FWHM response function.
FWHM_F, FWHM_G, FWHM_H - Parameters for the FWHM response function, defined as FWHM = sqrt(F*F + G*G*x + H*H*x*x), where x is the .mca channel number / 1000.
FWHM_TAU_HIGH - Tau (in channels) of the high energy exponential tail in the response function. Default: 0.
FWHM_TAU_LOW - Tau (in channels) of the low energy exponential tail in the response function. Default: 0.
GAUS_WEIGHT, EXP_HIGH_WEIGHT, EXP_LOW_WEIGHT - weights of the Gaussian, high energy exponential, and low energy exponential components in the response function. These should sum to 1, or unexpected behaviour will occur. If not specified, only the Gaussian component is used.
OUTPUT_FILE - Name of the output .mca file.
For tree2mca_gated, the OUTPUT_FILE parameter is optional - if used, all data will be sorted into a single .mca file with the filename specified. Otherwise, individual .mca files for each root tree will be generated with matching filenames.