Message: RE: Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector () Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector () 

Keywords: Segmentation Fault
Forum: Run Management
Re: Question Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector () (Alan Shippen)
Re: None RE: Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector () (Vladimir Ivanchenko)
Date: 13 Mar, 2007
From: Alan Shippen <Alan Shippen>

Hi,
   Thank You for your quick reply, sorry I should of made it clearer my physics list 
should be exactly the same as in N03 (copied and pasted with a few variable modifications).

I have however noticed since that when I try to use G4cout to read out the materials used in 
the detector construction method in G4UserDetectorConstruction::Construct() that it causes a 
segmentation fault.
The materials are defined in a subroutine of detectorconstruction::detectorconstruction() as 
per example N04. As this is the second argument to the troublesome function G4RToEnergy... 
could this be the source of the original error?
I think the problem with the G4cout is the scope of the material variables defined in the 
header but I have tried to change this ensuring every variable is public but u still get the 
same problem. Does Geant change the scope of these variables at any point?
The G4cout does work when placed in the define materials subroutine however. 

I'm still open to the suggestion that my physics list could be wrong and will check through that now.

Any suggestions would be gratefully received. 

Alan

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

1 None: RE: Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector ()   (Makoto Asai - 13 Mar, 2007)
 Add Message Add Message
to: "RE: Segmentation Fault in G4RToEConvForGamma::BuildAbsorptionLengthVector ()"

 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 ]