I am familiar with selection… but it seems I can’t do a selection together with what you proposed.
What I have is X Y coordinates (column and row) of my pixel detector with the hit energy being measured on each pixel. And I have several frames with this info.
So my plan was to do:
hits->Draw(“col:row:energy>>pixel_map”,“frame==1000”,“colz”)
This didn’t work and I posted my question.
You proposed to do:
hits->Draw(“col:row”,“energy”,“colz”)
And this works fine.
How should I combine the two commands?
hits->Draw(“col:row”,“energy && frame==1000”,“colz”)?
This simply takes the frame selection and ignores the energy value