Draft, in work.
Generating Xtc
For tutorial purposes, the following streamlined example shows XXX. For an example involving more detectors and formats and their corresponding algorithms, see the example xtcdata/xtcdata/app/xtcwriter.cc.
A Notional DAQ Harness
# Assume some totally made-up data acquisition callback framework named DAQFramework CSPADXtcWriter padwriter() DAQFramework.registerHandler("configure", padwriter.setup) DAQFramework.registerHandler("runstart", padwriter.setup) DAQFramework.registerHandler("readoutevent", padwriter.writeEvent) DAQFramework.registerHandler("runend", padwriter.writeFile)
"setup" Method: Set Up The Names Structure
Define the "shape" of detector elements and associate algorithm version information with the data to facilitate pipeline processing.
- Create an XtcData:Dgram as the root container.
- Next code sample description.
At some initialization step, for example in response to a DAQ configure signal:
- Subclass XtcData::VarDef to build a data structure specific to the detector in question.
"writeEvent" Method: Add Event Data
Parsing Whole Xtc Files
xtcreader.cc and XtcIterator.hh
Use of Xtc Small Data Files
this might be duplicate of what's on top page
Overview
Content Tools