7 #include <Geant4/G4Colour.hh>
8 #include <Geant4/G4LogicalVolume.hh>
9 #include <Geant4/G4String.hh>
10 #include <Geant4/G4VisAttributes.hh>
35 G4Colour colour_air ( 0.0, 0.0, 0.0, 0.0 );
36 G4Colour colour_CFRP ( 0.4, 0.4, 0.4, 1 );
37 G4Colour colour_endcap ( 0.0, 0.0, 1.0, 0.2 );
38 G4Colour colour_endcap_Al ( 0.3, 0.0, 1.0, 0.4);
39 G4Colour colour_endcap_C ( 0.4, 0.4, 0.4, 0.4 );
40 G4Colour colour_copper ( 0.7, 0.4, 0, 1 );
55 if (
it.second ==
"FPHX")
61 else if (
it.second ==
"Ladder"
62 ||
it.second ==
"FPHXContainer"
63 ||
it.second ==
"FPHXGlueContainer"
64 ||
it.second ==
"StaveBox" )
71 else if (
it.second ==
"Rail")
78 else if (
it.second ==
"RohaCell")
84 else if (
it.second ==
"SiActive")
90 else if (
it.second ==
"SiInActive")
96 else if (
it.second ==
"StaveCooler")
102 else if (
it.second ==
"StaveCurve")
108 else if (
it.second ==
"StaveGlueBox")
114 else if (
it.second ==
"StavePipe")
120 else if (
it.second ==
"StaveStraightInner")
125 else if (
it.second ==
"StaveStraightOuter")
131 else if (
it.second ==
"StaveWater")
136 else if (
it.second.find(
"Endcap") != string::npos )
138 if(
it.second.find(
"_Al" ) != string::npos )
140 else if(
it.second.find(
"_C" ) != string::npos )
146 else if(
it.second.find(
"Glue") != string::npos )
152 else if(
it.second.find(
"Copper" ) != string::npos )
158 else if (
it.second.find(
"Kapton") != string::npos )
164 else if (
it.second ==
"Skin")
172 cout <<
"did not assign color to " <<
it.first->GetName()
173 <<
" under " <<
it.second << endl;