Global analysis of relativistic heavy-ion collisions