Skip to content

Produce systematic parameter tick tables

RhiannonSJ edited this page Oct 16, 2020 · 4 revisions

Produce systematic parameter tick tables

There are two methods implemented

  1. The original way: By reading the parameter configurations to determine if the parameter should affect a given mode.
  2. By reading the splines and determining if the parameter is affecting the current mode, additional colour coding signifies whether the response function is implemented 'correctly' according to the configuration.

Method 1: Reading parameter configurations

python $VALOR_SBN/macros/systematic_construction/make_table_applied_syst_to_mode.py \
  -c analysis/config.xml \
  --skip-flux --skip-det \ // If we are writing the interaction table
  -b BNB_FHC -s numuCCincl \
  -o tick_table.tex

Method 2: Comparing parameter configuration to spline implementation

  • First, get the list of modes associated with each parameter (requires splines to have been generated with --save-modelist option)
valor $VALOR_SBN/macros/systematic_construction/chain_modelists.C'("syst_type","/path/to/modelists/","sample_name","output_tag")'

Where syst_type = {mod, prop, flux}

  • Then make tick table from modelist for each parameter
python $VALOR_SBN/macros/systematic_construction/make_table_spline_applied_to_mode.py \
  -c analysis/config.xml \
  --skip-flux --skip-det \ // If we are writing the interaction table
  -b BNB_FHC -s numulikeCChigh \
  -o tick_table.tex \
  -m all_modelists.root // The modelist you created in the first step

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