Commit 045b960a authored by Chad Lantz's avatar Chad Lantz
Browse files

Call UseOpticalMaterials() and DefineOpticalProperties() in each detector...

Call UseOpticalMaterials() and DefineOpticalProperties() in each detector until the right way is determined
parent cf3e5ddf
......@@ -72,6 +72,8 @@ ModTypeRPD::ModTypeRPD(const int cn, G4LogicalVolume* mother, G4ThreeVector* pos
m_logicMother( mother )
{
materials = Materials::getInstance();
materials->UseOpticalMaterials(true);
materials->DefineOpticalProperties();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
......
......@@ -55,6 +55,8 @@ ModTypeZDC::ModTypeZDC(const int cn, G4LogicalVolume* mother, G4ThreeVector* pos
m_absDim(new G4ThreeVector(90.,180.,11.)), m_logicMother( mother )
{
m_materials = Materials::getInstance();
m_materials->UseOpticalMaterials(true);
m_materials->DefineOpticalProperties();
m_matAbsorber = m_materials->NiW;
m_matHousing = m_materials->Steel;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment