During run the example, advanced/STCyclotron, I find G4GeneralParticleSource::GetParticleEnergy() function can not get the primary particles' energy correctly when run in Windows OS. While in Linux OS, G4GeneralParticleSource::GetParticleEnergy() function work well. I can't solve the bug.
Solved in 11.2
substituted with G4GeneralParticleSource::GetCurrentSource()->GetEneDist()->GetMonoEnergy();