Project

General

Profile

Wiki » History » Version 27

Anthony Ezeribe, 05/17/2019 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 1 Gray Putnam
h1. Building
11 1 Gray Putnam
12 10 Gray Putnam
h5. History: instructions to build previous versions:
13 10 Gray Putnam
* v00.01.04 -- https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Building_v0104
14 10 Gray Putnam
15 10 Gray Putnam
On the sbnd-daq* machines, sbndqm is available globally as a ups product. It is thus __much__ easier to get started development on the sbnd-daq* machines. However, it is also possible to develop on the gpvm’s provided you build more things yourself.
16 1 Gray Putnam
17 6 Gray Putnam
h2. Building on the sbnd-daq* Machines
18 2 Gray Putnam
19 2 Gray Putnam
Steps:
20 1 Gray Putnam
21 2 Gray Putnam
<pre><code class="text”>
22 7 Gray Putnam
# setup the software environment
23 1 Gray Putnam
source /software/products/setup
24 1 Gray Putnam
setup mrb
25 1 Gray Putnam
setup sbndqm v00_02_00 -qe17:prof:s83
26 13 Gray Putnam
27 13 Gray Putnam
28 7 Gray Putnam
# make a new mrb environment
29 7 Gray Putnam
export MRB_PROJECT=sbndqm
30 12 Gray Putnam
31 12 Gray Putnam
# <make the needed directories>
32 12 Gray Putnam
33 12 Gray Putnam
mrb newDev 
34 12 Gray Putnam
source localProducts_sbndqm_v00_02_00_e17_prof_s83/setup
35 1 Gray Putnam
cd srcs
36 13 Gray Putnam
37 1 Gray Putnam
# pull down the latest sbndqm 
38 12 Gray Putnam
mrb g sbndqm -t v00_02_00
39 7 Gray Putnam
40 1 Gray Putnam
# build
41 7 Gray Putnam
mrbsetenv
42 7 Gray Putnam
mrb i -j6
43 9 Gray Putnam
44 7 Gray Putnam
</code></pre>
45 7 Gray Putnam
46 7 Gray Putnam
47 7 Gray Putnam
48 7 Gray Putnam
h2. Building on the gpvm’s
49 18 Anthony Ezeribe
Note: This is work in progress!
50 18 Anthony Ezeribe
51 18 Anthony Ezeribe
<pre><code class="text”>
52 19 Anthony Ezeribe
53 18 Anthony Ezeribe
# setup the software environment
54 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
55 18 Anthony Ezeribe
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
56 18 Anthony Ezeribe
setup mrb
57 19 Anthony Ezeribe
58 18 Anthony Ezeribe
# make a new mrb environment
59 18 Anthony Ezeribe
export MRB_PROJECT=sbndqm
60 20 Anthony Ezeribe
mrb newDev -v v0_02_00 -q e17:prof:s83
61 20 Anthony Ezeribe
source localProducts_sbndqm_v0_02_00_e17_prof_s83/setup
62 19 Anthony Ezeribe
63 21 Anthony Ezeribe
cd $MRB_TOP/srcs
64 21 Anthony Ezeribe
65 21 Anthony Ezeribe
# Checkout out the latest sbndqm
66 23 Anthony Ezeribe
mrb g sbndqm -v v00_02_00 -q e17:prof:s83
67 23 Anthony Ezeribe
68 24 Anthony Ezeribe
# Checkout all the dependencies (for details see $MRB_TOP/srcs/sbndqm/ups/product_deps)
69 25 Anthony Ezeribe
mrb g artdaq_core -v v3_04_15 -q e17:prof:s83
70 26 Anthony Ezeribe
mrb g larsoft -v v08_18_00 -q e17:prof
71 27 Anthony Ezeribe
mrb g icarus-artdaq-base -v v0_06_06 -q e17:prof
72 21 Anthony Ezeribe
73 18 Anthony Ezeribe
</code></pre>
74 18 Anthony Ezeribe
75 1 Gray Putnam
76 1 Gray Putnam
NOTES: should remove sbnddaq-datatypes once it migrates to sbndaq-artdaq-core. Should figure out issue with “-“ v. “_”.