5 #include <Geant4/G4Colour.hh> 
    6 #include <Geant4/G4LogicalVolume.hh> 
    7 #include <Geant4/G4VisAttributes.hh> 
   35     G4LogicalVolume *logvol = 
it.first;
 
   36     if (logvol->GetVisAttributes())
 
   40     G4VisAttributes *visatt = 
new G4VisAttributes();
 
   41     visatt->SetVisibility(
true);
 
   42     visatt->SetForceSolid(
true);
 
   44     if (
it.second == 
"HBD")
 
   46       visatt->SetColour(G4Colour::Red());
 
   48     else if (
it.second == 
"Mirror")
 
   50       visatt->SetColour(G4Colour::Green());
 
   51       visatt->SetForceLineSegmentsPerCircle(50);
 
   53     else if (
it.second == 
"Sector")
 
   55       visatt->SetColour(G4Colour::White());
 
   56       visatt->SetForceWireframe(
true);
 
   57       visatt->SetForceLineSegmentsPerCircle(50);
 
   59     else if (
it.second == 
"Window")
 
   61       visatt->SetColour(G4Colour::Yellow());
 
   62       visatt->SetForceLineSegmentsPerCircle(50);
 
   66       cout << 
"unknown logical volume " << 
it.second << endl;
 
   69     logvol->SetVisAttributes(visatt);