Skip to content

Commit 8567429

Browse files
authored
Merge pull request #124 from JeffersonLab/optical_material_propertiex_fix_from_justin_rtj
* import a fix for optical material properties from Justin [rtj]
2 parents 6ff0c80 + 5144b4a commit 8567429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/HddsG4Builder.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ int HddsG4Builder::createMaterial(DOMElement* el)
160160
valS = specEl->getAttribute(X("smooth"));
161161
smooth.push_back(atof(S(valS)));
162162
valS = specEl->getAttribute(X("reflect"));
163-
reflect.push_back(atof(S(valS)));;
163+
reflect.push_back(atof(S(valS)));
164164
valS = specEl->getAttribute(X("effic"));
165165
effic.push_back(atof(S(valS)));
166166
}
@@ -475,6 +475,7 @@ int HddsG4Builder::createSolid(DOMElement* el, Refsys& ref)
475475
G4OpticalSurface *surface = new G4OpticalSurface(S(nameS));
476476
surface->SetType(dielectric_metal);
477477
surface->SetModel(glisur);
478+
surface->SetMaterialPropertiesTable(mpt);
478479
if (poli_vector != 0) {
479480
double polish = poli_vector->GetMaxValue();
480481
surface->SetPolish(polish);
@@ -491,6 +492,7 @@ int HddsG4Builder::createSolid(DOMElement* el, Refsys& ref)
491492
G4OpticalSurface *surface = new G4OpticalSurface(S(nameS));
492493
surface->SetType(dielectric_dielectric);
493494
surface->SetModel(glisur);
495+
surface->SetMaterialPropertiesTable(mpt);
494496
if (poli_vector != 0) {
495497
double polish = poli_vector->GetMaxValue();
496498
surface->SetPolish(polish);

0 commit comments

Comments
 (0)