...
Code Block |
---|
language | text |
---|
title | scan.mac |
---|
|
/control/matScan/theta 91 0 90
/control/matScan/phi 361 0 360
/control/matScan/scan |
Old sidloi3 model
(for example, from lcsim.org/detectors/sidloi3.zip)
/cvmfs/ilc.desy.de/clic/slicv3r0p3/scripts/slic.sh -m x.mac -g sidloi3.lcdd > sidloi3Mat.txt
...
Code Block |
---|
language | text |
---|
title | matScanPlot.jl |
---|
|
using Plots
theta = Vector{Float64}()
x0 = Vector{Float64}()
lambda = Vector{Float64}()
open(ARGS[1]) do f
for line in readlines(f)
fields = split(line)
if length(fields) == 0
continue
end
if fields[1] != "ave."
continue
end
t = parse(Float64, fields[5])
if t % 1 != 0
continue
end
push!(theta, t)
push!(x0, parse(Float64, fields[8]))
push!(lambda, parse(Float64, fields[9]))
end
end
plot(theta, x0, legend=false)
xlabel!("theta (degrees)")
ylabel!("X0")
savefig("t.pdf") |
Image Added
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | SiD |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label = "kb-how-to-article" and type = "page" and space = "SiD" |
---|
labels | kb-how-to-article |
---|
|
...