70 std::ifstream
fin(colourFile.c_str());
73 G4double cred, cgreen, cblue, copacity;
75 for(
G4int ii = 0; ii < nMate; ii++ )
80 fin >> cred >> cgreen >> cblue >> copacity;
81 G4Colour colour( cred, cgreen, cblue, copacity );
101 std::string::size_type iuu = mateName.find(
"__");
102 if( iuu != std::string::npos )
103 mateName = mateName.substr( 0, iuu );
114 auto len = mat_color.length();
115 if(mateName.find(mat_color) == 0 &&
116 mateName.length() >
len && mateName[
len] ==
'_')
119 fColours.find(mat_color)->second);
128 static uintmax_t
n = 0;
130 G4cout <<
"Unknown material name " << mateName
131 <<
" for index " << matIndex <<
G4endl;
137 fColours.begin()->second);