ldmx-sw icon indicating copy to clipboard operation
ldmx-sw copied to clipboard

Add `TProfile` as a potential histogram type

Open tvami opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? Please describe.

I was thinking of having a plot that has the different producers in the X axis and the time / event on the Y axis. This would be a step towards https://github.com/LDMX-Software/ldmx-sw/issues/676

But this plot is not a TH1, but rather a TProfile

Describe the solution you'd like

Add another create function that let's TProfile to be added in the histo pool, in

https://github.com/LDMX-Software/ldmx-sw/blob/2d449dc907f3b131b1c3c48c575695d0eae795f0/Framework/src/Framework/Histograms.cxx

Describe alternatives you've considered

There are several alternatives discussed for the timing question in the issue above, but having the ability to have a TProfile could be useful for other things in the future.

Additional context

Well I'm also annoyed that the tracking timing is unstable in the 4th digit, and because of that the CI always fails

for example https://github.com/LDMX-Software/ldmx-sw/actions/runs/13101129833/job/36549824418?pr=1563

Image

But if this was in a histogram we'd not notice the difference.

tvami avatar Feb 03 '25 03:02 tvami

One thing we need to discuss is how to differentiate the overload function from the TH1 case

tvami avatar Feb 03 '25 03:02 tvami