I am just wondering if there inside ROOT a dedicated class to load a 3-dimensional matrix that defines 3-dimensional vectors. Thats it an object dedicated to host fieldmap-like data.
but my matrix is of the order of 5M elements in total, So I have 5M TVector3 elements, and when I want to get those elements it starts to be a bit slow.
I though, perhaps using a TH3F for each of the field components would be more efficient?
Do you have any advice to improve performance here?
There is any 3-dimensional fieldmap-like class at ROOT that cares about the performance under the table?
You can probably store in memory the data in a RTensor or something similar (like a big std::vector ) and then re-fill a TVector3 when needed using for example TVector3::SetXYZ( v1,v2,v3);