12 #include "GeoModelKernel/GeoElement.h"
13 #include "GeoModelKernel/GeoMaterial.h"
14 #include "GeoModelKernel/Units.h"
20 float x0 = gm->getRadLength();
21 float l0 = gm->getIntLength();
22 float rho = gm->getDensity() * s_densityCnvFactor;
27 int numberOfElements = gm->getNumElements();
29 for (
int iEl = 0; iEl < numberOfElements; iEl++) {
30 const GeoElement* geoEl = gm->getElement(iEl);
31 float fraction = gm->getFraction(iEl);
33 Z += fraction * (geoEl->getZ());
36 return {x0,
l0,
A, Z,
rho};
41 bool dummyMat =
false;
43 const std::string& matName =
mat->getName();
45 if (matName ==
"special::Ether")
47 if (matName ==
"WorldLog:Air")
49 if (matName ==
"std::Air")