sorry if the question was already addressed,
I would like to store matrices in a TTree with variable length.
i know how to do this with 1D arrays, but cannot go further with 2D. Does someone have a working example he can publish on this forum, or point me to some relevant documentation?
m_maxNJets = 5
m_r_j_N = array( “i”, [ 0 ] ); m_jJTTree.Branch(“r_j_N”, m_r_j_N, “r_j_N/I” )
m_r_j_m = array( “d”, m_maxNJets*[ 0. ] ); m_jJTTree.Branch(“r_j_m”, m_r_j_m, “r_j_m[r_j_N]/D” )