| Summary: | modify the code will lead to segmentation fault | ||
|---|---|---|---|
| Product: | Examples/Basic and Novice | Reporter: | enrico |
| Component: | N01 | Assignee: | Makoto.Asai |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | asai |
| Priority: | P2 | ||
| Version: | other | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
enrico
2005-06-12 19:04:06 CEST
The physics list of exampleN01 has only geantino and its transportation process. You cannot shoot other particle unless you modify the physics list. ExN01PrimaryGeneratorAction.cc: line 43 particleGun->SetParticleDefinition(particleTable->FindParticle(particleName="proton")); ExN01PhysicsList.cc: line 46 G4Proton::ProtonDefinition(); in fact i have changed the particle in physicslist and particle gun this modification will lead segmentation fault under SL4. |