Project

General

Profile

Setting up an artdaq-demo development area with MRB

Preparation

RPM Packages:
ruby

Requirements from SciSoft:
ups
mrb
artdaq bundle

mkdir /path/to/products/area # for a standalone install, should be /path/to/artdaq-demo-base/products
cd /path/to/products/area
curl http://scisoft.fnal.gov/scisoft/packages/ups/v5_1_5/ups-5.1.5-Linux64bit%2B2.6-2.12.tar.bz2|tar -jx
curl http://scisoft.fnal.gov/scisoft/packages/mrb/v1_05_00/mrb-1.05.00-noarch.tar.bz2|tar -jx
source setups 
curl http://scisoft.fnal.gov/scisoft/bundles/tools/pullProducts -o pullProducts
chmod +x pullProducts
./pullProducts . slf6 artdaq-v1_12_11 s11-e7 debug
rm -f *.bz2

Install Steps:

# Change /path/to to the path you wish to have artdaq_demo installed in
mkdir /path/to/artdaq-demo-base
cd /path/to/artdaq-demo-base

# Setup required UPS products
Base=$PWD
setup mrb
setup git
setup gitflow

# Make the MRB development area
export MRB_PROJECT=artdaq_demo
mrb newDev -f -v v2_04_00 -q e7:eth:debug
. $Base/localProducts_artdaq_demo*/setup

# Download artdaq_demo and dependent repositories
cd $MRB_SOURCE
#mrb gitCheckout -d artdaq_core      ssh://p-artdaq@cdcvs.fnal.gov/cvs/projects/artdaq-core # OPTIONAL
#mrb gitCheckout -d artdaq_utilities ssh://p-artdaq-utilities@cdcvs.fnal.gov/cvs/projects/artdaq-utilities # OPTIONAL
#mrb gitCheckout -d artdaq           ssh://p-artdaq@cdcvs.fnal.gov/cvs/projects/artdaq # OPTIONAL
mrb gitCheckout -d artdaq_core_demo ssh://p-artdaq-core-demo@cdcvs.fnal.gov/cvs/projects/artdaq-core-demo
mrb gitCheckout -d artdaq_demo      ssh://p-artdaq-demo@cdcvs.fnal.gov/cvs/projects/artdaq-demo
# NOTE: MRB currently expects the checked-out repository name to be the same as the UPS product name. Since the artdaq products use dashes as delimiters, we have to manually change the name with the -d flag

# Setup product dependencies (Not sure if absolutely necessary, but good to have)
echo " 
artdaq_demo artdaq artdaq_core_demo
artdaq artdaq_core
artdaq_core_demo artdaq_core
artdaq_core -" >>dependency_list

# Build artdaq_demo
cd $MRB_BUILDDIR
mrbsetenv
export CETPKG_J=24
mrb build    # VERBOSE=1

Developing With MRB

To setup a new window into the same development environment:

setup mrb
source /path/to/artdaq-demo-base/localProducts_artdaq_demo*/setup
mrbsetenv
export FHICL_FILE_PATH=$FHICL_FILE_PATH:$ARTDAQ_DEMO_DIR/tools/fcl
cd $MRB_BUILDDIR/artdaq_demo/bin

Building

After making changes, build with

mrb b # Equivalent to calling buildtool

from any directory.

Doing a Clean Build

To completely rebuild your artdaq_demo MRB installation:

mrb z # Equivalent to buildtool -c
mrbsetenv
mrb b # Equivalent to buildtool

Running the System

To run the system, open two windows in the MRB environment (using the instructions above). In the first window, execute start2x2x2System.sh. The second window is used for the same manage2x2x2System.sh commands as in Running_a_sample_artdaq-demo_system.