Muonscanfit
Compare changes
+ 28
− 15
@@ -2,6 +2,7 @@ Base.@kwdef struct MuonScanfitParameters
@@ -2,6 +2,7 @@ Base.@kwdef struct MuonScanfitParameters
@@ -14,6 +15,9 @@ function Base.show(io::IO, m::MuonScanfit)
@@ -14,6 +15,9 @@ function Base.show(io::IO, m::MuonScanfit)
@@ -24,9 +28,15 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -24,9 +28,15 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -50,12 +60,10 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -50,12 +60,10 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -63,6 +71,7 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -63,6 +71,7 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -70,28 +79,32 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
@@ -70,28 +79,32 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
# TODO: pass alpha and sigma, like V.set(*this, data.begin(), __end1, gridAngle_deg, sigma_ns); // JMatrixNZ
@@ -211,8 +224,8 @@ function estimate!(est::Line1ZEstimator, hits)
@@ -211,8 +224,8 @@ function estimate!(est::Line1ZEstimator, hits)
(est.V[3, 1] * y₀ + est.V[3, 2] * y₁ + est.V[3, 3] * y₂) * KM3io.Constants.KAPPA_WATER * KM3io.Constants.C_INVERSE + t₀