W pliku      src/MyDetectorConstruction.cc    (zmiany kolorem czerwonym)

.......................................................................................................................
void MyDetectorConstruction::SetupGeometry()
{
// NIST definition of air
  //  G4Material* air = G4Material::GetMaterial("Air");

  G4NistManager* man = G4NistManager::Instance();
  G4Material* air = man->FindOrBuildMaterial("G4_AIR");
  G4Material* PbWO4 = man->FindOrBuildMaterial("G4_PbWO4");

...................................................................................................................

// Beryllium target
                                        
  G4Material* beryllium = G4Material::GetMaterial("Beryllium");
  G4VSolid*    targetSolid =
          new G4Tubs("Target_Solid",  // its name
               0.0*cm,                // its inner radius
             3.63*cm,                 // its outer radius
               30./2.0*cm,           // its half length
            0.0*deg,                  // starting phi angle
           360.0*deg);                // angle of the segment
 
  G4LogicalVolume* targetLogical =
       new G4LogicalVolume(targetSolid,         // its solid
                           PbWO4,           // its material
                            "Target_Logical");  // its name
                                     

  new G4PVPlacement(0,                                    // no rotation
                    G4ThreeVector(0.0,0.0,30./2.0*cm),   // transition
                    targetLogical,                        // current logical volume
                    "Target_Physical",                    // its anme
                    fpWorldLogical,                       // mother logical volume
                    false,                                // true not implemented
                    0);                                   // copy number
 
/////////////////////////////////////////////////////////////////////////////
----------------------------------------------------------------------------------------------------------------

  // Score - green
  G4VisAttributes* scoreAttributes =
        new G4VisAttributes(G4Colour(0.0,1.0,0.0,0.5));
  scoreAttributes->SetVisibility(false);
  scoreLogical->SetVisAttributes(scoreAttributes);
}                  

------------------------------------------------------------------------------------------------------------------------------

W pliku   MyPrimaryGeneratorAction.cc      (zmiany kolorem czerwonym)

.................................................................

MyPrimaryGeneratorAction::MyPrimaryGeneratorAction()
.................................................................
  particleGun->SetParticleDefinition(particle);
  particleGun->SetParticleMomentumDirection(G4ThreeVector(0.,0.,1.));
  particleGun->SetParticleEnergy(1.*GeV);
  particleGun->SetParticlePosition(G4ThreeVector(0.,0.,-10.*cm));