Filling a Histogram detector data

Hi I was having trouble filling a histogram with a function. Here is my code:

root[0] TH1D*h1 = new TH1D(“h1”,“h1”,100,600,1200)

root[1] h1->Fill(“hit.r/mm”,“ev.Am*(hit.det==28 && hit.pid==11)”)

I am not exactly sure how to fill h1 with the results of that.

This doesn’t look like a valid signature. Please take a look at the TH1::Fill available methods

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