1 / 9

XML file structure

XML file structure. Why and How XML data format?.

tracen
Download Presentation

XML file structure

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML file structure

  2. Why and How XML data format? XML is a language generally used over internet. In our case is one of the requirements of the American National Standard Data Format Standard for Radiation Detectors Used for Homeland Security and the JRC test used to represent our data We decided to proceed having 2 different data formats. The first is the ASCII file used for the analysis and the second is the XML, which is an sub-ensemble of the first one. The procedure adopted is: decide the XML structure followed by the C++ macro which generates the XML file starting from the ASCII file.

  3. Possible XML File structure I considered the detector structure for the file example: Portal with 2 arms of 2bars each and with each bar made by 4 detectors. Arms: Arm 1 and Arm 2 (We have now only 1 side of the “portal”) Bars: Bar1 and Bar2 Detectors: Right side: R1 and R2 Left side: L1 and L2 With 1 and 2 and left-right arbitrary chosen (for the moment) First idea of a possible data structure of the XML data file. XML File: SUMMARY of themeasurement results and NOT the data file used for the analysis.

  4. N42(2006) XML Structure XML is language with a hierarchical structure used to store&list data. The following scheme is the specific structure of the N42 (2006) format In our case (RPM) the spectrumand the NuclideAnalsysis element is not necessary.(They were developed for energy spectra) I started to use to N42 (2006) format, but I will switch to the newest one (2011). The main differences are more specific number and higher number of elements to use

  5. Header Example Result Time, Names and Values are random number…. Browser display: EXAMPLE HEADERGenovaRPMINFN ed Ansaldo Prototype1List Mode User 2004-11-03T14:36:04.3-05:00R1100.5150.5R2 100.5 150.5 L1 100.5 150.5 L2 100.5 150.5 Real meaning: COMMENT COMMENT (TITLE OF THE 1° PART) PLACE EXPERIMENT MANIFACTURERS MODEL MEASUREMENT USER DATE BACKGROUND MEASUREMENT DETECTOR BACKGROUND COUNTS BETWEEN 100keV AND 200keV BACKGROUND COUNTS BETWEEN 200keV AND 1000keV and so on for R2, L1 and L2 All the info are in the code, but it seems that a normal browser is not enough to show the hierarchical structure of the code.

  6. Zoom Displayed: R1100.5150.5 Translation: DETECTOR BACKGROUND COUNTS BETWEEN 100keV AND 200keV BACKGROUND COUNTS BETWEEN 200keV AND 1000keV Code: <DetectorMeasurementDetectorType="Arm 1" Detector="R1"> R1 <GrossCountMeasurementWindowStart="100" WindowEnd="200"> <!-- They are in keV --> <BackgroundCounts>100.5</BackgroundCounts> </GrossCountMeasurement> <GrossCountMeasurementWindowStart="200” WindowEnd="1000"> <BackgroundCounts>150.5</BackgroundCounts> </GrossCountMeasurement> </DetectorMeasurement> => All the info are in the code, but it seems that a normal browser is not enough to show the hierarchical structure of the code

  7. Final draft The final printed draft of the XML file is: EXAMPLE HEADER Genova RPM INFN edAnsaldo Prototype 1 List Mode User 2004-11-03T14:36:04.3-05:00 PT1013.4S R1 100.5 150.5 R2 100.5 150.5 L1 100.5 150.5 L2 100.5 150.5 END of File Information of the alarm settings Count for Arm1-Bar1: TOT Gamma Neutrons 20 16 4 Total Rates for Arm1-Bar1: Gamma Neutrons 4 2 2004-11-03T14:36:04.3-05:00 Total counts: TOT Gamma Neutrons 30 16 4 Gamma alarm and Neutron alarm 1 0 Total Rates: Gamma Neutrons 4 2 Possible State: Probable NORM. Alarm active for gamma radiations: YES. Alarm active for neutron radiation: NO. Error messages: NO. Detector status: ACTIVE. I am thinking to go further on these sides: • I am thinking that it is mandatory 1 reader able to show the hierarchical structure of the file, better if free  Suggestions? • Switch to the better N42(2011) scheme • With Gabriele and Raffaellawe were were talking about which data we would like to use and how to organize them in the ASCII and XML file • Start to write a code able to generate, starting from the ASCII data file, the XML one

  8. Possible XML File structure

  9. Other info to consider… Header Already implemented • Detector: RPM • Measurement: Measure, Calibration, Test, Other • User:User, SuperUser Other possible ideas… • UUID (Universally unique identifier) • N. of samples and precision used for the signal integral • Trigger parameters set for the measurement Central part End of File

More Related