Message: Thermal neutron code- gives segmenttaion fault Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Thermal neutron code- gives segmenttaion fault 

Forum: Particles
Date: 04 Nov, 2008
From: M. Jamil <M. Jamil>

Dear All GEANT4 Users !

I have problem with the my geant4 code. Actually I want to detect thermal neutrons using geant4 code, I am using QGSP model as my physics List.

The strange thing about the code is, it gives some values for trigger 10 particles only, 100 particles only, but when I increase the neutron particle trigger it shows segmentation fault.

I think the detection efficiency I am having from it is quite low.

These are the messages, which I get when running 10, 100 and 1000 trigger(neutron particles);

================================================ For 10 particles ===========================

NULL returned from G4StackManager.
Terminate current event processing.
 NumberOfParticlesToBeGenerated: 1
Shape not one of the plane types
Raw position 0,0,0
Rotated Position (0,0,0)
Rotated and Translated position (0,0,0)
Reference vectors for cosine-law (1,0,0) (0,1,0) (0,0,1)
Resultant Planar wave  momentum vector (0,0,1)
Creating primaries and assigning to vertex
Particle name: neutron
       Energy: 2.6e-09
     Position: (0,0,0)
    Direction: (0,0,1)
 Primary Vetex generated !
=====================================
  G4EventManager::ProcessOneEvent()
=====================================
1 vertices passed from G4Event.
G4PrimaryTransformer::PrimaryVertex (0(mm),0(mm),0(mm),0(nsec))
Primary particle (neutron) --- Transfered with momentum (0,0,0.0022103713)
A new track 0xa154948 (trackID 1, parentID 0) is passed to G4StackManager.
1 primaries are passed from G4EventTransformer.
!!!!!!! Now start processing an event !!!!!!!
### pop requested out of 1 stacked tracks.
Selected G4StackedTrack : 0xa154d40 with G4Track 0xa154948 (trackID 1, parentID 0)
Track 0xa154948 (trackID 1, parentID 0) is passed to G4TrackingManager.
Track (trackID 1, parentID 0) is processed with stopping code 2
### pop requested out of 0 stacked tracks.
### 0 waiting tracks are re-classified to
     0 urgent tracks and 0 waiting tracks.
NULL returned from G4StackManager.
Terminate current event processing.
Run terminated.
Run Summary
  Number of events processed : 10
  User=0.01s Real=0.38s Sys=0s
number of generated events: 10
number of detected events: 0
efficiency: 0%
=====================================
For 100 neutron particles:
===================================
Particle name: neutron
       Energy: 2.6e-09
     Position: (0,0,0)
    Direction: (0,0,1)
 Primary Vetex generated !
=====================================
  G4EventManager::ProcessOneEvent()
=====================================
1 vertices passed from G4Event.
G4PrimaryTransformer::PrimaryVertex (0(mm),0(mm),0(mm),0(nsec))
Primary particle (neutron) --- Transfered with momentum (0,0,0.0022103713)
A new track 0xae38948 (trackID 1, parentID 0) is passed to G4StackManager.
1 primaries are passed from G4EventTransformer.
!!!!!!! Now start processing an event !!!!!!!
### pop requested out of 1 stacked tracks.
Selected G4StackedTrack : 0xae38d40 with G4Track 0xae38948 (trackID 1, parentID 0)
Track 0xae38948 (trackID 1, parentID 0) is passed to G4TrackingManager.
Track (trackID 1, parentID 0) is processed with stopping code 2
### pop requested out of 0 stacked tracks.
### 0 waiting tracks are re-classified to
     0 urgent tracks and 0 waiting tracks.
NULL returned from G4StackManager.
Terminate current event processing.
Run terminated.
Run Summary
  Number of events processed : 100
  User=0.06s Real=3.05s Sys=0.02s
number of generated events: 100
number of detected events: 2
efficiency: 0.02%

================================== For neutron using beamOn 1000- Segmenttaion fault???? =================

Raw position 0,0,0
Rotated Position (0,0,0)
Rotated and Translated position (0,0,0)
Reference vectors for cosine-law (1,0,0) (0,1,0) (0,0,1)
Resultant Planar wave  momentum vector (0,0,1)
Creating primaries and assigning to vertex
Particle name: neutron
       Energy: 2.6e-09
     Position: (0,0,0)
    Direction: (0,0,1)
 Primary Vetex generated !
=====================================
  G4EventManager::ProcessOneEvent()
=====================================
1 vertices passed from G4Event.
G4PrimaryTransformer::PrimaryVertex (0(mm),0(mm),0(mm),0(nsec))
Primary particle (neutron) --- Transfered with momentum (0,0,0.0022103713)
A new track 0xab5ea80 (trackID 1, parentID 0) is passed to G4StackManager.
1 primaries are passed from G4EventTransformer.
!!!!!!! Now start processing an event !!!!!!!
### pop requested out of 1 stacked tracks.
Selected G4StackedTrack : 0xab5edd0 with G4Track 0xab5ea80 (trackID 1, parentID 0)
Track 0xab5ea80 (trackID 1, parentID 0) is passed to G4TrackingManager.
Track (trackID 1, parentID 0) is processed with stopping code 2
### pop requested out of 0 stacked tracks.
### 0 waiting tracks are re-classified to
     0 urgent tracks and 0 waiting tracks.
NULL returned from G4StackManager.
Terminate current event processing.
Segmentation fault
[test@cmssw1 Thermal_Neutron]$
====

Waiting for your reply,

Jamil

 Add Message Add Message
to: "Thermal neutron code- gives segmenttaion fault"

 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 ]