| Summary: | Segmentation Fault | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | galante |
| Component: | geometry/solids | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED INVALID | ||
| Severity: | critical | CC: | Vladimir.Grichine |
| Priority: | P2 | ||
| Version: | 5.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| URL: | http://hep.fi.infn.it/PAMELA/am/pamela.tar.gz | ||
By analysing the provided application with a simple debug session it turns out
that the problem is due by the following line in the user application in
trackerPrimaryGeneratorAction constructor:
G4ParticleDefinition* particle = particleTable->FindParticle("electron");
This will return a NULL pointer, since "electron" is not a valid selection.
It should be instead:
G4ParticleDefinition* particle = particleTable->FindParticle("e-");
Thanks very much!! |
Hi, I created my geometry (trackerDetectorConstruction), set my sensitive detector(trackerSD) and i tried to run it with the codes of the example N02 of novice. I obtained the following results: ->with only one detector: all right ->with one detector and one magnetic module: Segmentation Fault when i do idle> /run/beamOn 1 ->with more then one detector : Segmentation Fault when i do idle> /run/beamOn 1 It seems that the problem is with more than one object, both detector or magnet. So i constructed my PhysicsList and my PrimaryGeneratorAction and i obtained Segmentation Fault when i run the executable. Please help me!! Thanks, Annamaria P.S. I'm running RedHat 7.3 with gcc-2.96-112.7.2