Message: Segmentation fault for certain particle energies (Same post as below. I forgot the title!) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Segmentation fault for certain particle energies (Same post as below. I forgot the title!) 

Forum: Physics List
Date: 24 Feb, 2005
From: Matt Orr <orrm@uah.edu>

Currently I have a detector at which I am firing 10 GeV protons. At the end of each event I print out a summary of what was detected by the two sensitive detctors I have. This all seems to work just fine. However, when I raise or lower the energy of the incident particle to a particular value I get a segmentation fault that occurs after the summary of my first sensitive detector on the first event. I could lower the incident particle energy to, say, 5 GeV and the simulation may run fine. However, at some point I start getting a segmentation fault (let's just say at 1 GeV for the sake of argument). The same thing happens if I raise the particle energy. What could be the cause of an error like this. Any insight would be very helpful. Thanks!

Below is the tail end of the output after the first event for a run with 20 MeV incident protons.

*********************************************************************************************************
* G4Track Information:   Particle = opticalphoton,   Track ID = 4,   Parent ID = 1
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0    0.853    -1.44     85.1  3.74e-06        0        0         0 BGOcryst_phys initStep
 Photon at Boundary! 
 Old Momentum Direction: (-0.331523,-0.886308,0.323342)
 Old Polarization:       (-0.732651,0.457785,0.503641)
 New Momentum Direction: (-0.331523,-0.886308,0.323342)
 New Polarization:       (-0.732651,0.457785,0.503641)
 *** Detection *** 
    1    0.849    -1.45     85.1  3.74e-06 3.74e-06   0.0124    0.0124 PMT_BGO_phys Transportation
Photon Count = 32

*********************************************************************************************************
* G4Track Information:   Particle = opticalphoton,   Track ID = 3,   Parent ID = 1
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0    0.839    -1.44     84.9  3.48e-06        0        0         0 BGOcryst_phys initStep
    1    -27.6    -3.32      8.9  3.48e-06        0     81.2      81.2 universe_phys Transportation

*********************************************************************************************************
* G4Track Information:   Particle = opticalphoton,   Track ID = 2,   Parent ID = 1
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0    0.851    -1.44     85.1  3.04e-06        0        0         0 BGOcryst_phys initStep
    1    -28.1    -21.7     66.3  3.04e-06        0       40        40 universe_phys Transportation

<==================================== EVENT SUMMARY =========================================>
  Number of optical photons that hit the PMT: 32

 Hits Collection: in this event there was(were) 4 primary particle hit(s).

 Particle Name: proton  trackID: 1  energy deposit: 2.65056 MeV  position: 0.00695549 -0.0437395 11.0946 cm 
  Particle Name: proton  trackID: 1  energy deposit: 2.45526 MeV  position: 0.0822473 -0.0921662 9.95149 cm 
  Particle Name: proton  trackID: 1  energy deposit: 2.19703 MeV  position: 0.10372 -0.113842 9.03869 cm 
  Particle Name: proton  trackID: 1  energy deposit: 1.45991 MeV  position: 0.0853052 -0.143534 8.51 cm 

<==================================== END OF EVENT ==========================================>

<==================================== EVENT SUMMARY =========================================>
 Segmentation fault 

You can see the event summary of my frist sensitive detector prints out fine, but as the event summary of my second sensitive detector begins I get a segmentation fault. Again, this doesn't happen for all energies (10 GeV works fine). I don't even know where to begin in trying to debug this. Any suggestions would be very much appreciated.

- Matt -

 

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Segmentation fault for certain particle energies (Same post as below. I forgot the title!)   (Makoto Asai - 24 Feb, 2005)
 Add Message Add Message
to: "Segmentation fault for certain particle energies (Same post as below. I forgot the title!)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]