8 #include <Geant4/G4Colour.hh>
9 #include <Geant4/G4LogicalVolume.hh>
10 #include <Geant4/G4VisAttributes.hh>
11 #include "Geant4/G4String.hh"
41 PHG4TpcColorDefs::tpc_cu_color};
45 G4LogicalVolume *logvol =
it.first;
46 if (logvol->GetVisAttributes())
50 G4VisAttributes *visatt =
new G4VisAttributes();
51 visatt->SetVisibility(
true);
52 visatt->SetForceSolid(
true);
54 if (
it.second ==
"TpcEnvelope")
56 visatt->SetVisibility(
false);
58 else if (
it.second ==
"TpcGas")
62 else if (
it.second ==
"TpcHoneyComb")
66 else if (
it.second ==
"TpcWindow")
72 std::cout <<
"did not assign specific color to " <<
it.first->GetName()
73 <<
" under " <<
it.second <<
". Defaulting to TpcWindow color." << std::endl;
79 logvol->SetVisAttributes(visatt);
83 G4VisAttributes *visatt =
new G4VisAttributes();
84 visatt->SetVisibility(
true);
85 visatt->SetForceSolid(
true);
87 visatt->SetColor(color[i]);
92 G4VisAttributes *visatt =
new G4VisAttributes();
93 visatt->SetVisibility(
true);
94 visatt->SetForceSolid(
true);
96 visatt->SetColor(color[i]);