Project

General

Profile

Running DAQ Interface » History » Version 221

John Freeman, 03/04/2017 03:55 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 https://cdcvs.fnal.gov/redmine/projects/artdaq-utilities/wiki/Artdaq-daqinterface 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 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>
8 221 John Freeman
** Make sure bin/rootfile_event_count.sh uses the correct path to the setup script inside the root macro it creates
9 221 John Freeman
** In rc/control/daqinterface.py, change
10 221 John Freeman
<pre>
11 221 John Freeman
from rc.control.config_functions_local import get_config_info_base
12 221 John Freeman
from rc.control.config_functions_local import put_config_info_base
13 221 John Freeman
</pre>
14 221 John Freeman
to
15 221 John Freeman
<pre>
16 221 John Freeman
from rc.control.config_functions_database import get_config_info_base
17 221 John Freeman
from rc.control.config_functions_database import put_config_info_base
18 221 John Freeman
</pre>
19 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>
20 221 John Freeman
** If you plan to use bin/just_do_it.sh, 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. 
21 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/config_functions_local.py , and (D) adjust the just_do_it.sh configuration name.