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
Merge requests
!3
Muonscanfit
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Muonscanfit
muonscanfit
into
master
Overview
0
Commits
88
Pipelines
40
Changes
1
Merged
Tamas Gal
requested to merge
muonscanfit
into
master
1 year ago
Overview
0
Commits
88
Pipelines
40
Changes
1
Expand
0
0
Merge request reports
Viewing commit
ff306185
Prev
Next
Show latest version
1 file
+
4
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
ff306185
Add threading to muonscan and remove clutter
· ff306185
Tamas Gal
authored
1 year ago
src/scanfit.jl
+
4
−
10
Options
@@ -25,14 +25,10 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
clusterize!
(
rhits
,
clique
)
clique1D
=
Clique
(
Match1D
(
msf
.
params
.
roadwidth
,
msf
.
params
.
tmaxextra
))
match_test
=
Match1D
(
msf
.
params
.
roadwidth
,
msf
.
params
.
tmax
)
for
dir
∈
msf
.
directions
Threads
.
@threads
for
dir
∈
msf
.
directions
rhits_copy
=
copy
(
rhits
)
clique1D
=
Clique
(
Match1D
(
msf
.
params
.
roadwidth
,
msf
.
params
.
tmaxextra
))
R
=
rotator
(
dir
)
# rotate hits
@@ -42,10 +38,8 @@ function (msf::MuonScanfit)(hits::Vector{T}) where T<:KM3io.AbstractHit
length
(
rhits_copy
)
>
msf
.
params
.
nmaxhits
&&
resize!
(
rhits_copy
,
msf
.
params
.
nmaxhits
)
sort!
(
rhits_copy
;
by
=
timetoz
)
println
(
"..."
)
@show
length
(
rhits_copy
)
clusterize!
(
rhits_copy
,
clique1D
)
@show
length
(
rhits_copy
)
length
(
rhits_copy
)
<=
3
&&
continue
# TODO 3 comes from the number of parameters, retrieve from Line1Z fitter via type!
Loading