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

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


/////////////////////////////////////////////////////////////////////////////
//  Iron window
  G4Material* iron = G4Material::GetMaterial("Iron");
 
  G4VSolid*    chamberSolid =
          new G4Tubs("Chamber_Solid",  // its name
                                    0.0*cm,             // its inner radius
                                    2.0*cm,             // its outer radius
                                0.0051/2.0*cm,     // its half length 
                                     0.0*deg,           // starting phi angle
                                  360.0*deg);        // angle of the segment

  G4LogicalVolume* chamberLogical =
       new G4LogicalVolume(chamberSolid,   // its solid
                                           iron,                   // its material
                                   "Chamber_Logical"); // its name
                                     
  new G4PVPlacement(0,                              // no rotation
              G4ThreeVector(0.0,0.0,-1.0*cm),   // transition
                         chamberLogical,                 // current logical volume
                     "Chamber_Physical",              // its name
                         fpWorldLogical,                 // mother logical volume
                                  false,                         // true not implemented
                                   0);                            // copy number
/////////////////////////////////////////////////////////////////////////////
// silicon monitor

  G4Material* silicon = G4Material::GetMaterial("Silicon");
 
  G4VSolid*    monitorSolid =
      new G4Tubs("Monitor_Solid",   // its name  
                0.0*cm,                // its inner radius  
                2.0*cm,                // its outer radius  
                0.01/2.0*cm,        // its half length    
                0.0*deg,               // starting phi angle   
              360.0*deg);            // angle of the segment  

  G4LogicalVolume* monitorLogical =
         new G4LogicalVolume(monitorSolid,       // its solid
                                              silicon,                 // its material
                                       "Monitor_Logical");   // its name

  new G4PVPlacement(0,                               // no rotation
              G4ThreeVector(0.0,0.0,-2.0*cm),    // transition
                           monitorLogical,                  // current logical volume
                        "Monitor_Physical",               // its anme
                          fpWorldLogical,                   // mother logical volume
                                   false,                           // true not implemented
                                     0);                             // copy number
  ////////////////////////////////////////////////////////////////////////
  // Visualisation attributes

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