Lifetime calculation for electron beam
Chip has a device N:ILIFE that reads N:IBEAMA. N:IBEAMA is reading an electron beam and thus has a negative value. He would like to be able to calculate the lifetime of this beam that decays more positive.
#3 Updated by Beau Harrison 12 months ago
The OSDA physics package being used to do the lifetime calculation accepts a relative error parameter that was set to 0.0. This caused 1.0/0.0 to be propagated through the calculation producing NaN. I set the relative error parameter to 1.0. I believe this will effectively ignore the weights applied for the error calculations.
It appears this returns a percentage of a minute. Is that the desired output?
#4 Updated by Beau Harrison 11 months ago
- Assignee set to Beau Harrison
I want to discuss this calculation in detail and make sure we understand the desired output. The OSDA package is doing things we don't need anymore so it might be worthwhile to simplify the code and fully understand the calculation.