6 #include <Geant4/G4Colour.hh>
7 #include <Geant4/G4LogicalVolume.hh>
8 #include <Geant4/G4VisAttributes.hh>
35 if (
it->GetVisAttributes())
39 G4VisAttributes *VisAtt =
new G4VisAttributes();
41 VisAtt->SetVisibility(
true);
42 VisAtt->SetForceSolid(
true);
43 if (
it->GetName().find(
"Coil") != string::npos)
45 VisAtt->SetColour(G4Colour::Cyan());
47 else if (
it->GetName().find(
"CryostatHe") != string::npos)
49 VisAtt->SetColour(G4Colour::Blue());
51 else if (
it->GetName().find(
"CryostatAl") != string::npos)
53 VisAtt->SetColour(G4Colour::Green());
57 VisAtt->SetColour(G4Colour::Red());
60 it->SetVisAttributes(VisAtt);