Message: Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

News Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods 

Forum: Geometry
Re: Question Proposed G4PhysicsOrderedFreeVector reverse or order methods (Phil Jones)
Date: 13 Jun, 2012
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 13 Jun 2012 14:13:21 GMT, Phil Jones wrote:
> Geant4 versions pre 4.9.5 had a distinct G4MaterialPropertyVector, in
> recent versions this is a typedefed G4PhysicsOrderedFreeVector. Usage of
> the G4MaterialPropertyVector was consistent regardless of the order
> elements were added, as the entries were ordered from low energy to
> high. This is not the case for G4PhysicsOrderedFreeVector whereby it
> preserves the order of addition.

Right! We discovered this issue recently ourselves. A modification to G4PhysicsOrderedFreeVector is in development, whereby the "InsertValues()" function takes care of sorting the values by energy, such that the vector ends up, and remains, properly sorted.

Once this has been validated, it can be added to the queue for inclusion in a possible 9.5-patch-02 release.

-- Michael Kelsey

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

1 None: Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods   (Phil Jones - 14 Jun, 2012)
(_ Warning: Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods   (Gumplinger Peter - 14 Jun, 2012)
(_ None: Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods   (Peter Gumplinger - 15 Jun, 2012)
 Add Message Add Message
to: "Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods"

 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 ]