Analysis code used for h2l2q