5 #include <Geant4/G4Colour.hh>
6 #include <Geant4/G4LogicalVolume.hh>
7 #include <Geant4/G4VisAttributes.hh>
31 G4LogicalVolume *logvol =
it.first;
32 if (logvol->GetVisAttributes())
36 G4VisAttributes *visatt =
new G4VisAttributes();
37 visatt->SetVisibility(
true);
38 visatt->SetForceSolid(
true);
40 if (
it.second ==
"Absorber")
42 visatt->SetColour(G4Colour::Blue());
44 if (
it.second.find(
"EPD_tile") != std::string::npos)
46 visatt->SetColour(G4Colour::Red());
50 std::cout <<
GetName() <<
" unknown logical volume " <<
it.second << std::endl;
51 visatt->SetColour(G4Colour::White());
53 logvol->SetVisAttributes(visatt);