Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
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
km3py
km3mon
Commits
dd9736f2
Verified
Commit
dd9736f2
authored
3 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Update fibonacci fit parameters on run change
parent
d2e1a367
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#59105
passed
3 months ago
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fibonaccifit/fibonaccifit.jl
+7
-4
7 additions, 4 deletions
fibonaccifit/fibonaccifit.jl
with
7 additions
and
4 deletions
fibonaccifit/fibonaccifit.jl
+
7
−
4
View file @
dd9736f2
...
...
@@ -7,6 +7,7 @@ end
println
(
"Initialising libraries, this may take a minute..."
)
using
Sockets
using
Dates
using
KM3io
using
KM3DB
using
NeRCA
...
...
@@ -17,7 +18,7 @@ const LIGIER_PORT = parse(Int, ARGS[2])
function
main
()
println
(
"Starting live FibonacciFit"
)
println
(
"
$
(now()):
Starting live FibonacciFit"
)
current_run
=
0
...
...
@@ -37,17 +38,19 @@ function main()
msfparams
=
MuonScanfitParameters
(;
tmaxlocal
=
18.0
,
roadwidth
=
200.0
,
nfits
=
12
)
msfit
=
MuonScanfit
(
msfparams
,
detector
)
@show
msfparams
println
(
"
$
(now()):
$(
msfparams
)
"
)
idx
=
0
for
event
in
CHClient
{
KM3io
.
DAQEvent
}(
LIGIER_HOST
,
LIGIER_PORT
)
idx
+=
1
if
current_run
!=
event
.
header
.
run
println
(
"Run ID has changed from
$(current_run)
to
$
(event.header.run). Updating the detector description."
)
println
(
"
\n
$
(now()):
Run ID has changed from
$(current_run)
to
$
(event.header.run). Updating the detector description."
)
current_run
=
event
.
header
.
run
detector
=
Detector
(
event
.
header
.
detector_id
,
current_run
)
@show
detector
msfit
=
MuonScanfit
(
msfparams
,
detector
)
println
(
"
\n
$
(now()):
$(detector)
"
)
println
(
"
\n
$
(now()):
$(msfparams)
"
)
end
muons
=
msfit
(
event
.
snapshot_hits
)
...
...
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