Message: Units in g4.10-patch03 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Units in g4.10-patch03 

Forum: Analysis
Date: 06 Nov, 2014
From: Alexey Solovyev <Alexey Solovyev>

Hello, I noted that in G4.10-patch03 instead of

analysisManager->CreateH1("B_spectrum", "Boron Spectrum", 1000, 0, 2, "GeV");

I must specify the unit, e.g.:

analysisManager->CreateH1("B_spectrum", "Boron Spectrum", 1000, 0, 2*GeV, "GeV");

Although now I can make axis in any units, e.g. keV, TeV and so on, this seems unobvious to me that unit in old code now treated as default unit (i.e. first line now means 0-2 MeV with GeV axis) even if I specify unitName in the next parameter. So I assume it is a minor bug or it should be clearer noted in patchnotes.

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

1 None: Re: Units in g4.10-patch03   (Ivana Hrivnacova - 07 Nov, 2014)
 Add Message Add Message
to: "Units in g4.10-patch03"

 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 ]