Installation

ILCsoft needs to be installed first
git clone https://github.com/CALICETB/ILCSoftInstall.git
cd ILCSoftInstall
emacs CMakeLists.txt # change XERCES_version to 3.2.1
mkdir build
cd build
cmake ../ #was "make" before??
make #??? untested

Then put following lines to the ~/.bashrc:

source /home/calice/TB2018/ILCSoftInstall/ilcsoft/init_ilcsoft.sh
export LCIO_DIR=$LCIO
export ILCUTIL_DIR=$ILCSOFT/ilcutil/v01-02-01/
source /home/calice/TB2018/ILCSoftInstall/ilcsoft/root/5.34.36/bin/thisroot.sh

Then build the core DQM:

git clone https://github.com/DQM4HEP/dqm4hep.git
cd dqm4hep
git checkout v01-04-04 
mkdir build
cd build
cmake -C /home/calice/TB2018/ILCSoftInstall/ilcsoft/ILCSoft.cmake  -DBUILD_DQMVIZ=on -DBUILD_DQM4ILC=on -DFORCE_DIM_INSTALL=on -DFORCE_DIMJC_INSTALL=on -DBUILD_TESTING=off -DUSE_MASTER=off ../
make # will do make install automatically

After that the DQM4ILC needs to be installed from the separate package, otherwise any make on the DQM4HEP will overwrite the modified files

git clone https://github.com/jkvas/DQM4ILC.git
cd DQM4ILC/
git checkout Testbeam2018May # a new branch will appear soon
mkdir build; cd build/
cmake -C /home/calice/TB2018/ILCSoftInstall/ilcsoft/ILCSoft.cmake -DDQMCore_DIR=/home/calice/TB2018/dqm4hep/ -Dxdrlcio_DIR=/home/calice/TB2018/dqm4hep/ -DBUILD_AHCAL=on ../
make install; #do not forget the install!!!

and update again the .bashrc file, the DQM4HEP_PLUGIN_DLL variable should contain all used libraries:

export LD_LIBRARY_PATH=/home/calice/TB2018/dqm4hep/lib:$LD_LIBRARY_PATH
export PATH=/home/calice/TB2018/dqm4hep/bin:$PATH
export DIM_DNS_NODE=localhost
export DQM4HEP_PLUGIN_DLL=/home/calice/TB2018/DQM4ILC/lib/libDQM4ILC.so:/home/calice/TB2018/DQM4ILC/lib/libAHCAL_15Channels.so:/home/calice/TB2018/DQM4ILC/lib/libAHCAL_15Layers.so:/home/calice/TB2018/DQM4ILC/lib/libBIF_AHCAL_Correlation.so:/home/calice/TB2018/DQM4ILC/lib/libBIF_FindOffset.so

Operation

export DQM4HEP_PLUGIN_DLL=/home/calice/TB2018/DQM4ILC/lib/libAHCAL_15Layers.so:/home/calice/TB2018/DQM4ILC/lib/libAHCAL_40Layers.so:/home/calice/TB2018/DQM4ILC/lib/libAHCAL_96Layers.so:/home/calice/TB2018/DQM4ILC/lib/libDQM4ILC.so:/home/calice/TB2018/DQM4ILC/lib/libAHCAL_15Channels.so

dns
dqm4hep_start_run_control_server -v ALL -r AHCALRunControl
dqm4hep_start_run_control_interface -v ALL -r AHCALRunControl
#start run from DQM run control
dqm4hep_start_event_collector -v ALL -c ahcal_event_collector
dqm4hep_start_monitor_element_collector -v ALL -c ahcal_me_collector
dqm4hep_start_analysis_module -v ALL -f /home/calice/TB2018/scripts/lcioTestbeam201805.xml
 # sripts are in DQM4ILC/tree/Testbeam2018May/source/AHCAL_BIF/scripts
dqm4hep_start_dqm_monitor_gui -v ALL -f  /home/calice/TB2018/scripts/canvases.xml

dqm4hep_start_lcio_file_service  -c ahcal_event_collector -t 1 -f file_name_for_example_/home/calice/TB2018/data/test/180326184943_ahcalandbif_run001232.slcio


tb2018/DAQ_DQM4HEP (last edited 2018-10-12 08:25:47 by JiriKvasnicka)