Skip to content

Commit fa09ecd

Browse files
authored
Merge pull request #1411 from FAIRmat-NFDI/fairmat-2024-nxdetector
Fairmat 2024: additional fields in NXdetector
2 parents a12a91b + 96493f8 commit fa09ecd

2 files changed

Lines changed: 67 additions & 3 deletions

File tree

base_classes/NXdetector.nxdl.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<symbol name="nP"><doc>number of scan points (only present in scanning measurements)</doc></symbol>
4545
<symbol name="i"><doc>number of detector pixels in the first (slowest) direction</doc></symbol>
4646
<symbol name="j"><doc>number of detector pixels in the second (faster) direction</doc></symbol>
47+
<symbol name="k"><doc>number of detector pixels in the third (if necessary, fastest) direction</doc></symbol>
4748
<symbol name="tof"><doc>number of bins in the time-of-flight histogram</doc></symbol>
4849
</symbols>
4950

@@ -460,9 +461,10 @@
460461
<field name="efficiency" type="NX_FLOAT" units="NX_DIMENSIONLESS">
461462
<doc>efficiency of the detector</doc>
462463

463-
<dimensions rank="2">
464+
<dimensions rank="3">
464465
<dim index="1" value="i" />
465466
<dim index="2" value="j" />
467+
<dim index="3" value="k" />
466468
</dimensions>
467469
</field>
468470

@@ -480,10 +482,10 @@
480482
In this use case, the efficiency and wavelength arrays must
481483
have the same dimensionality.
482484
</doc>
483-
484-
<dimensions rank="2">
485+
<dimensions rank="3">
485486
<dim index="1" value="i" />
486487
<dim index="2" value="j" />
488+
<dim index="3" value="k" />
487489
</dimensions>
488490
</field>
489491
</group>
@@ -612,6 +614,7 @@
612614
<item value="event"/>
613615
<item value="histogrammed"/>
614616
<item value="decimated"/>
617+
<item value="pulse counting"/>
615618
</enumeration>
616619
</field>
617620
<field name="angular_calibration_applied" type="NX_BOOLEAN" >
@@ -930,6 +933,7 @@
930933
</doc>
931934
</group>
932935
</choice>
936+
<group type="NXfabrication"/>
933937
<attribute name="default">
934938
<doc>
935939
.. index:: plotting
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
3+
<!--
4+
# NeXus - Neutron and X-ray Common Data Format
5+
#
6+
# Copyright (C) 2008-2024 NeXus International Advisory Committee (NIAC)
7+
#
8+
# This library is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU Lesser General Public
10+
# License as published by the Free Software Foundation; either
11+
# version 3 of the License, or (at your option) any later version.
12+
#
13+
# This library is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
# Lesser General Public License for more details.
17+
#
18+
# You should have received a copy of the GNU Lesser General Public
19+
# License along with this library; if not, write to the Free Software
20+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21+
#
22+
# For further information, see http://www.nexusformat.org
23+
-->
24+
<definition category="base" extends="NXdetector" name="NXelectron_detector"
25+
type="group"
26+
xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
27+
xmlns="http://definition.nexusformat.org/nxdl/3.1"
28+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
29+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
30+
xmlns:ns="http://definition.nexusformat.org/nxdl/@NXDL_RELEASE@"
31+
>
32+
<doc>
33+
A subclass of NXdetector for detectors that detect electrons.
34+
</doc>
35+
<field name="amplifier_type" type="NX_CHAR">
36+
<doc>
37+
Type of electron amplifier, MCP, channeltron, etc.
38+
</doc>
39+
</field>
40+
<field name="detector_type" type="NX_CHAR">
41+
<doc>
42+
Description of the electron detector type, DLD, Phosphor+CCD, CMOS.
43+
</doc>
44+
</field>
45+
<field name="detector_voltage" type="NX_FLOAT" units="NX_VOLTAGE">
46+
<doc>
47+
Voltage applied to the electron detector.
48+
</doc>
49+
</field>
50+
<field name="amplifier_voltage" type="NX_FLOAT" units="NX_VOLTAGE">
51+
<doc>
52+
Voltage applied to the amplifier.
53+
</doc>
54+
</field>
55+
<field name="amplifier_bias" type="NX_FLOAT" units="NX_VOLTAGE">
56+
<doc>
57+
The low voltage of the amplifier might not be the ground.
58+
</doc>
59+
</field>
60+
</definition>

0 commit comments

Comments
 (0)