Data Analysis with LEA - Up to July 2013

(old version up to April 2010, latest version)

The data stream or the list-mode data files written by MBS can easily be analysed using the GSI program LEA. LEA can directly read the GOOSY file format used by MBS.

The LEA project for the whole can be found at the server zirkonia in the following directorie:

zirkonia:/home/ntofdaq/lea/nng_online

This directorie contains the file f_anal_nng.c, which is used to define the data analysis procedures depending on the users wishes. Every change in this file, written in the programming language C, has to be accepted to the total LEA project by running the "make" command.

Note: Before one can use LEA, one has to run the script /home/ntofdaq/.profile!

One can include every standard C command to the f_anal file to manipulate the data. To accumulate histograms, one has to use the commands HISACC1I(1DHIST,X,VALUE) and HISACC2I(2DHIST,X,Y,VALUE). These commands will increase the content of channel X of a one dimensional histogram 1DHIST or channel (X,Y) of a two dimensional histogram 2DHIST, respectively, by VALUE. The default value of VALUE is 1. Only in special cases, e.g., if you want to do stability investigations or for the count rate in dependence of the measurement time, one should use other values.

The names and dimensions of the histograms are defined in the files hiscre_nng.scom, hisdef_nng.h and hisini_nng.h. To modify these settings one has to run the following command:

lea -mod nng

This will open a window, where all defined histograms are listed. The use of this program is self-explaining. Note that every entry has to be confirmed by pressing the ENTER-key and changed histogram has to be confirmed be clicking the "Apply" button. To save and leave the modifying program one has to click the buttons "Apply", "definition file", "Save", and "Quit" in this order.

To run the analysis one has to do the following steps (Note: every entry in LEA has to be confirmed by pressing the ENTER-key):

0. login to zirkonia and prepare for using LEA ssh -X ntofdaq@zirkonia
password: ***********
source .profile
1. goto working directory cd lea/nng_online
2. start LEA graphical interface lea -pro nng -men
3. choose data source if lmd file:
if MBS stream:
Source = LMD File; Input file/node = /path/filename.lmd
Source = MBS samples; Input file/node = rio7
4. start analysis click "Analyze events"

The following histograms are produced by LEA:

Name xmin xmax xbinsize ymin ymax ybinsize Meaning (x) Meaning (y) Meaning (z)
ADC 0 4096 1       FC ADC raw value counts  
BAFDIFFTDC 0 2000 1 0 18 1 Time Difference Left-Right
0...15 : BaF2 1..16
counts
BAFDIFFTDC2 0 2000 1 0 18 1 Time Difference Left-Right
0...15 : BaF2 1..16
counts with acc signal
BAFLG 0 4096 1 0 36 1 LG raw value
0...31 : BaF2 DAQch1...32
counts
BAFLGS 0 4096 1 0 36 1 LGS raw value
0...31 : BaF2 DAQch1...32
counts
BAFSG 0 4096 1 0 36 1 SG raw value
0...31 : BaF2 DAQch1...32
counts
BAFSGS 0 4096 1 0 36 1 SGS raw value
0...31 : BaF2 DAQch1...32
counts
BAFLGSUM 0 4096 1 0 18 1 Geometric mean of LGs of BaF2 1...16
0...15 : BaF2 1...16
counts
BAFLGSSUM 0 4096 1 0 18 1 Geometric mean of LGSs of BaF2 1...16
0...15 : BaF2 1...16
counts
BAFSGSUM 0 4096 1 0 18 1 Geometric mean of SGs of BaF2 1...16
0...15 : BaF2 1...16
counts
BAFSUMTDCS -8192 8192 1 0 18 1 Sum Left+Right
0...15 : BaF2 1...16
counts
BAFSUMTDCS2 -8192 8192 1 0 18 1 same as SUMTDCS with a gate on DIFFTDC
0...15 : BaF2 1...16
counts
HITBAF 0 32 1 0 36 1 No. of hits per Channel
0...15 : BaF2 DAQ ch00...31
counts
HITFC 0 32 1       No. of hits per Channel counts counts
HITPL 0 32 1 0 16 1 TDC raw value
0 : accelerator
1...12 : plastic DAQch1...10
13 : trigger
14 : fission chamber
counts
OPC 0 8192 1 0 32 1 OPC data OPC values (see Data structure)  
PLDIFFTDC 0 4096 1       ADC raw value counts  
PLDIFFTDC2 0 4096 1       ADC raw value counts  
PLLG 0 4096 1 0 36 1 LG raw value
0...35 : BaF2 DAQch1...36
counts
PLLGS 0 4096 1 0 36 1 LGS raw value
0...35 : BaF2 DAQch1...36
counts
PLSG 0 4096 1 0 36 1 SG raw value
0...35 : BaF2 DAQch1...36
counts
PLSGS 0 4096 1 0 36 1 SGS raw value
0...35 : BaF2 DAQch1...36
counts
PLSGSUM 0 4096 1 0 36 1 SG raw value
0...35 : BaF2 DAQch1...36
counts
PLSUMTDCS 0 6554 1 0 6 1 same as SUMTDC but divided by 10
0...5 : plastic detector 1...5
counts
PLSUMTDCS2 0 6554 1 0 6 1 same as SUMTDCS with a gate on DIFFTDC
0...5 : plastic detector 1...5
counts
RATE1...3 0 8192 1 0 32 1 number of scaler readouts input channel of scaler 2...4 count rate = counts divided by time flag
TDCBAF 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCBAFACC 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCBAFDIFF 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCBAFH0 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCFCACC 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCFCDIFF 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCFCH0 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCPL 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCPLACC 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCPLDIFF 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TDCPLH0 0 81920 10 0 36 1 TDC raw value
0 : accelerator
1...32 : BaF2 DAQch1...32
33 : trigger
counts
TRGTIME 0 81920 10 0 16 1 TDC raw value
0 : accelerator
1...12 : plastic DAQch1...10
13 : trigger
14 : fission chamber
counts
TWODLGSG01...32 0 4096 12 0 4096 12 LG raw value of BaF2 DAQch1...42 SG raw value of BaF2 DAQch1...42 counts
TWODLGSGSUM01...16 0 4096 12 0 4096 12 LG raw value of BaF2 DAQch1...42 SG raw value of BaF2 DAQch1...42 counts
VETO 0 32768 5 0 15 1 time difference to accelerator
0...9 : plastic DAQch1...10
counts
VETOLONG 0 32768 5 0 15 1 time difference to accelerator
0...9 : plastic DAQch1...10
counts
VETOSHORT 0 32768 5 0 15 1 time difference to accelerator
0...9 : plastic DAQch1...10
counts