Linear Collider Forum



Home » Software Tools » org.lcsim » Units for material properties
Re: Units for material properties [message #1292 is a reply to message #1273] Fri, 09 November 2007 15:55 Go to previous message
jeremy
Messages: 46
Registered: March 2004
Location: SLAC
Hi, Rich

I did some refactoring of the org.lcsim.detector.material package today.

-Added javadocs for IMaterial, IMaterialElement, IMaterialMixture
-Removed melting point and boiling point from the API completely
-Removed getMolecularWeigth from the API
-Removed getEffectiveNumberOfNucleons from the API
-Fixed bug where getRadiationLengthWithDensity was not computed for mixture
-Fixed bug where getMoliereRadius was not computed for mixture

The state can be set via the XML format. Along with pressure and temperature, this is important to have for the Bethe-Bloche formula. But since neither pressure and temperature aren't included in the XML file, these two fields are just placeholders for now. I plan on including them in the data files in the future, at least for elements.

The unit conventions for nuclear interaction length and radiation length were copied from Geant4, which uses g/cm2. If you want length, then you can use the "WithDensity" version of the method. Is this confusing?

I agree with you on units. I can add a conversion factor of 10 to the returned values. But it should probably be discussed at the Tuesday meeting first.


Jeremy McCormick, SLAC <jeremym@slac.stanford.edu>
 
Read Message
Read Message
Previous Topic:SpacePoint, SpaceVector etc
Next Topic:tuples
Goto Forum:
  


Current Time: Mon Jan 22 11:51:36 Pacific Standard Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software