Running DAQ Interface » History » Version 221

Version 220 (John Freeman, 02/17/2017 02:57 PM) → Version 221/223 (John Freeman, 03/04/2017 03:55 PM)

John Freeman, Mar-4-2017: Jan-9-2017:

This wiki page used to contain instructions on how to run the classic DAQInterface application for the 35ton experiment. Since 35ton, DAQInterface has been modified, and is now designed for general use across all experiments. Getting it installed and running takes only a couple of minutes; see for how to do this. Note that the linked instructions assume that you're working with the artdaq-demo DAQ software package rather than protoDUNE's lbne-artdaq DAQ software package; consequently the following modifications to the instructions on the new DAQInterface wiki apply

* After checking out artdaq-utilities-daqinterface, cd into it and run "git checkout protodune"; this will reduce the number of changes you'll want need to perform make to tailor the following edits above and beyond those described on the main DAQInterface wiki:
** In .settings, set "daq_setup_script"
package to <code>setupLBNEARTDAQ</code> and "package_hashes_to_save" your environment (e.g., it replaces references to <code>[ artdaq-demo with references to lbne-artdaq, lbne-raw-data, artdaq ]</code> etc.)
** * Make sure bin/ uses you've already got the correct path to 35ton configuration repo checked out - i.e., that you've run "git clone" in the setup script inside the root macro it creates
** In rc/control/, change
from rc.control.config_functions_local import get_config_info_base
from rc.control.config_functions_local import put_config_info_base
directory where you wish to install lbne-daq-config
from rc.control.config_functions_database import get_config_info_base
from rc.control.config_functions_database import put_config_info_base
and switch
* Modify ./rc/control/ so that the token <code>bookkeeping_for_fhicl_documents_artdaq_v2_base</code> in "config_dirname" variable at the two locations where it appears top of the "get_config_info_base" function refers to <code>bookkeeping_for_fhicl_documents_artdaq_v1_base</code>
** If you plan to use bin/, set
the full path of the 35ton configuration name it uses properly - i.e., replace repo. The configuration you choose is defined by the "demo" token in the line <code>config="demo"</code> subdirectory with the same name as the configuration of the checked-out configuration you want repo; this is different than the standard instructions, where rather than lbne-daq-config, a directory local to use. artdaq-utilities-daqinterface called "simple_test_config" is used.
** If you plan on performing any runs * Unlike in the standard instructions, the configuration you'll be using FHiCL from the old lbne-daq-config repo is called "demo_safemode" rather than "demo" ("demo" was already taken during 35ton). This is already accounted for in the database, (A) make sure you've cloned lbne-daq-config somewhere, (B) revert ./bin/ script; however if you send a manual config transition you'll want to take this into account (i.e., you'll want to send "./bin/ config demo_safemode")

Besides this, following
the get_config_info_base instructions on the DAQInterface wiki will get you up and put_config_info_base edits described above, (C) make sure you've replaced the "simple_test_config" path running with lbne-artdaq's ToySimulator- just keep in mind that where the config_dirname variable in ./rc/control/ , and (D) adjust the configuration name.

documentation refers to artdaq-demo, you'll be working with lbne-artdaq.