Message: Re: Doubts related to rdecay01 example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Doubts related to rdecay01 example 

Forum: Hadronic Processes
Re: Question Doubts related to rdecay01 example (Cejo George)
Date: 03 Dec, 2012
From: michel maire <michel maire>

On Mon, 03 Dec 2012 07:39:39 GMT, Cejo George wrote:
> Dear all,
>   I'm having some confusion in understanding the following code which is from  rdecay01 example. 
> void RunAction::EventTiming(G4double time)
> {
>   EventTime[0] += time;
>   if (decayCount == 1) EventTime[1] = EventTime[2] = time;  
>   if (time < EventTime[1]) EventTime[1] = time;
>   if (time > EventTime[2]) EventTime[2] = time;             
> }
> I'm using geant4.9.4.p03 version.
> What is this code doing and how is variable time calculated.

 It is related to the following line on output:

 Total time of life : mean =  7.588 y    half-life =   5.26 y     ( 17.08 min --> 112.4 y  )

 1- time is the time of life of a single event.
 2- EventTime[0] is to compute the mean time of life: Time[0] is accumulated over the run and divided by the number of events.
 3- EventTime[1] and 2 are for register min and max time values (useful to set histogram binning) 

> 
> Also please correct me if i'm wrong,
> 
> ActivperMass without (*g/Becquerel) means ActivPerMass in
> Becquerel/gram. So to obtain Activity of source in Bq for say 10grams
> all that i need to do is ActivPerMass*10g so the result is Activity of
> 10 grams of source in Becquerel.

  right

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

1 Ok: Re: Doubts related to rdecay01 example   (Cejo George - 03 Dec, 2012)
 Add Message Add Message
to: "Re: Doubts related to rdecay01 example"

 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 ]