smash-transport / sparkx

SPARKX - Software Package for Analyzing Relativistic Kinematics in Collision eXperiments
https://smash-transport.github.io/sparkx/
GNU General Public License v3.0
5 stars 0 forks source link

Remove bins in histogram class #238

Closed NGoetz closed 2 months ago

NGoetz commented 3 months ago

Experimental data often has empty/non-measured bins. It would be nice to have discontinuous bin edges in the histogram class.

Hendrik1704 commented 3 months ago

Can you produce this by creating a histogram with custom bins and then setting the weight for the bins you don't want to 0, while the others weigh 1?

NGoetz commented 3 months ago

Sure, but then I have still empty bins flying around. Ideally the internal arrays are shortened when I remove a bin.

Hendrik1704 commented 3 months ago

Ah, OK. Now I get it 😄