Running VST code on GPVMs
Starting from scratch
-
Log on to sbndgpvm01/02/03\
ssh <uname>@sbndgpvm01.fnal.gov
-
Go to your app directory
-
Create a new directory and cd into it\
mkdir develop_vst cd develop_vst
-
Set up the SBND environment\
source /grid/fermiapp/products/sbnd/setup_sbnd_legacy.sh
-
Set up a new development area for larsoft version v06_73_00\
mrb newDev -v v06_73_00 -q e15:prof source localProducts_larsoft_v06_73_00_e15_prof/setup
-
Fetch sbndcode using git\
cd srcs mrb g sbndcode
-
Checkout the VST purity analysis branch\
cd sbndcode git checkout feature/tb_PurityVST
-
Build the code\
cd $MRB_BUILDDIR mrbsetenv mrb i -j4 mrbslp
Setting up and existing build
-
On a gpvm set up the SBND environment\
source /grid/fermiapp/products/sbnd/setup_sbnd_legacy.sh
-
Go to your development directory
-
Set up the development environment\
source localProducts_larsoft_v06_73_00_e15_prof/setup cd $MRB_BUILDDIR mrbsetenv mrbslp
Simulating and viewing events
-
There is currently one file for generating single particle events called prodsingle_vst.fcl
-
It contains configuration parameters that can be edited to change the particle type, energy, position, direction, etc.
-
It lives in sbndcode/JobConfigurations
-
You generate events with the command\
lar -c prodsingle_vst.fcl -n <number of events> -o <name of output(.root) file>
-
It is best to do this in your data directory for small numbers of events or Dcache for large jobs
-
There is an event display available for viewing events.\
lar -c evd_vst.fcl -s <name of event file>
-
You will need to either ssh with X11 forwarding or use a VNC server to see the event display
Running the analysis code
-
The VST purity analysis code is run using pipeline_RawHit.fcl which lives in sbndcode/VSTAnalysis/fcl/pipeline_example/\
lar -c pipeline_RawHit.fcl -s <name of event file>
-
It calls the VSTAnalysis_module.cc but the bulk of the analysis code is in Analysis.cc
-
The purity code lives in Purity.cc