Using SolidStateDetectors with LegendDataManagment
LegendDataManagment is integrated with for SolidStateDetectors. This makes it possible to create SolidStateDetector
instances from LEGEND metadata.
Example (requires a $LEGEND_DATA_CONFIG
environment variable pointing to a LEGEND data-config file, replace V99000A
with a valid detector name):
using Juleana, SolidStateDetectors, Plots
det = SolidStateDetector(LegendData(:l200), :V99000A)
plot(det)
A detector can also be constructed using the filename of the LEGEND metadata detector-datasheet JSON file (no $LEGEND_DATA_CONFIG
required):
det = SolidStateDetector(LegendData, "V99000A.json")
The following code will generate an overview plot of every 5th LEGEND detector (requires the actual LEGEND metadata instead of the metadata in legend-testdata):
using Juleana, SolidStateDetectors, Plots
l200 = LegendData(:l200)
detnames = propertynames(l200.metadata.hardware.detectors.germanium.diodes)
plot(
plot.(SolidStateDetector.(Ref(l200), detnames[1:5:120]))...,
layout = (3,8), lw = 0.05, legend = false, grid = false, showaxis = false,
xlims = (-0.05,0.05), ylims = (-0.05,0.05), zlims = (0,0.1), size = (4000,1500)
)