Problem 889 - LXe example, Segmentation fault
Summary: LXe example, Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: optical/LXe (show other problems)
Version: 8.1
Hardware: PC Linux
: P5 normal
Assignee: gum
URL: http://geant4-hn.slac.stanford.edu:50...
Depends on:
Blocks:
 
Reported: 2006-09-14 17:19 CEST by gum
Modified: 2007-04-08 18:13 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description gum 2006-09-14 17:19:56 CEST
As reported by amaresh kumar in the "Examples Forum" the LXe example core dumps
on startup.
Comment 1 gum 2006-09-14 17:32:59 CEST
Set the pointers to G4MaterialPropertiesTable LXe_mt and MPTPStyrene to NULL in
the class constructor of LXeDetectorConstruction. This fixes the core dump in
method SetDefaults at:

  if(LXe_mt)LXe_mt->AddConstProperty("SCINTILLATIONYIELD",12000./MeV);
  if(MPTPStyrene)MPTPStyrene->AddConstProperty("SCINTILLATIONYIELD",10./keV);

on program start-up

Fix is tagged as LXe-V08-01-00