Project

General

Profile

Wiki » History » Version 9

« Previous - Version 9/52 (diff) - Next » - Current version
Gray Putnam, 05/06/2019 02:57 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.

Building

sbndqm is setup as a ups product. However, neither sbndqm nor all of its dependencies are yet available globally. Thus, we will need to build sbndqm and a few of its dependencies locally.

Building on the sbnd-daq* Machines

On these machines, we have some of the sbndaq repositories available. Here are the steps:

Steps:


# setup the software environment
source /grid/fermiapp/products/larsoft/setup
source /grid/fermiapp/products/artdaq/setup
source /software/products/setup
setup mrb
# make a new mrb environment
export MRB_PROJECT=sbndqm
mrb newDev -v v0_01_04 -q e15:prof
source localProducts_sbndqm_v0_01_04_e15_prof/setup
cd srcs
# pull down the latest sbndqm 
mrb g sbndqm
# pulling down dependencies...
# sbndaq-redis-plugin
mrb g -d sbndaq_redis_plugin -t v0_01_04 sbndaq-redis-plugin

# we need to mess with the qual’s so build our own sbndaq-artdaq-core
mrb g -d sbndaq_artdaq_core -t v0_01_04 sbndaq-artdaq-core

# have to edit ups/product_deps in sbndaq_artdaq_core:
# change all s67 qualifiers for artdaq_core to s65

# build
mrbsetenv
mrb i -j6

Building on the gpvm’s

Steps:


# 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_01_04 -q e15:prof
source localProducts_sbndqm_v0_01_04_e15_prof/setup
cd srcs
# pull down the latest sbndqm 
mrb g sbndqm
# pulling down dependencies...
# sbndaq-redis-plugin
mrb g --product sbndaq_redis_plugin -t v0_01_04 sbndaq-redis-plugin

# we have to build additional dependencies which are not available globally on the gpvm's

# sbndaq-artdaq-core
mrb g --product sbndaq_artdaq_core -t v0_01_04 sbndaq-artdaq-core
# icarus base dependencies -- needed to build even if you aren’t using icarus stuff
mrb g --product icarus_artdaq_base -t v0_06_05 icarus-artdaq-base

# have to edit srcs/sbndaq_artdaq_core/ups/product_deps in sbndaq_artdaq_core:
# change all s67 qualifiers for artdaq_core to s65

# build
mrbsetenv
mrb i -j6

NOTES: should remove sbnddaq-datatypes once it migrates to sbndaq-artdaq-core. Should figure out issue with “-“ v. “_”.