Skip to content

VALOR setup and getting files

Shweta Yadav edited this page Sep 17, 2025 · 8 revisions

VALOR Setup

git clone git@github.com:VALOR-fit/VALOR-SBN.git
git clone git@github.com:VALOR-fit/VALOR-SDK.git
cd /path/to/VALOR-SBN
. setup/setup_at_cvmfs_root6.sh . /path/to/VALOR-SDK
cd /path/to/VALOR-SDK
./configure --enable-fault-on-die --enable-debug
make clean; make -j4
cd /path/to/VALOR-SBN
./configure
make clean; make -j4

If VALOR has been setup and compiled previously, can omit the make steps. Is probably a good idea to make the above a shell script.

The default location to store data files is VALOR-SBN/data/ (make the 'data' directory if it doesn't exist). If we're being good citizens (and especially if the data files are large), it may not be recommended to have the VALOR code and data files in the same location - can then just store the files elsewhere and symlink them.

e.g. At FNAL, VALOR code would be in /sbnd/app/... and (large) data files shoud be in /sbnd/data/...

Getting files

Can either generate all your own input files (will need sbncode (soon to be CAF) files to make the DST's - ask if you want to get your hands on these) or can just fetch pre-existing files.

Generate your own

Generating DST

Generating DSTs from CAF analysis output

Generating systematic covariance matrices

Generating systematic response functions

Get pre-existing files

valor_data-fetch_set --data-resource <liverpool_username>@gateway.ph.liv.ac.uk:/hepstore/neutrino1/data_archive/ --data-set the_data_set_you_want

See list of SBN data products for available data sets.

If you're being prompted for your Liverpool password for each individual file (was happening to me when copying from Liverpool -> FNAL), you need to copy your ssh key to Liverpool. Do something along the lines of (on the FNAL machine);

cd ~/.ssh 
ssh-copy-id -i id_rsa.pub <liverpool_username>@gateway.ph.liv.ac.uk

If your id_rsa.pub file doesn't exist, I think you can generate it by doing ssh-keygen

Clone this wiki locally