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>
38 G4LogicalVolume *logvol =
it.first;
39 if (logvol->GetVisAttributes())
43 G4VisAttributes *visatt =
new G4VisAttributes();
44 visatt->SetVisibility(
true);
45 visatt->SetForceSolid(
true);
47 if (
it.second ==
"SectorDetector")
51 else if (
it.second ==
"DetectorBox")
53 visatt->SetColour(G4Colour::White());
54 visatt->SetForceWireframe(
true);
55 visatt->SetForceLineSegmentsPerCircle(50);
59 cout <<
"unknown logical volume " <<
it.second << endl;
62 logvol->SetVisAttributes(visatt);