Project

General

Profile

Feature #21791

Lifetime calculation for electron beam

Added by Beau Harrison 8 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
01/29/2019
Due date:
% Done:

0%

Estimated time:
Duration:

Description

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.

History

#1 Updated by Beau Harrison 8 months ago

Implementing a new calcDirection, "nlife", seems like the most straight forward solution. It will simply multiply the readings by -1 and perform the same calculation.

#2 Updated by Beau Harrison 8 months ago

I've pushed out an update with the name "nlife". It will need to be tested.

#3 Updated by Beau Harrison 7 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 7 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.



Also available in: Atom PDF