Message: The different Geometry overlap Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question The different Geometry overlap 

Keywords: Overlap
Forum: Geometry
Date: 10 Dec, 2007
From: da Liu <da Liu>

Hello,
    I had a problem,I want to get a box whose material is Cu,
    and there is a hole in the box,which is filled with air.
    First,I define a box in lead,
    //Pd Plane 2:
   G4VSolid* gemCu2 = new G4Box("GemCu2", // Name
                                             1.5*cm,                  // Inner radius
                                             1.5*cm,                 // Outer radius
                                             0.0006*cm);              // Segment angle

   G4LogicalVolume* gemCu2Logical =
    new G4LogicalVolume(gemCu2,       // Solid
                        Cu,                   // Material
                        "GemCu2_Logical"); // Name

   new G4PVPlacement(0,                                       // Rotation matrix
                    G4ThreeVector(0.,0.,-(0.1*cm+0.2*cm+0.003*cm)), // Translation vector
                    gemCu2Logical,                   // Logical volume
                    "GemCu2_Physical",               // Name
                    fpWorldLogical,                          // Mother volume
                    false,                                   // Unused boolean
                    0);                                      // Copy number

     Then,I define a hole in the box:
  //Beam Hole:
  G4VSolid* beamHole = new G4Tubs("BeamHole", // Name
                                                  0.0,                  // Inner radius
                                                  0.05*cm,                 // Outer radius
                                                  0.0006*cm,
                                                     0.0,
                                                     2*Pi );              // Segment angle

       G4LogicalVolume* beamHoleLogical =
         new G4LogicalVolume(beamHole,       // Solid
                             air,                   // Material
                             "BeamHole_Logical"); // Name

       new G4PVPlacement(0,                                       // Rotation matrix
                         G4ThreeVector(0.,0.,-(0.1*cm+0.2*cm+0.003*cm)), // Translation vector
                         beamHoleLogical,                   // Logical volume
                         "BeamHole_Physical",               // Name
                         fpWorldLogical,                          // Mother volume
                         false,                                   // Unused boolean
                         0);                                      // Copy number

   Then,the question is: Does the material of the hole is air?Or are they
overlaped?
   

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: The different Geometry overlap   (Gabriele Cosmo - 09 Jan, 2008)
 Add Message Add Message
to: "The different Geometry overlap"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]