mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-02 01:29:25 +09:00
update: separate environment for examples & example notebook updated
- skew - pllld_count
This commit is contained in:
parent
1dcd46e7c6
commit
2aedfaf380
6 changed files with 1731 additions and 217 deletions
1708
examples/Manifest.toml
Normal file
1708
examples/Manifest.toml
Normal file
File diff suppressed because it is too large
Load diff
7
examples/Project.toml
Normal file
7
examples/Project.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[deps]
|
||||
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
|
||||
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
|
||||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
|
||||
FHist = "68837c9b-b678-4cd5-9925-8a54edc8f695"
|
||||
PSBoardDataBase = "779f6a9c-59fa-41f1-8ed1-e9a91eccb2f5"
|
||||
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
|
|
@ -1,5 +1,5 @@
|
|||
### A Pluto.jl notebook ###
|
||||
# v0.20.3
|
||||
# v0.20.2
|
||||
|
||||
using Markdown
|
||||
using InteractiveUtils
|
||||
|
@ -7,7 +7,7 @@ using InteractiveUtils
|
|||
# ╔═╡ 635dcf78-b6b3-11ef-3a04-f5b7c43ed12d
|
||||
begin
|
||||
using Pkg
|
||||
Pkg.activate("..")
|
||||
Pkg.activate(".")
|
||||
|
||||
using PSBoardDataBase
|
||||
using SQLite
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
### A Pluto.jl notebook ###
|
||||
# v0.20.3
|
||||
# v0.20.2
|
||||
|
||||
using Markdown
|
||||
using InteractiveUtils
|
||||
|
@ -7,7 +7,7 @@ using InteractiveUtils
|
|||
# ╔═╡ 7c69d12c-80a5-11ef-2674-e155a3483342
|
||||
begin
|
||||
using Pkg
|
||||
Pkg.activate("..")
|
||||
Pkg.activate(".")
|
||||
Pkg.status()
|
||||
true || include("../src/PSBoardDataBase.jl")
|
||||
end
|
||||
|
@ -102,7 +102,8 @@ clk_files =
|
|||
readdir("../test/input/slavelogs/main/", join = true) |>
|
||||
filter(endswith("_clk.txt")) |>
|
||||
filter(!contains("nagoya")) |>
|
||||
filter(!contains("630_190"))
|
||||
filter(!contains("630_190")) |>
|
||||
filter(!contains("627_344"))
|
||||
|
||||
# ╔═╡ 3e5607fd-2a8a-4a1a-9e7b-3f23ef216fad
|
||||
"""
|
||||
|
@ -202,7 +203,7 @@ let
|
|||
title = "clock rise span distribution",
|
||||
xlabel = "rise up span / ns",
|
||||
ylabel = "counts",
|
||||
limits = ((0, 0.18), (0, nothing)),
|
||||
limits = ((0, 0.33), (0, nothing)),
|
||||
# xticks = (bins, string.(round.(bins, digits = 3))),
|
||||
# xticklabelrotation = π / 3,
|
||||
),
|
||||
|
@ -560,7 +561,7 @@ md"""
|
|||
"""
|
||||
|
||||
# ╔═╡ 2a24c277-6679-49f3-b387-6937b7661a25
|
||||
invalid_measurements = [215, 291, 442, 460, 462, 545, 799, 802, 444, 255, 435]
|
||||
invalid_measurements = [215, 291, 442, 460, 462, 545, 799, 802, 444, 255, 435, 1213]
|
||||
|
||||
# ╔═╡ 13b4112f-96ab-41a1-8ef1-d940771f6ece
|
||||
df_skews_selected_valids = let
|
||||
|
@ -571,6 +572,9 @@ end
|
|||
# ╔═╡ cf658de8-a4c5-413e-b5e3-56b77a80336f
|
||||
sort(df_skews_selected, :width)
|
||||
|
||||
# ╔═╡ 7efd380b-a976-4a86-8dff-8afd551f03fb
|
||||
sort(df_skews_selected, :width, rev = true)
|
||||
|
||||
# ╔═╡ 6a856a55-2611-41d0-a2c7-3645c066fc3c
|
||||
begin
|
||||
@assert all(!ismissing, df_skews_selected_valids.skew)
|
||||
|
@ -729,7 +733,7 @@ let
|
|||
sqrt(count * (1000 - count) / 1000)
|
||||
end
|
||||
label, color = if psbid == psbid_width_max
|
||||
"lomgest ($psbid)", (:red, 0.8)
|
||||
"longest ($psbid)", (:red, 0.8)
|
||||
elseif psbid == psbid_width_min
|
||||
"shortest ($psbid)", (:blue, 0.8)
|
||||
elseif psbid == psbid_width_typical
|
||||
|
@ -812,6 +816,7 @@ end
|
|||
# ╠═2a24c277-6679-49f3-b387-6937b7661a25
|
||||
# ╠═13b4112f-96ab-41a1-8ef1-d940771f6ece
|
||||
# ╠═cf658de8-a4c5-413e-b5e3-56b77a80336f
|
||||
# ╠═7efd380b-a976-4a86-8dff-8afd551f03fb
|
||||
# ╠═6a856a55-2611-41d0-a2c7-3645c066fc3c
|
||||
# ╠═4a4ef945-b312-44ed-ab62-ce01fc33f926
|
||||
# ╠═46b2a3cd-d2e6-4277-8b65-9c61f25f69e8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue