Message: density definition Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question density definition 

Forum: Geometry
Date: 19 Sep, 2012
From: Leila Moghadasi <Leila Moghadasi>

Hi Geant4 experts, I was trying to debug my code using "G4cout" in some parts of my codes that by coincidence I noticed when I introdeced a line "G4cout<<"Density:"<<density<<G4endl;" right after I defined "density = 1*g/cm3" , the density was printed out as "4.25e+018". After alot of trial and error I noticed this is the reciprocal of electron charge (1.6e-19). Could anyone tell me what is going wrong? Thanks, Leila

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

1 None: Re: density definition   (John Allison - 19 Sep, 2012)
(_ None: Re: density definition   (Leila Moghadasi - 19 Sep, 2012)
(_ None: Re: density definition   (Michael H. Kelsey - 19 Sep, 2012)
 Add Message Add Message
to: "density definition"

 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 ]