Private:UConn test setup

From GlueXWiki
Jump to: navigation, search

In the DAQ crate we are using an old Trigger Interface (TI) board, i.e. the triggers are distributed through front pannels. The SDC board is used for the trigger and clock distributions to fadc250.

Boards in the crate

Board Slot Serial
CPU (halldtrg5) 1
TI (Old) 2
FADC250 5 B21595_06R
LE discriminator 14 C_15
F1TDC 16

Front pannel connections

From To
External trigger TI input, IN1
L1 Accept ( 3rd from the bottom ) SDC TRG
L1 Accept ( 4 th from the bottom ) F1TDC TRG

Setting up the setup

  • Connect keybord and monitor (if needed) to the Intel ROC.
  • Connect Ethernet cable to the upper ROC LAN connector.
  • Change ROC IP address (you will see the MAC address when you start booting the controller)
  • Login under halld


Most DAQ files (CODA), the Run Control and other applications have been installed locally on the ROC flash disc. You will need to mount the remote data disc to store data files.

Below is a description of some directories:

  • The home directory is /home/halld
  • /home/halld/micro/rol contains the F1TDC configuration file and the link to the DAC readout list (see descriptions below)
  • /home/halld/micro/coda contains Run Control data base
  • /home/halld/data is a directory for the DAQ data storage. The external drive has to be mounted to here
  • /home/halld/micro/coda_micro_setup is a script with configuration variables
    • you have to edit this file ad change some variables if needed
    • source coda_micro_setup to set variables up
  • Coda and Run Control files are installed at /usr/local/coda/2.6.1

How to run DAQ

  1. Launch database daemon
    • After changing the ROC hostname, the Run Control database (where the host name is used) has to be updated.
    • Login to the controller under halld and set up environmental variables ( source coda_micro_setup )
    • start mysql deamon by typing msqld ( be sure that only one msqld is running)
    • use cedit to change host names for the event builder (EB5) and coda ROC (TROC5)
      • to do this, select File->Open Database->micro_test and File->Open->Run Type->simple and click on EB5 and TROC5 components
    • msqld has to be running all the time when you run DAQ
  2. Launch Afec-1.4 platform
    • login to the ROC under halld
    • type 'platform'
  3. Start event builder
    • login to the ROC under halld
    • coda_eb_rc3 -i -s simple -n EB5 -t CDEB
  4. Launch coda_roc on the Linux controller
    • login to the ROC under halld
    • coda_roc_rc3 -i -s simple -n TROC5 -t ROC
  5. Launch Run Control GUI
    • login to the ROC under halld
    • type 'rcgui'
    Select 'Sessions -> simple'
    Select 'Configurations -> Cool -> simple' (see top menu)
    Press buttons: Configure, Download, Prestart, Go (you start the run)
    • Note, every time you change the database (like a hostname) you have to import it to the Run Control. To do this, in the rcgui click Options->Coda2 Database->RunTypes and select corresponding DB RunTypes
    • Direct data output: file or none. Open dbedit (Database: micro_test, Table: simple) and change EB5 outputs either to coda (write to file) or
    to none (don't write to file). Don't forget to import the db changes in the Run Control (see note above).

Change electronics boards initialization parameters

  • The initialization of electronics modules and reading out data from FADC250 and F1TDC is handled by:
see the code for definition of most parameters
  • If you change some parameters, you will need to recompile this program: make clean; make

Event analizer

  • You can find an example of the simple event analyzer at JLab:
  • Copy this directory and /group/halld/Subsystems/trigger/coda (directory with evio libs) to your local place
  • Copy and modify accordingly the script file with environmental variables /group/halld/Subsystems/trigger/set_env
  • Use make to compile
  • ucon data_file will create a simple root file
see code for details