Inconsistent bin numbers when using DropBins and SeparateGammas
TRExFitter Version and Commit Hash
TRExFitter version: TRExFitter v4.26-dev
Commit Hash: 748eacf8
Description
When using DropBins: 4 and SeparateGammas: TRUE, an error is printed in the h step:
=== INFO::TRExFit::WriteHistos: Writing histograms to file VBSNeutrinos-ASIMOV-l1pt_CRWZMjj500/Histograms/VBSNeutrinos-ASIMOV-l1pt_CRWZMjj500_histos.root ...
=== DEBUG::SampleHist::WriteToFile: adding separate gammas as SHAPE systematic stat_HeavyN_mN1TeV
Error in <TH1D::Add>: Attempt to add histograms with different number of bins : nbins h1 = 3 , nbins h2 = 4
Error in <TH1D::Divide>: Cannot divide histograms with different number of bins
It goes away when removing either of the options mentioned above.
Reproducer Configuration
I have attached a minimal reproducer, just run trex-fitter h mwe.cfg.
mwe.tar.gz
Ideas to Resolve
None, sorry