6 #include <Geant4/G4Colour.hh>
7 #include <Geant4/G4LogicalVolume.hh>
8 #include <Geant4/G4Material.hh>
9 #include <Geant4/G4String.hh>
10 #include <Geant4/G4VisAttributes.hh>
36 G4LogicalVolume *logvol =
it.first;
37 if (logvol->GetVisAttributes())
41 G4VisAttributes *visatt =
new G4VisAttributes();
42 visatt->SetVisibility(
true);
43 visatt->SetForceSolid(
true);
45 if (
it.second ==
"SectorDetector")
49 else if (
it.second ==
"DetectorBox")
51 visatt->SetColour(G4Colour::White());
52 visatt->SetForceWireframe(
true);
53 visatt->SetForceLineSegmentsPerCircle(50);
57 std::cout <<
"unknown logical volume " <<
it.second << std::endl;
60 logvol->SetVisAttributes(visatt);