Problem 2538 - G4GeneralParticleSource::GetParticleEnergy()
Summary: G4GeneralParticleSource::GetParticleEnergy()
Status: RESOLVED FIXED
Alias: None
Product: Examples/Advanced
Classification: Unclassified
Component: general (show other problems)
Version: 11.1
Hardware: PC Windows
: P4 normal
Assignee: Susanna Guatelli
URL:
Depends on:
Blocks:
 
Reported: 2023-04-18 05:31 CEST by wangtq@sysucc.org.cn
Modified: 2023-12-05 22:35 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description wangtq@sysucc.org.cn 2023-04-18 05:31:39 CEST
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.
Comment 1 Susanna Guatelli 2023-12-05 22:32:11 CET
Solved in 11.2
Comment 2 Susanna Guatelli 2023-12-05 22:35:04 CET
substituted with G4GeneralParticleSource::GetCurrentSource()->GetEneDist()->GetMonoEnergy();