You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting here a thread about implementing dials that need PhysicsEvent stored variable to evaluate.
As an example, the oscillation (survival) probability for SBL analysis: $P(\nu_e \rightarrow \nu_e) = 1 - \sin^2(2\theta_{14})\sin^2\left(\Delta m^2_{41}L/4E\right)$.
Two fit parameters need to evaluate this formula $\theta_{14}$ and $\Delta m^2_{41}$, while $E$ is the neutrino energy which is different for each event.
DialInputBuffer seems to be the right candidate to handle the different inputs.
[TO BE CONTINUED]
The text was updated successfully, but these errors were encountered:
If I'm reading correctly, this is a proposal to have a closure around some event information (e.g. the neutrino energy), not a proposal for multi-parameter dials (which DialInputBuffer already supports in principle). If that's the case, the event information is a constant so it can be captured when a DialBase derived class is constructed. It's completely analogous to how spline knots are captured by GeneralSpline (and friends).
@ClarkMcGrew it is a good solution indeed!
I also would like to think about the future additions such as having event vars that could move thanks to some dials. In that case we may need to capture the reference of the event var
nadrino
changed the title
[Feature request] Towards dials that require event variables to evaluate
Towards dials that require event variables to evaluate
Dec 3, 2023
Starting here a thread about implementing dials that need
PhysicsEvent
stored variable to evaluate.As an example, the oscillation (survival) probability for SBL analysis:
$P(\nu_e \rightarrow \nu_e) = 1 - \sin^2(2\theta_{14})\sin^2\left(\Delta m^2_{41}L/4E\right)$ .
Two fit parameters need to evaluate this formula$\theta_{14}$ and $\Delta m^2_{41}$ , while $E$ is the neutrino energy which is different for each event.
DialInputBuffer
seems to be the right candidate to handle the different inputs.[TO BE CONTINUED]
The text was updated successfully, but these errors were encountered: