Fit a histogram that has x-axis TDatime objects

Hi,

I have some problems trying to make a fit of my histogram which has the x-axis of TDatime . If I want to make a fit of the histogram from the falling spectrum part (run attached macro to see the example), for instance with an exponential, how can I proceed? It seems like it is problematic to use a TDatime object as the x-axis input (which is probably rather reasonable), but I am not sure how I should do it in the right way

I attach a macro and the text-file which the macro reads, the macro should then be able to be run standalone. The fit-trial has been commented out.

Will greatly appreciate some hints along the way
Thanks a lot!
Maiken
(PS Posted earlier wrongly to Pyroot forum)
logFileStudy-1.py (2.87 KB)
inputfile.txt (824 KB)

Hi,

no answer yet on this post. Should I be more specific?

Kind regards
Maiken