Weighing simulated galaxy clusters using lensing and X-ray