Project

General

Profile

Wiki » History » Version 52

Wesley Ketchum, 07/23/2020 08:06 AM

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