W pliku     src/MyDetectorConstruction.cc    (zmiany kolorem czerwonym)
...............................................................................................
#include "MyScoreParameterisation.hh"
...............................................................................................
void MyDetectorConstruction::SetupGeometry()
{
.............................................................................................................
  // score
 // G4int nRings = 15;
 // new MyScoreParameterisation(innerRadius,outerRadius,nRings);
////////////////////////////////////////////////////////////////////////
                
  G4int nRings=15;
  G4double deltaTheta=90.0*deg/nRings;
                
  G4VSolid * scoreSolid =
     new G4Sphere("Score_Solid",          //its name
                 innerRadius,            //its inner radius
                 outerRadius,            //its outer radius
                 0.0*deg,                   //its starting phi angle
                 360.0*deg,               //its total phi angle
                 0.0*deg,                   //its starting theta angle
                 deltaTheta);             //its total theta angle

  G4LogicalVolume* scoreLogical =
    new G4LogicalVolume(scoreSolid,      //its solid
                        air,                                    //its material 
                        "Score_Logical");             //its name
                   
  MyScoreParameterisation* param =
    new MyScoreParameterisation(innerRadius,outerRadius,nRings);

  new G4PVParameterised("Score_Physical",   //its name
                        scoreLogical,                             //its logical volume
               sphereLogical,                                    //its mother logical
                       kZAxis,                                        //axis
                       nRings,                                        //number of copies
                       param);                                       //parameterisation
////////////////////////////////////////////////////////////////////////
// Visualisation attributes
...........................................................................................................
// Sphere - white
  G4VisAttributes* sphereAttributes =
        new G4VisAttributes(G4Colour(1.0,1.0,1.0,0.5));
  sphereAttributes->SetVisibility(false);
  sphereLogical->SetVisAttributes(sphereAttributes);
  // Score - green
  G4VisAttributes* scoreAttributes =
        new G4VisAttributes(G4Colour(0.0,1.0,0.0,0.5));
  scoreLogical->SetVisAttributes(scoreAttributes);
}