indeed, this is working… in a different world it’s probably making sense but however, I’m always struggling how to solve issues like this.
How exactly are you using intellisense that it provided the solution?
However, when I print mass I receive mass: 2.32505e+20 as value. Which unit is it, but anyway, it seems to be quite a lot?
edit: I saw About the molar mass and absorbed dose - #4 by mkelsey and used G4cout << "mass: " << mass/kg << " kg" << G4endl; which gives mass: 3.72514e-05 kg which equals to 37 µg. Tbh, I have to check. The value is not far off but could be a bit little nevertheless. But it could be a valid value, I will check…
but is this correct, what I am doing?
And when I wanna’ know the dose I won’t convert it into other units, right?
it does make sense when you think of the “physical representation” of the volume, so kind of the actual placement of it → hence also the term “touchable”.
to be honest it did not suggest the whole solution, just that “GetMass()” is available for the “GetLogicalVolume”. Using visual studio code, the auto-complete suggestions appear when I start typing the arrow ->
yes. just don’t use any units until you store/display results, then you divide by the (combined) final unit that you prefer, e.g., (keV/kg) or CLHEP::joule/CLHEP::kilogram, or …