Particle-beam behavior in the SNS linac with simulated and reconstructed beams