Running DAQ Interface » History » Version 223

John Freeman, 03/04/2017 04:14 PM

1 1 John Freeman
2 221 John Freeman
John Freeman, Mar-4-2017:
3 1 John Freeman
4 220 John Freeman
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
5 1 John Freeman
6 221 John Freeman
* After checking out artdaq-utilities-daqinterface, you'll want to perform the following edits above and beyond those described on the main DAQInterface wiki:
7 222 John Freeman
** Edit the .components.txt file to include rces, etc. 
8 221 John Freeman
** In .settings, set "daq_setup_script" to <code>setupLBNEARTDAQ</code> and "package_hashes_to_save" to <code>[ lbne-artdaq, lbne-raw-data, artdaq ]</code>
9 221 John Freeman
** Make sure bin/ uses the correct path to the setup script inside the root macro it creates
10 221 John Freeman
** In rc/control/, change
11 221 John Freeman
12 221 John Freeman
from rc.control.config_functions_local import get_config_info_base
13 221 John Freeman
from rc.control.config_functions_local import put_config_info_base
14 221 John Freeman
15 221 John Freeman
16 221 John Freeman
17 221 John Freeman
from rc.control.config_functions_database import get_config_info_base
18 221 John Freeman
from rc.control.config_functions_database import put_config_info_base
19 221 John Freeman
20 221 John Freeman
and switch the token <code>bookkeeping_for_fhicl_documents_artdaq_v2_base</code> in the two locations where it appears to <code>bookkeeping_for_fhicl_documents_artdaq_v1_base</code>
21 223 John Freeman
** Edit rc/control/'s config_basedir() function to return the correct directory
22 221 John Freeman
** If you plan to use bin/, set the configuration name it uses properly - i.e., replace the "demo" token in the line <code>config="demo"</code> with the name of the configuration you want to use. 
23 221 John Freeman
** If you plan on performing any runs using FHiCL from the old lbne-daq-config repo rather than the database, (A) make sure you've cloned lbne-daq-config somewhere, (B) revert the get_config_info_base and put_config_info_base edits described above, (C) make sure you've replaced the "simple_test_config" path in the config_dirname variable in  ./rc/control/ , and (D) adjust the configuration name.