﻿<?xml version="1.0" encoding="UTF-8"?>

<!-- An example spectroscopy portal monitor data document. The monitor has two gamma and two neutron detectors. Spectra are collected from the -->
<!-- gamma detectors; gross counting data is also collected from these detectors in two energy windows (0-100 and 200-1000 keV). --> 
<!-- This example shows an occupancy: there are three samples during the occupancy (see the <Occupied> element), with two pre-occupancy samples -->
<!-- and two post-occupancy samples. The monitor is storing the spectra from the fourth and fifth samples (the second and third occupied samples). -->

<N42InstrumentData xmlns="http://physics.nist.gov/Divisions/Div846/Gp4/ANSIN4242/2005/ANSIN4242" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://physics.nist.gov/Divisions/Div846/Gp4/ANSIN4242/2005/ANSIN4242 http://physics.nist.gov/Divisions/Div846/Gp4/ANSIN4242/2005/ANSIN4242.xsd">

<Measurement UUID="54531f3c-402b-11d8-af12-0002a5094c23">
	<InstrumentInformation>								<!-- Information about the instrument; all of this is optional -->
		<InstrumentType>SpecPortal</InstrumentType>
		<Manufacturer>Portals R Us</Manufacturer>
		<InstrumentModel>model #1</InstrumentModel>
		<InstrumentID>serial #1</InstrumentID>
	</InstrumentInformation>

	<MeasuredItemInformation>							<!-- Info on what�s measured (optional): here, just the measurement location -->
		<MeasurementLocation>
			<MeasurementLocationName>DCA Cargo East</MeasurementLocationName>
			<Coordinates>40.12 10.67</Coordinates>
		</MeasurementLocation>
	</MeasuredItemInformation> 

	<DetectorData>									<!-- DetectorData contains the occupancy data: 7 samples in all -->
		<StartTime>2004-11-03T14:36:05.4-05:00</StartTime>	<!-- Time when the measurement was started (i.e., time of the first sample) -->
		<SampleRealTime>PT0.1S</SampleRealTime>			<!-- Integration time of each sample; i.e., interval at which samples are taken -->
		<Occupied>0 0 1 1 1 0 0</Occupied>				<!-- Occupied indicates if the monitor was occupied for each of the 7 samples -->
		<Speed Units="m/s">2.2 2.3</Speed>				<!-- Entrance & exit speeds of the item as it went through the monitor (optional) -->
		<AlarmSummary>1</AlarmSummary>					<!-- Indicated that an alarm was generated during this occupancy (optional) -->
		<AlarmDescription>Speed Alarm</AlarmDescription>	<!-- What was annunciated for each alarm that occurred (optional): a speed alarm -->
		<AlarmDescription>High Co60 Activity: possible RDD</AlarmDescription>	<!-- another alarm: a high level of Co60 was detected -->

		<DetectorMeasurement DetectorType="Gamma" Detector="Left Gamma">	<!-- Measurement data for the gamma detector on the left side -->

			<GrossCountMeasurement WindowStart="0" WindowEnd="100">		<!-- Gross count data from the left gamma detector, from 0 to 100 keV -->
				<Alarmed>0 0 0 0 0 0 0</Alarmed>						<!-- Will be 1 if an alarm was generated due to the corresponding sample -->
				<GrossCounts>100 110 100 98 99 102 100</GrossCounts>	<!-- The raw gross counts from the detector for each sample -->
				<BackgroundCounts>101.25</BackgroundCounts>			<!-- The background counts value to be appled to each sample -->
			</GrossCountMeasurement>

			<GrossCountMeasurement WindowStart="100" WindowEnd="1000">
				<Alarmed>0 0 0 0 0 0 0</Alarmed>
				<GrossCounts>100 110 100 98 99 102 100</GrossCounts>
				<BackgroundCounts>101.25</BackgroundCounts>
			</GrossCountMeasurement>

			<SpectrumMeasurement>
				<SpectrumAvailable>0 0 0 1 1 0 0</SpectrumAvailable>	<!-- For each sample, the list value is 0 if the spectrum was not saved, -->													 			<!-- or is 1 if it was. -->
				<Alarmed>0 0 0 1 0 0 0</Alarmed>						<!-- Indicates, for each sample, if this detector alarmed.  In this -->
																<!-- example, sample 4 alarmed. -->

				<Spectrum SampleNumber="4" CalibrationIDs="LeftGammaEnergy" BackgroundSpectrumID="LeftGammaBackground">
																<!-- the spectrum for the fourth sample.  One calibration is specified -->
																<!-- (see ID=”LeftGammaEnergy” below); the background spectrum has -->
																<!-- ID=”LeftGammaBackground”. -->
					<StartTime>2004-11-03T14:36:05.8-05:00</StartTime>	<!-- Time when this spectrum measurement was started -->
					<RealTime>PT1S</RealTime>
					<LiveTime>PT0.99S</LiveTime>
					<SourceType>Item</SourceType>
					<ChannelData>										<!-- The spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 	<!-- note that the formatting is purely for readability -->
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>

				<Spectrum SampleNumber="5" CalibrationIDs="LeftGammaEnergy" BackgroundSpectrumID="LeftGammaBackground">
																<!-- the spectrum for the fifth sample -->
					<StartTime>2004-11-03T14:36:05.9-05:00</StartTime>
					<RealTime>PT1S</RealTime>
					<LiveTime>PT0.99S</LiveTime>
					<SourceType>Item</SourceType>
					<ChannelData>									<!-- The spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>

				<Spectrum ID="LeftGammaBackground" CalibrationIDs="LeftGammaEnergy">	<!-- the background spectrum for the left gamma detector  -->
					<StartTime>2004-11-03T14:30:00.0-05:00</StartTime>	
					<RealTime>PT100S</RealTime>
					<LiveTime>PT99.8S</LiveTime>
					<SourceType>Background</SourceType>
					<ChannelData>												<!-- The background spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>
			</SpectrumMeasurement>

		</DetectorMeasurement>

		<DetectorMeasurement DetectorType="Gamma" Detector="Right Gamma">	<!-- Measurement data for the gamma detector on the right side -->

			<GrossCountMeasurement WindowStart="0" WindowEnd="100">
				<Alarmed>0 0 0 0 0 0 0</Alarmed>
				<GrossCounts>100 110 100 98 99 102 100</GrossCounts>
				<BackgroundCounts>101.25</BackgroundCounts>
			</GrossCountMeasurement>
			<GrossCountMeasurement WindowStart="100" WindowEnd="1000">
				<Alarmed>0 0 0 0 0 0 0</Alarmed>
				<GrossCounts>100 110 100 98 99 102 100</GrossCounts>
				<BackgroundCounts>101.25</BackgroundCounts>
			</GrossCountMeasurement>

			<SpectrumMeasurement>
				<SpectrumAvailable>0 0 0 1 1 0 0</SpectrumAvailable>
				<Alarmed>0 0 0 0 0 0 0</Alarmed>
				<Spectrum SampleNumber="4" CalibrationIDs="RightGammaEnergy" BackgroundSpectrumID="RightGammaBackground">
					<StartTime>2004-11-03T14:36:05.8-05:00</StartTime>	
					<RealTime>PT1S</RealTime>
					<LiveTime>PT0.99S</LiveTime>
					<SourceType>Item</SourceType>
					<ChannelData>							<!-- The spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>

				<Spectrum SampleNumber="5" CalibrationIDs="RightGammaEnergy" BackgroundSpectrumID="RightGammaBackground">
					<StartTime>2004-11-03T14:36:05.9-05:00</StartTime>	
					<RealTime>PT1S</RealTime>
					<LiveTime>PT0.99S</LiveTime>
					<SourceType>Item</SourceType>
					<ChannelData>						<!-- The spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>

				<Spectrum ID="RightGammaBackground" CalibrationIDs="RightGammaEnergy"><!-- the background spectrum for the right gamma detector -->
					<StartTime>2004-11-03T14:30:00.0-05:00</StartTime>	
					<RealTime>PT100S</RealTime>
					<LiveTime>PT99.8S</LiveTime>
					<SourceType>Background</SourceType>
					<ChannelData>												<!-- The background spectrum data (256 channels) -->
						0 0 0 0 0 0 0 0 0 0 0 0 3 9 5 12 4 6 5 4 3 4 3 3 
						6 2 4 6 1 5 2 2 5 3 8 5 6 5 2 6 2 2 3 6 6 3 6 2 
						2 8 4 2 3 4 4 3 1 4 4 3 4 4 1 2 5 5 4 7 6 4 4 3 
						4 2 3 4 4 1 6 6 4 9 1 3 5 1 2 3 3 4 1 2 2 4 1 3 
						2 5 3 3 3 3 3 2 2 1 4 3 3 0 0 3 1 2 1 1 4 0 1 2 
						2 1 1 2 0 0 2 0 2 1 1 0 4 3 1 1 0 3 3 4 5 4 2 2 
						3 4 3 4 4 4 4 1 5 5 6 7 6 4 5 4 9 6 3 8 5 9 8 7 
						7 6 3 4 4 4 2 5 2 2 3 1 1 0 1 2 4 1 3 2 2 1 1 3 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						3 2 0 2 0 0 1 1 2 0 1 0 2 0 2 1 2 1 1 0 1 1 2 2 
						0 2 1 1 0 1 1 0 0 2 1 1 0 1 1 0
					</ChannelData>
				</Spectrum>
			</SpectrumMeasurement>
		</DetectorMeasurement>

		<DetectorMeasurement DetectorType="Neutron" Detector="Left Neutron">		<!-- Measurement data for the neutron detector on the left side -->
			<GrossCountMeasurement>
				<Alarmed>0 0 0 0 0 0 0</Alarmed>								<!-- 1 if an alarm was generated due to the corresponding sample -->
				<GrossCounts>3 4 2 4 1 2 3</GrossCounts>						<!-- The raw gross count data -->
				<BackgroundCounts>3.4 3.6 3.5 3.5 3.5 3.5 3.5</BackgroundCounts>	<!-- The background counts appropriate for each sample; -->
																		<!-- only one value needed if they’re all the same -->
			</GrossCountMeasurement>
		</DetectorMeasurement>

		<DetectorMeasurement DetectorType="Neutron" Detector="Right Neutron">		<!-- Measurement data for the neutron detector on the right side -->
			<GrossCountMeasurement>
				<Alarmed>0 0 0 0 0 0 0</Alarmed>
				<GrossCounts>3 4 2 4 1 2 3</GrossCounts>
				<BackgroundCounts>3.4 3.6 3.5 3.5 3.5 3.5 3.5</BackgroundCounts>
			</GrossCountMeasurement>
		</DetectorMeasurement>
	</DetectorData>

	<AnalysisResults>															<!-- Analysis results for this measurement -->
		<ThreatDescription>Possible RDD</ThreatDescription>							<!-- Instrument’s overall assessment of the situation -->

		<NuclideAnalysis ActivityUnits="Bq">										<!-- Nuclide analysis results -->

			<Nuclide>															<!-- Results for Co-60 -->
				<NuclideName>Co-60</NuclideName>									<!-- The name of the nuclide -->
				<NuclideType>Industrial</NuclideType>								<!-- The type of nuclide: Industrial, SNM, NORM, etc. -->
				<NuclideActivity>10000000 10000.0</NuclideActivity>					<!-- Co-60’s decay-corrected activity (in Bq; see Units) -->
				<NuclideIDConfidenceIndication>98.0</NuclideIDConfidenceIndication>	<!-- Confidence in the presence of Co-60: -->
																			<!-- higher values mean more likely to be present -->
				<NuclideIDConfidenceDescription>High</NuclideIDConfidenceDescription>	<!-- Confidence indication translated into words -->
			</Nuclide>									
			<Nuclide>															<!-- Results for Cs-137 -->
				<NuclideName>Cs-137</NuclideName>
				<NuclideType>Industrial</NuclideType>
				<NuclideActivity>10.0 5.0</NuclideActivity>
				<NuclideIDConfidenceIndication>3</NuclideIDConfidenceIndication>
				<NuclideIDConfidenceDescription>Low</NuclideIDConfidenceDescription>
			</Nuclide>
		</NuclideAnalysis>
	</AnalysisResults>
</Measurement>

<Calibration Type="Energy" ID="LeftGammaEnergy">				<!-- Energy calibration for the left gamma detector -->
	<Equation Model="Polynomial" Form="E = Term0 + Term1*Ch">	<!-- "Model" is the type of equation; "Form" is just for documentation -->
		<Coefficients>0 0.5</Coefficients>					<!-- the 1st list element is "Term0", the second "Term1" -->
		<CovarianceMatrix>0 0.05 0.01</CovarianceMatrix>
	</Equation>
</Calibration>

<Calibration Type="Energy" ID="RightGammaEnergy">				<!-- Energy calibration for the right gamma detector-->
	<Equation Model="Polynomial" Form="E = Term0 + Term1*Ch">
		<Coefficients>0 0.5</Coefficients>
		<CovarianceMatrix>0 0.05 0.01</CovarianceMatrix>
	</Equation>
</Calibration>

</N42InstrumentData>
