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());
78 else if (
it.second ==
"Bbc_CableCond")
80 visatt->SetColour(G4Colour::Yellow());
82 else if (
it.second ==
"Bbc_CableShield")
84 visatt->SetColour(G4Colour::White());
86 else if (
it.second ==
"Bbc_Base_Plates")
88 visatt->SetColour(G4Colour::White());
90 else if (
it.second ==
"Bbc_Sidesupport_Plates")
92 visatt->SetColour(G4Colour::White());
94 else if (
it.second ==
"Bbc_Support_Post")
96 visatt->SetColour(G4Colour::Green());
98 else if (
it.second ==
"Bbc_Support_Arm")
100 visatt->SetColour(G4Colour::Green());
102 else if (
it.second ==
"Bbc_Gusset0_Plates")
104 visatt->SetColour(G4Colour::White());
106 else if (
it.second ==
"Bbc_Gusset1_Plates")
108 visatt->SetColour(G4Colour::White());
110 else if (
it.second ==
"Bbc_Gusset2_Plates")
112 visatt->SetColour(G4Colour::White());
114 else if (
it.second ==
"Bbc_Splice_Plates")
116 visatt->SetColour(G4Colour::White());
120 std::cout <<
"PHG4BbcDisplayAction::ApplyDisplayAction unknown logical volume " <<
it.second <<
" in " <<
GetName() << std::endl;
123 logvol->SetVisAttributes(visatt);