6 #include <Geant4/G4Colour.hh>
7 #include <Geant4/G4LogicalVolume.hh>
8 #include <Geant4/G4Material.hh>
9 #include <Geant4/G4String.hh>
10 #include <Geant4/G4VisAttributes.hh>
26 if (!detailed) std::cout <<
"PHG4TTLDisplayAction::disabled detailed view of towers" << std::endl;
52 if (
it.second ==
"TTLDetector")
57 else if (
it.second ==
"TTLLayers")
62 if (
it.first->GetMaterial()->GetName() ==
"CarbonFiberSupport"){
66 if (
it.first->GetMaterial()->GetName() ==
"G4_Al"){
70 if (
it.first->GetMaterial()->GetName() ==
"G4_GRAPHITE"){
74 if (
it.first->GetMaterial()->GetName() ==
"AluminiumNitrate"){
78 if (
it.first->GetMaterial()->GetName() ==
"G4_PLEXIGLASS"){
83 else if (
it.second ==
"SHLayers")
87 if (
it.first->GetMaterial()->GetName() ==
"G4_GRAPHITE") visatt->
SetColour(
G4Colour(2 * 21. / 255, 2 * 27. / 255, 2 * 31. / 255));
88 if (
it.first->GetMaterial()->GetName() ==
"G4_POLYSTYRENE") visatt->
SetColour(
G4Colour(193, 89, 0));
90 else if (
it.second ==
"Support")
98 else if (
it.second ==
"StripBox")
105 else if (
it.second ==
"Cooling_tube")
113 else if (
it.second ==
"CoolingPlate")
119 else if (
it.second ==
"Epoxy")
125 else if (
it.second ==
"SensorStack" ||
it.second ==
"SensorLadder" ||
it.second ==
"SensorAndReadoutLadder")
131 else if (
it.second ==
"SHLadder" ||
it.second ==
"SHStack")
137 else if (
it.second ==
"ModuleEnvelope")
144 else if (
it.second ==
"FullEnvelope")
152 else if (
it.second ==
"Water_cooling")
158 else if (
it.second ==
"Cooling_Support" ||
it.second ==
"Carbon_Support")
165 else if (
it.second ==
"StripCoolingSupportBox")
172 else if (
it.second ==
"Module_Mother")
176 else if (
it.second ==
"DetectorBox")
192 else if (
it.second ==
"DetectorBoxFwd")
207 std::cout <<
"unknown logical volume " <<
it.second << std::endl;