Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NeRCA.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamas Gal
NeRCA.jl
Commits
d660b47c
Verified
Commit
d660b47c
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Rename MuonScanFitResult to MuonScanfitCandidate
parent
aab9c5dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3
Muonscanfit
Pipeline
#43951
failed
1 year ago
Stage: test
Stage: docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/NeRCA.jl
+1
-1
1 addition, 1 deletion
src/NeRCA.jl
src/scanfit.jl
+4
-4
4 additions, 4 deletions
src/scanfit.jl
with
5 additions
and
5 deletions
src/NeRCA.jl
+
1
−
1
View file @
d660b47c
...
...
@@ -33,7 +33,7 @@ export
L1Builder
,
L1BuilderParameters
,
Match3B
,
Match1D
,
Line1Z
,
Line1ZEstimator
,
RecoTrack
,
NoRecoTrack
,
dumandfit
,
MuonScanfit
,
MuonScanfitParameters
,
timetoz
,
MuonScanfit
,
MuonScanfitCandidate
,
MuonScanfitParameters
,
timetoz
,
duhits
,
nfoldhits
,
ztplot
,
most_frequent
,
categorize
,
modulemap
,
...
...
This diff is collapsed.
Click to expand it.
src/scanfit.jl
+
4
−
4
View file @
d660b47c
...
...
@@ -68,12 +68,12 @@ end
"""
Performs the scanfit for each given direction and returns a
`Vector{MuonScanfit
Result
}` with all successful fits. The resulting vector can
`Vector{MuonScanfit
Candidate
}` with all successful fits. The resulting vector can
be empty if none of the directions had enough hits to perform the algorithm.
"""
function
scanfit
(
params
::
MuonScanfitParameters
,
rhits
::
Vector
{
T
},
directions
::
Vector
{
Direction
{
Float64
}})
where
T
<:
AbstractReducedHit
candidates
=
MuonScan
F
it
Result
[]
candidates
=
MuonScan
f
it
Candidate
[]
for
dir
∈
directions
est
=
Line1ZEstimator
(
Line1Z
(
Position
(
0
,
0
,
0
),
0
))
...
...
@@ -121,12 +121,12 @@ function scanfit(params::MuonScanfitParameters, rhits::Vector{T}, directions::Ve
χ²
=
transpose
(
Y
)
*
V⁻¹
*
Y
fit_pos
=
R
\
est
.
model
.
pos
push!
(
candidates
,
MuonScan
F
it
Result
(
fit_pos
,
dir
,
est
.
model
.
t
,
quality
(
χ²
,
N
,
NDF
),
NDF
))
push!
(
candidates
,
MuonScan
f
it
Candidate
(
fit_pos
,
dir
,
est
.
model
.
t
,
quality
(
χ²
,
N
,
NDF
),
NDF
))
end
candidates
end
struct
MuonScan
F
it
Result
struct
MuonScan
f
it
Candidate
pos
::
Position
{
Float64
}
dir
::
Direction
{
Float64
}
t
::
Float64
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment