Code for PHENIX and RHIC