Skip to content

Generate VALOR DSTs

bslater2 edited this page Feb 27, 2024 · 9 revisions

Generating DST's

Need to setup VALOR with sbncode:

current_path=$(pwd)
. /exp/sbnd/app/users/bslater/sbncode-v08_47_00/setup_sbncode-v08_47_00.sh
cd /exp/sbnd/app/users/bslater/valor/VALOR-SBN
. setup/setup_at_cvmfs_root6.sh . ../VALOR-SDK
cd ../VALOR-SDK
./configure
cd ../VALOR-SBN
./configure
make -j4
cd $current_path

(change to own directories for VALOR-SBN etc.)

/exp/sbnd/app/users/bslater/sbncode-v08_47_00/setup_sbncode-v08_47_00.sh:

source /cvmfs/uboone.opensciencegrid.org/products/setup_uboone.sh
setup uboonecode v08_47_00 -q e19:prof
source /cvmfs/sbnd.opensciencegrid.org/products/sbnd/setup_sbnd.sh
setup sbndcode v08_47_00 -q e19:prof
unsetup larbatch
source /cvmfs/icarus.opensciencegrid.org/products/icarus/setup_icarus.sh
unsetup mrb
setup mrb -o
source /exp/sbnd/app/users/bslater/sbncode-v08_47_00/localProducts_larsoft_v08_47_00_e19_prof/setup
#mrbslp
#mrbsetenv
source /exp/sbnd/app/users/bslater/sbncode-v08_47_00/srcs/sbncode/sbnanalysis/build/bin/setup_sbnanalysis.sh

Make dsts:

valor_sbn-make_sbncode_minidst 
  --input input_file.root --output output_file.root 
  --sample nuelikeCChigh --apply-weights 
  --write-universes       // optionally write out the systematic variations (file will be large!) 

See VALOR-SBN/src/sbn/Apps/make_sbncode_minidst.cxx for more arguments

Creating corresponding data products

Please see here for the creation of new dsts, universes or mock_data data products for distribution.

Clone this wiki locally