5 #include <Geant4/G4Colour.hh>
6 #include <Geant4/G4LogicalVolume.hh>
7 #include <Geant4/G4VisAttributes.hh>
33 G4LogicalVolume *logvol =
it.first;
34 if (logvol->GetVisAttributes())
38 G4VisAttributes *visatt =
new G4VisAttributes();
39 visatt->SetVisibility(
true);
40 visatt->SetForceSolid(
true);
42 if (
it.second ==
"Bbc_Breeder_Module")
44 visatt->SetColour(G4Colour::Green());
46 else if (
it.second ==
"Bbc_Cover_Plates")
48 visatt->SetColour(G4Colour::Gray());
50 else if (
it.second ==
"Bbc_Inner_Shell")
52 visatt->SetColour(G4Colour::Gray());
54 else if (
it.second ==
"Bbc_quartz")
56 visatt->SetColour(G4Colour::Cyan());
58 else if (
it.second ==
"Bbc_Outer_Shell")
60 visatt->SetColour(G4Colour::Gray());
62 else if (
it.second ==
"Bbc_PMT")
64 visatt->SetColour(G4Colour::Blue());
66 else if (
it.second ==
"Bbc_Shell")
68 visatt->SetColour(0.5, 0.5, 0.5, 0.4);
70 else if (
it.second ==
"Bbc_Front_Plate")
72 visatt->SetColour(0.5, 0.5, 0.5, 0.4);
74 else if (
it.second ==
"Bbc_attach_plate")
76 visatt->SetColour(G4Colour::Gray());
80 std::cout <<
"PHG4BbcDisplayAction::ApplyDisplayAction unknown logical volume " <<
it.second <<
" in " <<
GetName() << std::endl;
83 logvol->SetVisAttributes(visatt);