How to use FillN with floats?

Hello,

I noticed that trying to use the FillN method with TH1F objects results in an errors. However, ROOT will compile if you add an array of doubles to a TH1F. So this leaves me with two questions:

  1. Is there a way to FillN floats into a TH1F?

  2. What really happens when you FillN doubles into a TH1F?

  1. FillN() has no overload taking a float array; please use doubles.
  2. FillN() behaves as if Fill() got called for each element in the array. See https://root.cern.ch/doc/master/TH1_8cxx_source.html#l03380

Cheers, Axel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.