Message: Re: Strange behavior of the OpWLS process Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: Strange behavior of the OpWLS process 

Forum: Processes Involving Optical Photons
Re: Question Strange behavior of the OpWLS process (vesna cuplov)
Re: Feedback Re: Strange behavior of the OpWLS process (Gumplinger Peter)
Date: 25 Jun, 2012
From: vesna cuplov <vesna cuplov>

Dear Peter,

Thank you for your help in solving my issue. I explain below the problem and the solution for book-keeping:

When defining the properties of my materials in my Materials.xml file, I was giving the values in decreasing order of energy:

<ve energy="4.13" value="2.0"/>
<ve energy="3.54" value="3.33"/> ....

This was fine when working with 9.4 but is not fine in 9.5 up to now. In 9.4 the code uses G4MaterialPropertyVector that automatically sorts the entries by photon energy (increasing order of energy). With >9.5, this method was replaced by G4PhysicsOrderedFreeVector that doesn't assure that data are ordered: the original input order is preserved. That class didn't actually 'order' anything.

With the values given in increasing order of energy, the problem is solved:

<ve energy="3.54" value="3.33"/>
<ve energy="4.13" value="2.0"/> ....

As you explained, with patch02 in 9.5 we'll be again able to provide the array in decreasing order of energy because a modified G4PhysicsOrderedFreeVector will order values by energy. :)

(see also:


 Add Message Add Message
to: "Re: Strange behavior of the OpWLS process"

 Subscribe Subscribe

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