Message: Re: G4Scintillation: Wrong number of photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: G4Scintillation: Wrong number of photons 

Keywords: scintillation number photons
Forum: Processes Involving Optical Photons
Date: 07 Nov, 2002
From: Gumplinger Peter <Gumplinger Peter>

Dear Klaus,

We are aware of this problem for some time now and are working on a solution. It was also an item of discussion at the recent G4 workshop.

The problem is one of 'stepping manager' (G4SteppingManager2.cc) where for a 'killed' track in one PostStep action, another PostStep action is not called even when it is 'forced'. Unfortunately, fixing this code, which seems simple enough causes a whole set of new problems.

I welcome your posting because it adds more urgency to the issue. I sincerely hope that the next public release comes with a fix. In the meantime, you may want to do the following (excerpt from an email):

At the moment the only solution is changing all 'StopAndKill' assignments in all processes to 'StopButAlive'. This was found to cause only a tiny performance penalty. The 'break' statement in the InvokePostStepDoIt method cannot be removed because then the G4OpBoundary process would be called for an optical photon at the world-boundary, causing a crash because of an ill (incomplete) defined PostStepPoint in this case.

Regards, Peter Gumplinger

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

1 Ok: Re: G4Scintillation: Wrong number of photons   (Peter Gumplinger - 18 Nov, 2002)
 Add Message Add Message
to: "Re: G4Scintillation: Wrong number of photons"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews