Using the DAQ for debugging

Steps from a bare login

  1. Create a new text/terminal window using the "Paw on a terminal" icon in the start panel.
  2. In the terminal window, cd ~/src/HTBDAQ .
  3. To start the DAQ, bin/runDAQ.csh hcalpeds.xml.
  4. In the same area, or another desktop, start the GUI by clicking on the GUI icon (screen with wavy traces).

Doing a run

  1. Change any desired parameters (and check them!) in the "Details..." window.
  2. Hit INIT
  3. If the initialization is successful, hit RUN. The DAQ should run and eventually stop. [at this point all the modules will return to a STOP/OK state]
  4. If the initialization is not successful, look below for debugging tips.
  5. If the run was successful, proceed to data plotting.

Plotting the data

  1. Create another text/terminal window.
  2. Start ROOT : root
  3. Load the data access library [ once per ROOT session ] : .L ~/lib/libHTBDAQ_Data.so
  4. Your data should be available as "/data/tmp/HTB_[your run number].root"
  5. To run a ROOT script: .x [path to the script, as below]

Some useful ROOT scripts

Debugging

The best thing to try is to kill the DAQ (^C) and the GUI, and restart both. This may be required if the DCC gets confused.