Message: Saving with proper units Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Saving with proper units 

Forum: Event and Track Management
Date: 25 Oct, 2012
From: C Mos <C Mos>


I am saving my data into a TTree



G4double kinEGam;




Is there a way to save my data into some desirable units? I have seen before doing something like this:

kinEGam=aHit->GetEnergyInParticle()) / MeV;

Is there a better way to do this, like for example telling the geant4 engine to always save (or output) in a particular user defined unit so I don't have to do an extra operation to my data when saving it?

Or geant4 always output in standard units, for example, energy is always always keV?

Thank you!


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

1 None: Re: Saving with proper units   (Michael H. Kelsey - 26 Oct, 2012)
 Add Message Add Message
to: "Saving with proper units"

 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 ]