Added tree representation for the hierarchy refs #19436