Message: Read the center coordinates of volumes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Read the center coordinates of volumes 

Keywords: Help in reading center coordinates of parameterized volumes
Forum: Geometry
Date: 27 Jun, 2005
From: <pwijesinghe1@student.gsu.edu>

Hi,
I have a water chamber slied in 3D. As an ex;
I have a chamber of length 20 cm each side and divided it into 20*20*20 cubes. So each cube is 1 cubic cm.
Right now i read the XYZcoordinates of post step point,energy deposit,copy # and the partilce as
 fileOut->fout << std::setw(15) << X <<std::setw(15)<< Y <<std::setw(15)<< Z <<std::setw(15)<< edep <<std::setw(15)<< (copyID) <<std::setw(15)<<  particleName << G4endl;
But I need to replace above XYZ with the center coordinate of the particular cube where the energy is deposited.
Can you help me to do this?
Thank you
Pushpa

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

1 None: Re: Read the center coordinates of volumes   (Makoto Asai - 29 Jun, 2005)
 Add Message Add Message
to: "Read the center coordinates of volumes"

 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 ]