Longitudinal beam dynamics code developed at CERN