ORNL is managed by UT-Battelle for the US Department of Energy ADnED Handling V4 Neutron Event Data Matt Pearson SNS ORNL 18 th -22 nd May 2015.

Slides:



Advertisements
Similar presentations
V4 Status and Workshop Report CSS, DISCS, an V4 team.
Advertisements

EPICS V4/areaDetector Integration
PvData,pvAccess,pvIOC,pvService Status EPICS Meeting June 2011 NSRRC,Hsinchu, Taiwan Marty Kraimer, Guobao Shen, and Matej Sekoranja.
AreaDetector for ADCs How to deal with 1D data Tom Cobb.
areaDetector Developments
ORNL is managed by UT-Battelle for the US Department of Energy EPICS V4 for SNS Neutron Data Kay Kasemir Oct
AreaDetector Data Processing Pipeline In EPICS V4 Dave Hickin Diamond Light Source EPICS Collaboration Meeting Diamond Light Source 01/05/2013.
Olin Student Projects 2008 Keith Gendreau Code 662 NASA/GSFC
AreaDetector and GStreamer Similarities and Differences Tom Cobb.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
Control System Studio (CSS)‏ Kunal Shroff EPICS Training Meeting 07/10/2010.
A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole.
Scan System Kay Kasemir, Xihui Chen Jan Managed by UT-Battelle for the U.S. Department of Energy Automated Experiment Control “Scan” should be.
Scan System: Experiment Automation Kay Kasemir, Xihui Chen RAL EPICS Meeting, May 2013.
A Streaming Video Server for areaDetector Tom Cobb Presented by Nick Rees.
Channel Archiver Stats & Problems Kay Kasemir, Greg Lawson, Jeff Patton Presented by Xiaosong Geng (ORNL/SNS) March 2008.
History Server & API Christopher Larrieu Jefferson Laboratory.
Project Description. This project aims to monitor an area through a camera, transmits the video wireless.
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
Magnetic Field Measurement System as Part of a Software Family Jerzy M. Nogiec Joe DiMarco Fermilab.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Mantid Scientific Steering Committee Nick Draper 10/11/2010.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
New Features in EPICS V4 Release 4.4 EPICS Meeting 2014, CEA, October 2014 Marty Kraimer, Matej Sekoranja.
Archive Service Nikolay Malitsky October 2, 2013.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
EPICS for Neutron Scattering Beam Lines Steven Hartman EPICS Meeting, 2 May 2013.
ORNL is managed by UT-Battelle for the US Department of Energy CS-Studio PVTable and Autosave Kay Kasemir Oct
An introduction to areaDetector Tom Cobb. What is areaDetector?  C++ framework for detectors in EPICS  Drivers produces NDArrays of data  Plugins consume.
Software Status  Last Software Workshop u Held at Fermilab just before Christmas. u Completed reconstruction testing: s MICE trackers and KEK tracker.
CSS – Control System Studio
Online Software 8-July-98 Commissioning Working Group DØ Workshop S. Fuess Objective: Define for you, the customers of the Online system, the products.
Development of a Gamma-Ray Beam Profile Monitor for the High-Intensity Gamma-Ray Source Thomas Regier, Department of Physics and Engineering Physics University.
The Main Injector Beam Position Monitor Front-End Software Luciano Piccoli, Stephen Foulkes, Margaret Votava and Charles Briegel Fermi National Accelerator.
AreaDetector workshop Summary and notes…. Overview iocBuilder File Writer Changes areaDetector driver pattern shared vector Asyn client without an IOC.
1 23.July 2012Jörn Adamczewski-Musch TRB / HADAQ plug-ins for DABC and Go4 Jörn Adamczewski-Musch GSI, Experiment Electronics: Data Processing group EE-meeting,
Event Mode Data Acquisition System Richard Riedel, Oak Ridge National Laboratory.
Grenoble, June 22nd 2009 Libera Workshop 2008 Peter Leban, Andrej Košiček Libera Brilliance, Recent Patches, new Ideas, Future Grenoble,
High Speed Detectors at Diamond Nick Rees. A few words about HDF5 PSI and Dectris held a workshop in May 2012 which identified issues with HDF5: –HDF5.
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 4 Monitoring Network Activity.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS April 2013 Control System Studio, CSS Overview.
Experimental Facilities Division ORNL DAQ System Interfaces Neutron Science Software Workshop Oct 13, 2003 Rick Riedel.
Florida Institute of Technology, Melbourne, FL
Status & development of the software for CALICE-DAQ Tao Wu On behalf of UK Collaboration.
Tool Integration with Data and Computation Grid “Grid Wizard 2”
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
MMDAQ Content – Overview – Case study – adding support for VMM1 chips – Drawings (data flow, concurrency, error reporting, scalability, monitoring) 13.
EPICS and LabVIEW Tony Vento, National Instruments
TELL1 readout in RICH test: status report Gianluca Lamanna on behalf of TDAQ Pisa Group (B.Angelucci, C.Avanzini, G.Collazuol, S.Galeotti, G.L., G.Magazzu’,
Scan System Update Kay Kasemir, May Managed by UT-Battelle for the U.S. Department of Energy Scan Server Sample Environment Equipments Sample Environment.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS on SNS Instruments Matt Pearson SNS ORNL 18 th - 22 nd May 2015.
ORNL is managed by UT-Battelle for the US Department of Energy Status Report: Data Acquisition and Instrument Controls for the Spallation Neutron Source.
BOY, A Modern Graphical Operator Interface Editor and Runtime Xihui Chen, Kay Kasemir RAD Control Group.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Normative V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
AreaDetector: What’s New? Mark Rivers GeoSoilEnviroCARS, Advanced Photon Source University of Chicago.
DeLiDAQ-2D ─ a new data acquisition system for position-sensitive neutron detectors with delay-line readout F.V. Levchanovskiy, S.M. Murashkevich Frank.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
JavaIOC Overview and Update
SNS Status Report Karen S. White 10/15/08.
areaDetector: Recent Developments and Future Ideas
Cover page.
SLAC USA Marty Kraimer and Matej Sekoranja
Beam Synchronous Acquisition on IOC
Control Systems for the APTM and GRID
What’s New and What’s Next
areaDetector: What’s New? Mark Rivers, Univ. of Chicago
EPICS 7 Matej Sekoranyja, Marty Karimer, Michael Davidsaver, Ralph Lange, Andrew Johnson, Timo Korhonen, Heinz Junkes, Patrick Marschalik, Murali Shankar,
GeoSoilEnviroCARS The University of Chicago
Presentation transcript:

ORNL is managed by UT-Battelle for the US Department of Energy ADnED Handling V4 Neutron Event Data Matt Pearson SNS ORNL 18 th -22 nd May 2015

Matt Pearson – 18 th to 22 nd May 2015 Neutron Events N Neutrons He3 Detector Multiple Drift Tubes Read Out Card Read Out Card Read Out Card DSP Timing System Bunched in pulses at 60Hz Optical Reciver nED framework DSP Nexus File ADARA V4 Clients nED is a driver for the various types of readout cards, and a framework for dealing with neutron events. ADARA is a custom protocol for streaming events to disk. nED produces a V4 channel for online visualization. Events are composed of (pixel ID, time of flight) pairs. 8 bytes for one event.

Matt Pearson – 18 th to 22 nd May 2015 Neutron Events (2) – using pvData N structure time_t timeStamp NTScalar proton_charge double value // Time-of-Flight values for N neutron events NTScalarArray time_of_flight uint[] value // Pixel IDs for N neutron events NTScalarArray pixel uint[] value [ ~]$ pvget neutrons neutrons structure time_t timeStamp T09:34: epics:nt/NTScalar:1.0 proton_charge double value 6e+08 epics:nt/NTScalarArray:1.0 time_of_flight uint[] value [63755,94783,45297,83246,74134,86331,85143,60222,84875,73684] epics:nt/NTScalarArray:1.0 pixel uint[] value [946,2093,735,2358,938,2858,453,2843,869,2647] Example ‘pvget’:

Matt Pearson – 18 th to 22 nd May 2015 ADnED Requirements Integrate event data for X/Y plot (also means mapping pixels to 2-D X/Y plot) Integrate TOF data for 1-D spectrum Calculate multiple ROI for all plots Filter events going into TOF spectrum based on a X/Y ROI Filter events going into X/Y plot based on a TOF ROI Monitor multiple V4 channels (each nED instance is one V4 channel) Handle data from N detectors in one channel, or spread between channels. Support put_callback on a start acquisition for high level software Adjustable binning on TOF spectrum Calculate d-space, energy transfer, etc, based on pixel ID and TOF. Detect error conditions (missing packets, bad timestamps). Pause acquisition without resetting data Performance requirements: Handle up to approx 10M events/s (80MB/s). Our highest data rate beamline is 5-6M events/s. So 1 gigabit networking is enough. Update plots at ~1Hz. Update scalar values at ~10Hz (to support short acquisitions). Prior to developing ADnED we tested V4 performance. Works up to 100M events/s. See Kay Kasemir’s talk at last EPICS meeting.

Matt Pearson – 18 th to 22 nd May 2015 ADnED used areaDetector framework A lot of the functionality is free (waveform, ROIs, Statistics, binning, etc). What we developed: ADnED driver: Monitors V4 channels Applies filters based on ROIs Performs pixel mapping Integrates events based on detector pixel ID ranges Start/Stop acquire Produces 1-D NDArray objects for N detectors NDPluginROIStat: New areaDetector plugin to perform simple statistics on N ROIs (released in ADCore 2-2) ADnEDPixelROI: Custom ROI plugin to convert 1-D NDArray to 2-D NDArray ADnEDTransform: Library of calculations for d-space, etc. OPIs, Python tests (PyEpics).

Matt Pearson – 18 th to 22 nd May 2015 nED ADnED ADnEDTransform Event Handler Event Handler V4 Frame Handler Frame Handler X/Y ROI 1-D to 2-D X/Y ROI 1-D to 2-D TOF ROI TOF ROI 2-D NDArray X/Y Stat X/Y Stat X/Y ROIStat X/Y ROIStat X/Y Array X/Y Array 1-D NDArray 1-D NDArray TOF ROIStat TOF ROIStat TOF Array TOF Array 8 ROIs+Stats (min, max, total counts) ROI 1 also used for filtering X/Y pixel data 1-D TOF Array 8 ROIs+Stats (min, max, total counts) ROI 0 used for OPI autoscaling ROI 1 also used for filtering TOF data 2-D XY Array Profile Arrays Event Handler: Consume events from multiple nEDs Filter events based on XY ROI or TOF ROI Apply pixel mapping (logical ID to X/Y space) Frame correction on TOF Convert TOF to d-space, delta-E, etc. Sort events into detectors. Plugin chain is repeated for each detector. Frame handler creates NDArray objects at a slow rate (eg. 10 Hz) 1-D NDArray Buffer Det1 Det2 DetN nED ADnEDPixelROI

Matt Pearson – 18 th to 22 nd May 2015 ADnED Top Level Screen

Matt Pearson – 18 th to 22 nd May 2015 ADnED XY Plot Intensity widget + some rules

Matt Pearson – 18 th to 22 nd May 2015 ADnED Time of Flight Spectrum (TOF)

Matt Pearson – 18 th to 22 nd May 2015 ADnED User Friendly Screen

Matt Pearson – 18 th to 22 nd May 2015 ADnEDTransform Base class defines interface & some common code: virtual epicsFloat64 calculate(epicsUInt32 type, epicsUInt32 pixelID, epicsUInt32 tof) const = 0; Concrete class defines calculation based on pixel ID and TOF. Change calculation and/or input arguments at runtime. For example, on our VISION beamline we calculate energy transfer from the inelastic detector:

Matt Pearson – 18 th to 22 nd May 2015 ΔE and TOF spectrum on VISION Plots update at 1Hz ΔE calculation has to keep up with event rate (in this case it’s only ~10K e/s)

Matt Pearson – 18 th to 22 nd May 2015 ADnED So Far Deployed on two beamlines (3 rd one at end of May). Install on beamlines as we convert them to EPICS. More custom OPI screens for new beamlines. May require more detector diagnostics (or in a new application) ADnED: Simulation event server: ADnED Dependencies are: base, asyn, ADCore, V4 (pvAccess, etc). IOC application will also require: calc, busy, sscan, autosave