Message: Re: units Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: units 

Forum: Documentation and Examples
Re: None units (Steven Avery)
Date: 25 Sep, 2003
From: michel maire <michel maire>

User Steven Avery wrote:

>> this may seem trivial, but as a novice it's a struggle. in
>> examples/extended/electromagnetic/Testem7 the 1-D histogram produced is
>> MeV/mm. How do you change this to keV/micron? i assume you change
>> mm->microns by increasing the number of bins.

No, it is independent.

But I don't see how to

>> change Mev -> keV? Is this simply done by change the initial beam energy
>> from MeV -> keV.
>> 
>> thanks

In SteppingAction::UserSteppingAction() change the following ligne: runAction->GetHisto(0)->fill(x, (edep/binLength)/(keV/mum));

which is equivalent to (edep/keV)/(binLength/mum)

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

1 None: units   (Steven Avery - 25 Sep, 2003)
(_ None: Re: units   (michel maire - 25 Sep, 2003)
 Add Message Add Message
to: "Re: 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 ]