Project

General

Profile

Wiki » History » Version 46

Gennadiy Lukhanin, 03/05/2020 04:23 PM

1 1 Gray Putnam
h1. sbndqm -- A Repository for SBN Online Monitoring
2 1 Gray Putnam
3 3 Gray Putnam
This repository is intended to house code for online monitoring in SBN and contains tooling for sending metrics to a database (through the artdaq MetricManager) and for receiving data from the artdaq Dispatcher (through the TransferInput module). 
4 1 Gray Putnam
5 4 Gray Putnam
* Instructions for using the metric manager: https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Metric_Management
6 5 Gray Putnam
* Instructions for using the TransferInput module: https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Receiving_Data_from_Artdaq
7 1 Gray Putnam
8 3 Gray Putnam
All analysis code is located in sbndqm/sbndqm/dqmAnalysis. An example analysis using the Metric Manager resides in sbndqm/sbndqm/dqmAnalysis/example.
9 1 Gray Putnam
10 35 Gray Putnam
h1. Workshop Link
11 35 Gray Putnam
12 35 Gray Putnam
https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Sbndqm_Workshop
13 35 Gray Putnam
14 1 Gray Putnam
h1. Building
15 1 Gray Putnam
16 10 Gray Putnam
h5. History: instructions to build previous versions:
17 46 Gennadiy Lukhanin
* v00.03.00 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0300
18 10 Gray Putnam
* v00.01.04 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0104
19 10 Gray Putnam
20 44 Gray Putnam
On the sbnd-daq and icarus-gateway machines, sbndqm is available globally as a ups product. It is thus __much__ easier to get started development on the sbnd-daq and icarus-gateway machines. However, it is also possible to develop on the gpvm’s provided you build more things yourself.
21 1 Gray Putnam
22 44 Gray Putnam
h2. Building on the sbnd-daq and icarus-gateway Machines
23 2 Gray Putnam
24 2 Gray Putnam
Steps:
25 1 Gray Putnam
26 2 Gray Putnam
<pre><code class="text”>
27 7 Gray Putnam
# setup the software environment
28 34 Gray Putnam
source /daq/software/products/setup
29 1 Gray Putnam
setup mrb
30 41 Gray Putnam
31 41 Gray Putnam
# NOTE: Replace VERSION with the version you want to build
32 41 Gray Putnam
export VERSION=v0_03_00
33 41 Gray Putnam
34 41 Gray Putnam
setup sbndqm $VERSION -qe17:prof:s83
35 13 Gray Putnam
36 13 Gray Putnam
37 7 Gray Putnam
# make a new mrb environment
38 7 Gray Putnam
export MRB_PROJECT=sbndqm
39 12 Gray Putnam
40 12 Gray Putnam
# <make the needed directories>
41 12 Gray Putnam
42 12 Gray Putnam
mrb newDev 
43 42 Gray Putnam
# NOTE: replace xxxx with what you see in your directory
44 45 Gray Putnam
source localProducts_sbndqm_${VERSION}_e17_prof_s83/setup
45 1 Gray Putnam
cd srcs
46 13 Gray Putnam
47 1 Gray Putnam
# pull down the latest sbndqm 
48 36 Gray Putnam
mrb g sbndqm 
49 7 Gray Putnam
50 1 Gray Putnam
# build
51 7 Gray Putnam
mrbsetenv
52 7 Gray Putnam
mrb i -j6
53 9 Gray Putnam
54 7 Gray Putnam
</code></pre>
55 7 Gray Putnam
56 38 Gray Putnam
In the future, to build the code, you will just need to run:
57 7 Gray Putnam
58 38 Gray Putnam
<pre><code class="text”>
59 38 Gray Putnam
# setup the software environment
60 38 Gray Putnam
source /daq/software/products/setup
61 1 Gray Putnam
setup mrb
62 43 Gray Putnam
# NOTE: replace xxxx with what you see in your directory
63 43 Gray Putnam
source localProducts_sbndqm_xxxx/setup
64 38 Gray Putnam
mrbsetenv
65 38 Gray Putnam
mrb i -j6
66 38 Gray Putnam
67 38 Gray Putnam
</code></pre>
68 7 Gray Putnam
69 7 Gray Putnam
h2. Building on the gpvm’s
70 18 Anthony Ezeribe
Note: This is work in progress!
71 18 Anthony Ezeribe
72 18 Anthony Ezeribe
<pre><code class="text”>
73 19 Anthony Ezeribe
74 18 Anthony Ezeribe
# setup the software environment
75 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
76 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
77 18 Anthony Ezeribe
setup mrb
78 19 Anthony Ezeribe
79 18 Anthony Ezeribe
# make a new mrb environment
80 18 Anthony Ezeribe
export MRB_PROJECT=sbndqm
81 20 Anthony Ezeribe
mrb newDev -v v0_02_00 -q e17:prof:s83
82 20 Anthony Ezeribe
source localProducts_sbndqm_v0_02_00_e17_prof_s83/setup
83 19 Anthony Ezeribe
84 21 Anthony Ezeribe
cd $MRB_TOP/srcs
85 21 Anthony Ezeribe
86 21 Anthony Ezeribe
# Checkout out the latest sbndqm
87 23 Anthony Ezeribe
mrb g sbndqm -v v00_02_00 -q e17:prof:s83
88 23 Anthony Ezeribe
89 24 Anthony Ezeribe
# Checkout all the dependencies (for details see $MRB_TOP/srcs/sbndqm/ups/product_deps)
90 25 Anthony Ezeribe
mrb g artdaq_core -v v3_04_15 -q e17:prof:s83
91 26 Anthony Ezeribe
mrb g larsoft -v v08_18_00 -q e17:prof
92 27 Anthony Ezeribe
mrb g icarus-artdaq-base -v v0_06_06 -q e17:prof
93 29 Anthony Ezeribe
mrb g sbndaq-artdaq-core -v v0_01_07 -q e17:prof:s83
94 33 Anthony Ezeribe
       mrb g artdaq_utilities -v v1_04_10 -q e17:prof:s83
95 33 Anthony Ezeribe
       setup -B artdaq_utilities v1_04_10 -q e17:prof:s73
96 33 Anthony Ezeribe
       mrb g artdaq_utilities -v v1_04_10 -q e17:prof:s73 
97 31 Anthony Ezeribe
setup -B fftw v3_3_8 -q prof
98 31 Anthony Ezeribe
setup -B jsoncpp v1_7_7c -q e17:prof
99 31 Anthony Ezeribe
setup -B xmlrpc_c v1_39_10d -q e17:prof
100 30 Anthony Ezeribe
mrb g sbndaq-redis-plugin -v v0_02_00 -q e17:prof:s83
101 31 Anthony Ezeribe
102 21 Anthony Ezeribe
103 18 Anthony Ezeribe
</code></pre>
104 18 Anthony Ezeribe
105 1 Gray Putnam
106 1 Gray Putnam
NOTES: should remove sbnddaq-datatypes once it migrates to sbndaq-artdaq-core. Should figure out issue with “-“ v. “_”.