Project

General

Profile

Wiki » History » Version 51

« Previous - Version 51/52 (diff) - Next » - Current version
Gennadiy Lukhanin, 03/06/2020 01:36 PM


sbndqm -- A Repository for SBN Online Monitoring

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).

All analysis code is located in sbndqm/sbndqm/dqmAnalysis. An example analysis using the Metric Manager resides in sbndqm/sbndqm/dqmAnalysis/example.

Workshop Link

https://cdcvs.fnal.gov/redmine/projects/sbndqm/wiki/Sbndqm_Workshop

Building

History: instructions to build previous versions:

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.

Building on the sbnd-daq and icarus-gateway Machines

Steps:


# setup the software environment
source /daq/software/products/setup
source /daq/software/products_dev/setup
setup mrb

# NOTE: Replace VERSION with the version you want to build
export VERSION=v0_05_00

setup sbndqm $VERSION -qe19:prof:s94:py2

# make a new mrb environment
export MRB_PROJECT=sbndqm

# <make the needed directories>

mrb newDev -v $VERSION -q e19:prof:s94:py2
# NOTE: replace xxxx with what you see in your directory
source localProducts_sbndqm_${VERSION}_e19_prof_s94_py2/setup
cd srcs

# pull down the latest sbndqm 
mrb g sbndqm 

# build
mrbsetenv
mrb i -j6

In the future, to build the code, you will just need to run:


# setup the software environment
source /daq/software/products/setup
source /daq/software/products_dev/setup
setup mrb
# NOTE: replace xxxx with what you see in your directory
source localProducts_sbndqm_xxxx/setup
mrbsetenv
mrb i -j6

Building on the gpvm’s
Note: This is work in progress!



# setup the software environment
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
setup mrb

# make a new mrb environment
export MRB_PROJECT=sbndqm
mrb newDev -v v0_05_00 -q e19:prof:s94:py2

source localProducts_sbndqm_v0_05_00_e19_prof_s94_py2/setup

cd $MRB_TOP/srcs

# Checkout out the latest sbndqm
mrb g -b v0_05_00 sbndqm

# Checkout all the dependencies (for details see $MRB_TOP/srcs/sbndqm/ups/product_deps)
mrb g -b v0_05_00 -d sbndaq_online sbndaq-online
mrb g -b v0_05_00 -d sbndaq_decode sbndaq-decode
mrb g -b v0_05_00 -d sbndaq_artdaq_core  sbndaq-artdaq-core

#build
mrbsetenv
mrb i -j6

In the future, to build the code, you will just need to run:


# <cd into your dqm project directory>

# setup the software environment
source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
source /cvmfs/fermilab.opensciencegrid.org/products/artdaq/setup
setup mrb

source localProducts_sbndqm_v0_05_00_e19_prof_s94_py2/setup
mrbsetenv
mrb i -j6