6 #include <Geant4/G4LogicalVolume.hh>
7 #include <Geant4/G4VisAttributes.hh>
32 G4LogicalVolume *logvol =
it.first;
33 if (logvol->GetVisAttributes())
37 G4VisAttributes *visatt =
new G4VisAttributes();
39 if (
it.second ==
"Carbon")
41 visatt->SetColour(0.5, 0.5, 0.5, .25);
43 else if (
it.second ==
"M60J3K")
45 visatt->SetColour(0.25, 0.25, 0.25, .25);
47 else if (
it.second ==
"WATER")
49 visatt->SetColour(0.0, 0.5, 0.0, .25);
51 else if (
it.second ==
"SI")
55 else if (
it.second ==
"KAPTON")
59 else if (
it.second ==
"ALUMINUM")
65 visatt->SetColour(.2, .2, .7, .25);
67 visatt->SetVisibility(
true);
68 visatt->SetForceSolid(
true);
69 logvol->SetVisAttributes(visatt);