OK, so this doesn’t work with ROOT v6.18.04, but works with v6.20.00. Note that the version 6.20.00 might not work on your system if the version of Visual Studio (or the SDK) is different than the one used to build ROOT. But you can try nevertheless. Otherwise you can build from source
Hi @bellenot, I installed Root 6.20 and the macro works, but it doesn’t look like working fine. Data should be a Gaussian-like function distribution…I should get this graph
but i get the one in attachment! t’s different for shape and number of counts on y axis… o_O