Message: Re: Segmentation fault error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Segmentation fault error 

Forum: Run Management
Re: Question Segmentation fault error (Matt Worden)
Date: 10 Jul, 2009
From: Tsukasa Aso <Tsukasa Aso>

Hi,

 There are two points.

1) Choice of Primitive scorer

  The surface scoring is strongly depends on the shape of the scoring geometry.
When you use G4Sphere for a scoring geometry, you have to use G4SphareSurfaceCurrent. (G4FlatSurfaceCurrent is for G4Box geometry.).
 This is the main source of segmentation fault.

2) Assignment of G4MultiFunctionalDetector and PrimitiveScorer

 If you are starting with SLAC HandsOn3,
(http://geant4.slac.stanford.edu/tutorial/mcgill06/HandsOn3/HandsOn3.htm),
I recommend to use a parameterisation volume in the example.
i.e. class BeamTestScoreParameterisation. 
The class BeamTestScoreParameteisation only segments a sphere in theta angle.
So, you may need to modify it to segment a sphere in both theta and phi angles. 

 Except for this modification, the other part of scoring implementation
is almost same with BeamTestDetectorConstruction.cc in HandsOn3.
(G4MultiFunctionalDetector should be instantiated only once.)

 Please check the HandsOn3 example.
 If you have any difficulty, please post your question again.

Tsukasa Aso

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

1 None: Re: Segmentation fault error   (Matt Worden - 20 Jul, 2009)
1 None: Re: Segmentation fault error   (Tsukasa Aso - 21 Jul, 2009)
2 None: Re: Segmentation fault error   (Tsukasa Aso - 21 Jul, 2009)
1 None: Re: Segmentation fault error   (Matt Worden - 21 Jul, 2009)
2 None: Re: Segmentation fault error   (Tsukasa Aso - 19 Sep, 2009)
 Add Message Add Message
to: "Re: Segmentation fault error"

 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 ]