Message: Re: DNAPhysics: Ionisation coordinates out of box Not Logged In (login)

## Re: DNAPhysics: Ionisation coordinates out of box

Forum: Documentation and Examples
Re: DNAPhysics: Ionisation coordinates out of box (satya)
Re: Re: DNAPhysics: Ionisation coordinates out of box (Michael H. Kelsey)
Re: Re: DNAPhysics: Ionisation coordinates out of box (satya)
Date: 13 Aug, 2012
From: Michael H. Kelsey <Michael H. Kelsey>

 ```satya writes: > Thanks for your response. My Detector Construction class: > > // WORLD VOLUME > WorldSizeX = 1*cm; > WorldSizeY = WorldSizeX; > WorldSizeZ = WorldSizeX; > > solidWorld = new G4Box("World", //its name > WorldSizeX/2,WorldSizeY/2,WorldSizeZ/2); //its size > > logicWorld = new G4LogicalVolume(solidWorld, //its solid > waterMaterial, //its material > "World"); //its name > > physiWorld = new G4PVPlacement(0, //no rotation > G4ThreeVector(), //at (0,0,0) > "World", //its name > logicWorld, //its logical volume > 0, //its mother volume > false, //no boolean operation > 0); //copy numb > > This means that the coordinates will be dispersed in the range of > -0.5<=X<=0.5, -0.5<=Y<=0.5 and -0.5<=Z<=0.5, Technically, in the range -0.5*cm <= X <= 0.5*cm, and so on. If you print the coordinates without units, you will get values in GEANT4 "internal" units. So you would print, e.g., cout << " My hit @ " << hitX/cm << " " << hitY/cm << " " << hitZ/cm << endl; > with the center of the box as Origin. Please correct me if I am wrong. Yes, you are correct. -- Michael Kelsey ```

 to: "Re: DNAPhysics: Ionisation coordinates out of box"
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 ]