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

Question Proposed G4PhysicsOrderedFreeVector reverse or order methods 

Forum: Geometry
Date: 13 Jun, 2012
From: Phil Jones <Phil Jones>

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.

Unfortunately my code adds entries by wavelength, lowest to highest and therefore highest to lowest energy. This then breaks all subsequent code that assumes the low to high energy order, for example G4Cerenkov.

Could you therefore add a reverse method to G4PhysicsOrderedFreeVector, or more preferably a method to order the values?

Phil

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

1 News: Re: Proposed G4PhysicsOrderedFreeVector reverse or order methods   (Michael H. Kelsey - 13 Jun, 2012)
(_ 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: "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 ]