GSI TRB3: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
Line 25: Line 25:
2) Start webbrowser: In new terminal, do
2) Start webbrowser: In new terminal, do


<pre>
cd /home/tbr3_user/trbsoft/daqtools/web/
cd /home/tbr3_user/trbsoft/daqtools/web/
./cts_gui --noopenxterm --port=1234 --endpoint=0xc001
./cts_gui --noopenxterm --port=1234 --endpoint=0xc001
</pre>


open webbrowser and go to
open webbrowser and go to
Line 32: Line 34:
http://localhost:1234
http://localhost:1234


# Start event builder: In new terminal, do
3) Start event builder: In new terminal, do


<pre>
cd trbsoft/daqtools/users/triumf_trb171/
cd trbsoft/daqtools/users/triumf_trb171/
  dabc_exe TdcEventBuilder.xml
  dabc_exe TdcEventBuilder.xml
 
</pre>


4) Enable the readout of the channels we want.
4) Enable the readout of the channels we want.
Line 59: Line 62:
5) Setup the analyzer
5) Setup the analyzer


<pre>
source ~/trbsoft/trb3/trb3login  
source ~/trbsoft/trb3/trb3login  
</pre>


(This needs to be run in any terminal where you want to run the go4analysis
(This needs to be run in any terminal where you want to run the go4analysis
Line 66: Line 71:
6) Create the set of calibration constants for the TDC
6) Create the set of calibration constants for the TDC


<pre>
cd /home/tbr3_user/trbsoft/daqtools/users/triumf_trb171
cd /home/tbr3_user/trbsoft/daqtools/users/triumf_trb171
rm cal*.cal  (remove old calibration files)
rm cal*.cal  (remove old calibration files)
export CALTRIG=0; export CALMODE=-1;
export CALTRIG=0; export CALMODE=-1;
go4analysis -number 100000 -user /data/trb3_data/pulser17341151941.hld
go4analysis -number 100000 -user /data/trb3_data/pulser17341151941.hld
</pre>
(need to change this to use the hld file that you want to use)
(need to change this to use the hld file that you want to use)


Line 77: Line 84:
7) Now analyze more events, using those calibration files
7) Now analyze more events, using those calibration files


<pre>
rm *root
rm *root
export CALTRIG=0; export CALMODE=0;
export CALTRIG=0; export CALMODE=0;
go4analysis -number 1000000 -user /data/trb3_data/pulser17341151941.hld
go4analysis -number 1000000 -user /data/trb3_data/pulser17341151941.hld
</pre>


now open the resulting root file
now open the resulting root file


<pre>
root -l Go4AutoSave.root
root -l Go4AutoSave.root
</pre>


and use TBrowser() to look at the difference histogram
and use TBrowser() to look at the difference histogram
== Useful TRB3 commands ==

Revision as of 11:03, 8 December 2017

TRB3 is an FPGA-TDC board made and sold by GSI. It can achieve ~20ps timing resolution

Documentation

Main TRB documentation

Computer Setup Instructions

Currently have gotten this working on an Opensuse machine.

We setup TRB3 on a private network. So need machine with second ethernet port.

Full instructions to be written

Start-up Instructions

These are the basic instructions to initialize and take data from TRB3, using the GSI DAQ tools.

1) Start the trb3 program and initialize the TRB3

cd /home/tbr3_user/trbsoft/daqtools/users/triumf_trb171
source startup.sh

2) Start webbrowser: In new terminal, do

cd /home/tbr3_user/trbsoft/daqtools/web/
./cts_gui --noopenxterm --port=1234 --endpoint=0xc001

open webbrowser and go to

http://localhost:1234

3) Start event builder: In new terminal, do

cd trbsoft/daqtools/users/triumf_trb171/
 dabc_exe TdcEventBuilder.xml

4) Enable the readout of the channels we want.

i) Go to webpage

http://localhost:1234/tdc/tdc.htm

ii) Under 'board' set it to 0101.

iii) Then click 'enable' radio button

iv) Then, under 0101 set all the channel groups to on. Should then start seeing triggers for different channels (if we have signals going into channels).

v) Finally, disable the trigger window on the same page. On the section c801 click off and make sure it says 'disabled'. If trigger window is disabled then all triggers are accepted...


5) Setup the analyzer

source ~/trbsoft/trb3/trb3login 

(This needs to be run in any terminal where you want to run the go4analysis


6) Create the set of calibration constants for the TDC

cd /home/tbr3_user/trbsoft/daqtools/users/triumf_trb171
rm cal*.cal  (remove old calibration files)
export CALTRIG=0; export CALMODE=-1;
go4analysis -number 100000 -user /data/trb3_data/pulser17341151941.hld

(need to change this to use the hld file that you want to use)

The resulting calibration files are called something like cal_010X.cal


7) Now analyze more events, using those calibration files

rm *root
export CALTRIG=0; export CALMODE=0;
go4analysis -number 1000000 -user /data/trb3_data/pulser17341151941.hld

now open the resulting root file

root -l Go4AutoSave.root

and use TBrowser() to look at the difference histogram

Useful TRB3 commands