Skip to content

AutomaticDropBins or DropBins options throw error

TRExFitter Version and Commit Hash

TRExFitter version: v4.26-dev This issue occurs also in versions 4.22-4.25

Description

I receive the following message:

Drawing pre-fit plots... terminate called after throwing an instance of 'std::out_of_range' what(): vector::Mrange_check: __n (which is 1) >= this->size() (which is 1)

when performing a BONLY fit and only to the SRs (which have the option AutomaticDropBins: TRUE), and I get no data/MC plots. This also occurs when using the option DropBins and specify the bins manually.

However, if I completely remove the AutomaticDropBins: TRUE (or DropBins) options from these regions, then the action "d" runs smoothly and pre-fit plots are produced.

Also, this doesn't happen in the Asimov fit, during which the data/MC plots are properly produced.

Reproducer Configuration

config_bonly

The path to the input ntuples is: /nfs/dust/atlas/user/etzovara/output_ttHbb/grid_212238/TRExFitter/input_merged/

The path to the histograms is (after running step n): /nfs/dust/atlas/user/etzovara/output_ttHbb/grid_212238/TRExFitter/action_n/configParts/boostedv426/resolvedRegions/Histograms/

(or if it's more convenient...) The same histograms are also copied here: /nfs/dust/atlas/user/etzovara/output_ttHbb/grid_212238/TRExFitter/fit_combined/configParts/STXS_6bins/baseline/boostedv426/data/Histograms/ where I run the wfdp steps.

Ideas to Resolve

If you have ideas about how to resolve your problem, or you attempted to solve it yourself, tell us about these ideas/attempts!

Edited by Eftychia Tzovara