Drawing TVector3

I have a TTree that contains TVector3 branch. I wanted to quickly plot the X component of the TVector3 in a TBrowser using this line:

root[1] tree->Draw("vBeam[0]>>h(100,0,1)" , "" , "")

This resulted in an empty histogram and the following error:

Warning in <TSelectorDraw::ProcessFillObject>: Not implemented for TVector3

Is there any way around this?
Thank you in advance

_ROOT Version: 6.24/06
_Platform:Ubuntu 22.04.2 LTS (Jammy)
_Compiler: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0

Hi @Omar,

thank you for your question. Maybe @couet could help here?


1 Like

That’s more for @pcanal

1 Like

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