5 #include <Geant4/G4Colour.hh>
6 #include <Geant4/G4LogicalVolume.hh>
7 #include <Geant4/G4VisAttributes.hh>
23 if (!detailed) std::cout <<
"PHG4ForwardHcalDisplayAction::disabled detailed view of towers" << std::endl;
40 G4LogicalVolume *logvol =
it.first;
41 if (logvol->GetVisAttributes())
45 G4VisAttributes *visatt =
new G4VisAttributes();
46 visatt->SetVisibility(
true);
47 visatt->SetForceSolid(
true);
49 if (
it.second ==
"Absorber")
51 visatt->SetColour(G4Colour::Gray());
53 visatt->SetVisibility(
true);
55 visatt->SetVisibility(
false);
57 else if (
it.second ==
"FHcalEnvelope")
59 visatt->SetVisibility(
false);
61 else if (
it.second ==
"Scintillator")
63 visatt->SetColour(G4Colour::White());
65 visatt->SetVisibility(
true);
67 visatt->SetVisibility(
false);
69 else if (
it.second ==
"WLSplate")
71 visatt->SetColour(G4Colour::Yellow());
73 visatt->SetVisibility(
true);
75 visatt->SetVisibility(
false);
77 else if (
it.second ==
"SupportPlate")
79 visatt->SetColour(G4Colour::Gray());
81 visatt->SetVisibility(
true);
83 visatt->SetVisibility(
false);
85 else if (
it.second ==
"SingleTower")
87 visatt->SetColour(G4Colour::Gray());
89 visatt->SetVisibility(
false);
91 visatt->SetVisibility(
true);
95 std::cout <<
"unknown logical volume " <<
it.second << std::endl;
98 logvol->SetVisAttributes(visatt);