Skip to content

Generate VALOR DSTs from CAF ttrees

Shweta Yadav edited this page Sep 17, 2025 · 1 revision

Follow instructions on setting up available here

If your analysis is based on CAFana, then save the output of your selection along with systematic weights available in recTree following these examples test_ensemble.C and test_GENIESyst.C to access systematics which then can be saved in the flat ttree form by accessing constructors Tree.h

Once you have these flat ttrees, then use the DST maker available in syadav_sbn_exclusive_ana branch and using this macro - make_recoselection_minidst_shweta.cxx

This DST maker can be run by [see below instructions before running it] -

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

Copy the following file in your VALOR-SBN app area make_recoselection_minidst_shweta.arg and compile before running the DST maker

Clone this wiki locally