Properties with units (ABSLENGTH)

From: Brett Viren <bv_at_bnl.gov>
Date: Thu, 3 May 2012 17:00:53 -0400


Hi again,

How are property units supposed to be treated in VMC?

I got a bit of a surprise when I tried to define the ABSLENGTH property for a material. I was defining the lengths w/in CLHEP'S SystemOfUnits. When I asked G4 to dump what it received the lengths had all gained an extra factor of 10.

I'm setting the property via gMC->SetMaterialProperty() and I found this code in the definition of that method:

    if ( G4String(propertyName) == "ABSLENGTH" ||

         G4String(propertyName) == "MIEHG" ) 
      val2[i]  = val2[i]*TG4G3Units::Length();

Other lengths such as RAYLEIGH or WLSABSLENGTH seem to pass unmolested into G4.

-Brett.

Received on Thu May 03 2012 - 23:00:58 CEST

This archive was generated by hypermail 2.2.0 : Fri May 04 2012 - 05:25:01 CEST