Project

General

Profile

Wiki » History » Version 51

Gennadiy Lukhanin, 03/06/2020 01:36 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 51 Gennadiy Lukhanin
* v00.05.00 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0500
18 46 Gennadiy Lukhanin
* v00.03.00 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0300
19 10 Gray Putnam
* v00.01.04 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0104
20 10 Gray Putnam
21 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.
22 1 Gray Putnam
23 44 Gray Putnam
h2. Building on the sbnd-daq and icarus-gateway Machines
24 2 Gray Putnam
25 2 Gray Putnam
Steps:
26 1 Gray Putnam
27 2 Gray Putnam
<pre><code class="text”>
28 7 Gray Putnam
# setup the software environment
29 34 Gray Putnam
source /daq/software/products/setup
30 47 Gennadiy Lukhanin
source /daq/software/products_dev/setup
31 1 Gray Putnam
setup mrb
32 41 Gray Putnam
33 1 Gray Putnam
# NOTE: Replace VERSION with the version you want to build
34 47 Gennadiy Lukhanin
export VERSION=v0_05_00
35 41 Gray Putnam
36 47 Gennadiy Lukhanin
setup sbndqm $VERSION -qe19:prof:s94:py2
37 13 Gray Putnam
38 13 Gray Putnam
39 7 Gray Putnam
# make a new mrb environment
40 7 Gray Putnam
export MRB_PROJECT=sbndqm
41 1 Gray Putnam
42 1 Gray Putnam
# <make the needed directories>
43 12 Gray Putnam
44 47 Gennadiy Lukhanin
mrb newDev -v $VERSION -q e19:prof:s94:py2
45 42 Gray Putnam
# NOTE: replace xxxx with what you see in your directory
46 47 Gennadiy Lukhanin
source localProducts_sbndqm_${VERSION}_e19_prof_s94_py2/setup
47 1 Gray Putnam
cd srcs
48 13 Gray Putnam
49 1 Gray Putnam
# pull down the latest sbndqm 
50 36 Gray Putnam
mrb g sbndqm 
51 7 Gray Putnam
52 1 Gray Putnam
# build
53 7 Gray Putnam
mrbsetenv
54 7 Gray Putnam
mrb i -j6
55 9 Gray Putnam
56 7 Gray Putnam
</code></pre>
57 7 Gray Putnam
58 38 Gray Putnam
In the future, to build the code, you will just need to run:
59 7 Gray Putnam
60 38 Gray Putnam
<pre><code class="text”>
61 38 Gray Putnam
# setup the software environment
62 38 Gray Putnam
source /daq/software/products/setup
63 48 Gennadiy Lukhanin
source /daq/software/products_dev/setup
64 1 Gray Putnam
setup mrb
65 43 Gray Putnam
# NOTE: replace xxxx with what you see in your directory
66 43 Gray Putnam
source localProducts_sbndqm_xxxx/setup
67 38 Gray Putnam
mrbsetenv
68 38 Gray Putnam
mrb i -j6
69 38 Gray Putnam
70 38 Gray Putnam
</code></pre>
71 7 Gray Putnam
72 7 Gray Putnam
h2. Building on the gpvm’s
73 18 Anthony Ezeribe
Note: This is work in progress!
74 18 Anthony Ezeribe
75 18 Anthony Ezeribe
<pre><code class="text”>
76 19 Anthony Ezeribe
77 18 Anthony Ezeribe
# setup the software environment
78 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
79 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
80 18 Anthony Ezeribe
setup mrb
81 19 Anthony Ezeribe
82 18 Anthony Ezeribe
# make a new mrb environment
83 18 Anthony Ezeribe
export MRB_PROJECT=sbndqm
84 50 Gennadiy Lukhanin
mrb newDev -v v0_05_00 -q e19:prof:s94:py2
85 1 Gray Putnam
86 49 Gennadiy Lukhanin
source localProducts_sbndqm_v0_05_00_e19_prof_s94_py2/setup
87 49 Gennadiy Lukhanin
88 1 Gray Putnam
cd $MRB_TOP/srcs
89 21 Anthony Ezeribe
90 1 Gray Putnam
# Checkout out the latest sbndqm
91 49 Gennadiy Lukhanin
mrb g -b v0_05_00 sbndqm
92 1 Gray Putnam
93 1 Gray Putnam
# Checkout all the dependencies (for details see $MRB_TOP/srcs/sbndqm/ups/product_deps)
94 49 Gennadiy Lukhanin
mrb g -b v0_05_00 -d sbndaq_online sbndaq-online
95 1 Gray Putnam
mrb g -b v0_05_00 -d sbndaq_decode sbndaq-decode
96 50 Gennadiy Lukhanin
mrb g -b v0_05_00 -d sbndaq_artdaq_core  sbndaq-artdaq-core
97 1 Gray Putnam
98 49 Gennadiy Lukhanin
#build
99 49 Gennadiy Lukhanin
mrbsetenv
100 49 Gennadiy Lukhanin
mrb i -j6
101 26 Anthony Ezeribe
</code></pre>
102 27 Anthony Ezeribe
103 49 Gennadiy Lukhanin
In the future, to build the code, you will just need to run:
104 33 Anthony Ezeribe
105 49 Gennadiy Lukhanin
<pre><code class="text”>
106 49 Gennadiy Lukhanin
# <cd into your dqm project directory>
107 49 Gennadiy Lukhanin
108 49 Gennadiy Lukhanin
# setup the software environment
109 49 Gennadiy Lukhanin
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
110 49 Gennadiy Lukhanin
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
111 49 Gennadiy Lukhanin
setup mrb
112 49 Gennadiy Lukhanin
113 49 Gennadiy Lukhanin
source localProducts_sbndqm_v0_05_00_e19_prof_s94_py2/setup
114 49 Gennadiy Lukhanin
mrbsetenv
115 49 Gennadiy Lukhanin
mrb i -j6
116 49 Gennadiy Lukhanin
</code></pre>