Skip to content
markrosslonergan edited this page Sep 6, 2018 · 12 revisions

The input file format for SBNfit used to construct covariance matrices and central value predictions was decided during the 2017 Columbia workshop to be as simple and straightforward as possible in order to ensure that it could be used in as generic a situation as possible.

Input files are simple root files containing one or more TTrees that each analyzer constructs post-analysis from reconstructed variables

The only two compulsory requirements are:

  • A branch called weights that is a std::map<std::string, std::vector>
  • A branch corresponding to whichever reconstructed variable the final fit and covariance matrix is to be build with, currently required to be a double

The weights branch is the standard EventWeight class format in which the string corresponds to the variation name (must be unique) and the vector corresponds to each individual weight for each universe. Note that each vector must be of identical size across different files for the same variation (string) but can change between different variations.

Some examples of such a simple file can be found at /uboone/data/users/markross/SBNfit_example_data/1e1p.root which contains a single tree (events) with the weights branch and a reconstructed energy variable ereco.

If one wishes to do neutrino oscillations then in addition to the above two branches the file (or associated friend tree) must also contain

  • A branch corresponding to true neutrino energy, currently required to be a double
  • A branch corresponding to true neutrino oscillation length, currently required to be a double

Clone this wiki locally