Jet Gamma Balance method, coding