You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Next »

Draft, in work.

Topics

Go back to the Top of this tree.

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)

Set Up The Names Structure

    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.

     

     

    Define Detector Metadata

    Define the "shape" of detector elements and associate algorithm version information with the data to facilitate pipeline processing.

    1. A code sample description.
    2. Next code sample description.

    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

    • No labels