5 #include <Geant4/G4Colour.hh>
6 #include <Geant4/G4LogicalVolume.hh>
7 #include <Geant4/G4Material.hh>
8 #include <Geant4/G4VisAttributes.hh>
32 if (
it->GetVisAttributes())
36 G4VisAttributes *VisAtt =
new G4VisAttributes();
37 m_VisAttVec.push_back(VisAtt);
38 string material_name(
it->GetMaterial()->GetName());
40 if (material_name ==
"ITS_WATER")
42 VisAtt->SetColor(G4Colour::Blue());
44 else if (material_name ==
"ITS_PEEKCF30")
46 VisAtt->SetColor(G4Colour::White());
48 else if (material_name ==
"ITS_FGS003")
50 VisAtt->SetColor(G4Colour::Yellow());
52 else if (material_name ==
"ITS_CarbonFleece")
54 VisAtt->SetColor(G4Colour::Red());
58 VisAtt->SetColor(G4Colour::Cyan());
61 VisAtt->SetVisibility(
true);
62 VisAtt->SetForceSolid(
true);
63 it->SetVisAttributes(VisAtt);