47 print(
"* Constructing geometry...")
50 g4py.ezgeom.SetWorldMaterial(air)
54 target= G4EzVolume(
"Target")
56 target.CreateTubeVolume(au, 0., 1.*cm, 1.*mm)
60 global detector_box, detector_box_pv
61 detector_box= G4EzVolume(
"DetectorBox")
62 detector_box.CreateBoxVolume(air, 20.*cm, 20.*cm, 40.*cm)
63 detector_box_pv= detector_box.PlaceIt(
G4ThreeVector(0.,0.,20.*cm))
67 cal= G4EzVolume(
"Calorimeter")
69 cal.CreateBoxVolume(nai, 5.*cm, 5.*cm, 30.*cm)
71 for ical
in range(-1, 2):
74 cal.PlaceIt(calPos, ical+1, detector_box)
83 rand_engine= Ranlux64Engine()
84 HepRandom.setTheEngine(rand_engine)
85 HepRandom.setTheSeed(20050830)
94 gRunManager.Initialize()
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
const G4ParticleDefinition const G4Material *G4double range
void print(G4double elem)