Message: LXe example (Another Segmentation fault ?) with /hits/inactivate /LXeDet/pmtSD Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question LXe example (Another Segmentation fault ?) with /hits/inactivate /LXeDet/pmtSD 

Forum: Documentation and Examples
Date: 25 Oct, 2006
From: Jeong Han Lee <Jeong Han Lee>

Hi all, 

I moved my question into a right place. 

I am trying to understand the optical photon process with using example
LXe. When I introduce "/hits/inactivate /LXeDet/pmtSD" into file,
there will be Segmentation fault with no error message and no warning message. file is this:
/hits/inactivate /LXeDet/pmtSD 
/LXe/eventVerbose 1 
/run/beamOn 3

And comment out /hits/inactivate /LXeDet/pmtSD, and it works fine.

I think, it might be HitCollection problem when G4SDManager calls
Activate() function. Then I add "if (!pmt_hitCollection) return false;"
into the first line of ProcessHits_constStep() function of
file. Then, LXe example works fine in both cases, which are
/hits/inactivate /LXeDet/pmtSD or not.

However, I am not sure this is a good solution.

Does anyone give me some advice about this?

Thanks in advance.

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

 Add Message Add Message
to: "LXe example (Another Segmentation fault ?) with /hits/inactivate /LXeDet/pmtSD"

 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 ]