Message: How to get detectors response, particle hits as I am getting segmentation fault Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to get detectors response, particle hits as I am getting segmentation fault 

Forum: Event and Track Management
Date: 11 Oct, 2006
From: M. Jamil <M. Jamil>

Hi!

I am running my detector code for neutrons simulation. I could run my code in the GEANT4 environment. And I get the Idle Prompt, I can run the code by GPS method:

And I can see the compilation file like that: ls ~/geant4.7.0/bin/Linux-g++/exampleN099g /home/jamil/geant4.7.0/bin/Linux-g++/exampleN099g [jamil@ XXXNeutron]$ If I run it, I get:[jamil@XXXNeutron]$ ~/geant4.7.0/bin/Linux-g++/exampleN099g

*************************************************************
 Geant4 version $Name: geant4-07-00-cand-03 $   (17-December-2004)
                      Copyright : Geant4 Collaboration
                      Reference : NIM A 506 (2003), 250-303
                            WWW : http://cern.ch/geant4
*************************************************************

Visualization Manager instantiating... Visualization Manager initialising... Registering graphics systems...

You have successfully chosen to use the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  GAGTree (GAGTree)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  FukuiRenderer (DAWN)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateXm (OGLIXm)
  OpenGLStoredXm (OGLSXm)
  VRML1 (VRML1)
  VRML2 (VRML2)

phot:  Total cross sections from Sandia parametrisation. 
/home/jamil/geant4.7.0/data/G4NDL3.7 macro file <vis.mac> could not open. If I give particles like that:

Idle> /gps/verbose 2 /gps/pos/type Plane /gps/ang/maxtheta 40.0 deg /gps/energy 10.0 MeV /run/beamOn 100000

The Code runs all through, like that:

 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: 10
     Position: (0,0,0)
    Direction: (0,0,1)
 Primary Vetex generated !
 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: 10
     Position: (0,0,0)
    Direction: (0,0,1)
 Primary Vetex generated !

========================================================

but finally I get the segmentation fault. and Error One message.

In Another way, I used to run the code: as below:
===================================
Idle> /run/beamOn 10
 Number of events processed : 10
 User=0.02s Real=0.06s Sys=0.01s
number of generated events: 10
number of detected events: 0
efficiency: 0%
===================================

I don't know why particle doesn't go through the detector. I can see that graphically and the run summary said 0% efficiency too.

I dont know, what is wrong with this code,a nd why Particles are not passing through the detector.

Will be grateful if some body help me in this matter, so that I can solve the problem.

with best wishes,

Jamil

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

 Add Message Add Message
to: "How to get detectors response, particle hits as I am getting segmentation 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 ]