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 ==
"Absorber")
46 visatt->SetColour(G4Colour::Gray());
48 else if (
it.second ==
"FHcalEnvelope")
50 visatt->SetVisibility(
false);
52 else if (
it.second ==
"Scintillator")
54 visatt->SetColour(G4Colour::Gray());
56 else if (
it.second ==
"SingleScintillator")
58 visatt->SetColour(G4Colour::Cyan());
62 cout <<
"unknown logical volume " <<
it.second << endl;
65 logvol->SetVisAttributes(visatt);