Spectrum Conversion with gef2satan.exe
(old version up to January 2012)To convert the spectra created by LEA (ending .gef) into files that can easily be read by SATAN or imported to EXCEL or ORIGIN you can use the program gef2satan.exe. It can be found on ZIRKONIA in the directory "/home/ntofda/gef2satan/". Its source code is placed on Zirkonia in "/home/ntofdaq/C-Prog/gef2satan/".
The program itself consists of the following 3 files:
|
the executeable (use the command "./gef2satan.exe") |
|
the initialisation file (ASCII, see below) |
|
the list of .gef spectra files (ASCII, produced via "ls /hdd1/ntofdaq/gef/jan12/nelbe*.gef > gef2satan.lst") |
In the file gef2satan.ini several options to control the conversion can be set. Each option has to be written in the format "option = value". The following options are possible, which have the following meaning.
Option | Meaning | possible Values | Standard |
infile | name of the .gef file to be converted or a file containing a list of .gef files, note: if the files are not in the same directory as the gef2satan.exe, they have to be given with their absolute path (e.g. "/home/ntofdaq/gef/nelbe_0000.gef") | any path | gef2satan.lst |
list | defines if the infile is .gef file itself or if it is a list of .gef files |
0: infile is a .gef
1: infile is a list of .gefs |
1 |
separatespectra | defines if 2D spectra will be split by x or y value and are converted into 1D ones, each contained in an own file (this is useful for separating e.g. the sumtdcs2.gef into several files, one for each plastic detector) | 0: 2D sepctra stay 2D 1: 2D spectra become 1D |
0 |
separatedim | defines the dimension for splitting 2D spectra | 1: each y channel will be in a separate file 2: each x channel will be in a separate file |
1 |
twodlong | defines the output format of 2D spectra, whether in 3 columns containing x, y and z value (for ORIGIN) or using a short format that containing only the the z values in the order of rising x and y in 8 columns (for SATAN) | 0: short format (SATAN) 1: xyz (ORIGIN) |
0 |
twodmatrix | defines the output format of 2D spectra; the format will containing only the the z values in the order of rising x and y, whether in matrix format, that means one single line for every y value, or in 8 column format (same as for "twodlong = 0") | 0: 8 columns 1: matrix |
0 |
deleteempty | defines if spectra that contain only zeroes will be deleted | 0: not deleted 1: delete empty spectra |
1 |
ignoremissingfile | defines if the program should stop, if a file is missing | 0: stop program | 1 |
comment | defines the verbosity level of the program | 0: some comments 1: a lot of comments |
0 |