Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: BuildBoxWorld.hh,v 1.1 1999/01/08 16:31:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
#ifndef BUILDBOXWORLD_HH
|
||||
#define BUILDBOXWORLD_HH
|
||||
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4LogicalVolume.hh"
|
||||
#include "G4Box.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
G4VPhysicalVolume* BuildBoxWorld()
|
||||
{
|
||||
G4double z = 13.;
|
||||
G4double a = 26.98*g/mole;
|
||||
G4double density = 2.7*g/cm3;
|
||||
|
||||
G4Box *myWorldBox= new G4Box ("WBox",10000,10000,10000);
|
||||
G4Box *myTargetBox = new G4Box ("TBox",100,200,400);
|
||||
|
||||
G4LogicalVolume *myWorldLog=new G4LogicalVolume(myWorldBox,0,
|
||||
"WLog",0,0,0);
|
||||
G4LogicalVolume *myTargetLog=new G4LogicalVolume(myTargetBox,0,
|
||||
"YLog",0,0,0);
|
||||
G4PVPlacement *myWorldPhys=new G4PVPlacement(0,G4ThreeVector(),
|
||||
"WPhys",
|
||||
myWorldLog,
|
||||
0,false,0);
|
||||
G4PVPlacement *myTargetPhys=new G4PVPlacement(0,G4ThreeVector(),
|
||||
"TPhys",
|
||||
myTargetLog,
|
||||
myWorldPhys,false,0);
|
||||
|
||||
return myWorldPhys;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user