Barrel Calorimeter

From GlueXWiki
Revision as of 09:37, 17 June 2014 by Sgryba (Talk | contribs)

Jump to: navigation, search

An example of how to start DAQ for the stand alone BCAL (four north or south crates) with the external pulser connected to the master TI.

  1. Login to gluon49 under hdops
    ssh hdops@gluon49
  2. Load the environment
    source /gluex/Subsystems/BCAL/setupcoda3
  3. Start DAQ for 4 north or south crates:
    bcal_N4_start or
    note that the command to terminate all DAQ processes is for example
  4. Choose configuration: Configurations-->Coda Config-->bcal_s4 (or bcal_n4)
  5. Settings in the Run Control (you have to set these variables once if you edit coda configuration with jcedit)
    Set User --> Runtime Variables --> Config File to /gluex/Subsystems/BCAL/bcal_pulser_ti/pulse
    Set User --> Runtime Variables --> List --> %(CODA_ROL) to /gluex/release/0.1/src/rol/bcal_base_ti
  6. FADC250 configuration files are located in /gluex/Subsystems/BCAL/bcal_pulser_ti
  7. Data output: /gluex/Subsystems/BCAL/data/south4
    /gluex/Subsystems/BCAL/data/north4 (default)
  8. Due to some glitches in the firmware you have to start run first before enabling external triggers (will be fixed)

Updated DAQ Instructions:

  1. Open a terminal
    >ssh hdbcalops@gluon105
    >pass: GlueX_2come
    >cd /daq_pro_vers/work
    >source online_setup.cshrc
    > –s bcal_n4 (or bcal_s4 for south)
    At this point, the four green crate windows should pop up, along with the “Gui”
  2. Get a different terminal open, and then:
    >ssh hdops@gluon49 (gluon29 is fine as well)
    >pass: GlueX_2come
  3. Select either BCAL or Default
  4. Get open the BCAL LED Pulser in addition to the Gui that opens. You may have to click around a bit if all the options are not available right away. One of the top buttons should do the trick.

On the Gui: > control > connect > first button(configure) > second button(download) > third button(prestart)

At this point, there are two ways you can operate:

Custom LED pattern

Press whatever LEDs you want on in the LED Pulser window, and set their pulse rate and whatnot. Once you want to start taking data, press play on the Gui, and start the pulsers. Stop the Gui when the pulsing is done, or you have sufficient data.


Open a terminal and login to hdbcalops@gluon105 (It may not matter where you login but this should work)

> cd gluonfs1/home/hdbcalops/daq_pro_vers/work/tools/bcal_pulse_sequence
> –s D –q 1

Here, the –s can have either a D or a U following it, for up or downstream LEDs to fire. The –q indicates which quadrant you wish to select. Also, by having a 1 or a 10 after a –n you can select either 1 or 10 pulses per configuration. The command –h will bring up a help menu. You can run multiple trials in the same data set; just enter new commands and keep the Gui running. For example, to run both north side quadrants you would use –q 1 and then –q 4.

Now, you are ready to write the file. Make sure to keep a note of the run number, to use in your file.

> cd /gluex/Subsystems/BCAL/data/north4


> cd/gluex/Subsystems/BCAL/data/south

(Depending on which side you have run) There are a few ways you can write the file, depending what you wish to accomplish.

For looking at individual events in dump_tree_waveform_dalton.C, use the following command:

> hd_root -PPLUGINS=DAQ,DAQTree datafile –o new filename

Where datafile is the original file created from the run (which can be found on the gui) and new filename is what you want to call the root file. For example:

> hd_root –PPLUGINS=DAQ,DAQTree bcal_n4_3049.0 –o bcal_n4_3049.0.root

Here, the 3049 is an example run number. Use whatever run number you have. The n4 is for the north side, and one should use an s4 for the south side.

For the SiPM_Tester, the command is:

> hd_root -PPLUGINS=DAQ,DAQTreeBCAL,TTab datafile –o newfilename

We are now ready to run the file in root! Load root,

> .L /gluex/Subsystems/BCAL/scripts/dump_tree_waveform_dalton.C+
> dump_tree_waveform_dalton.C+(“filename”)


> .L /gluex/Subsystems/BCAL/scripts/SiPM_Test.C+
> SiPM_Tester.C+(“filename”)

Note: The tab key will be very useful in both speeding up the command process and ensuring you (and I) have written things correctly in the terminal. Use it as often as you can. Note 2: To exit the Gui one can type the same command they used to start it, but with a –e at the end; for example:

> –s bcal_n4 -e