Bf integrate histograms pipeline