I’d like to create an Histo1D
with this custom bin-edges:[0,40,80,120,160,200,240,280,330,380,430,500,800,6500]
Do you have any suggestions?
Thanks,
Chiara
I’d like to create an Histo1D
with this custom bin-edges:[0,40,80,120,160,200,240,280,330,380,430,500,800,6500]
Do you have any suggestions?
Thanks,
Chiara
Try passing that array of edges to the appropriate histogram model when booking it; something like
double xbins[Nbins+1] = {0,40,80,120,160,...(etc)}; // size is Nbins+1, i.e. needs the upper edge of the last bin
df.Histo1D(("name", "title", Nbins, xbins), "thevariable");
Thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.