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