Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Draft, in work.

Table of Contents

Include Page
Xtc Topic Map
Xtc Topic Map

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

Code Block
languagecpp
# Assume some totally made-up data acquisition callback framework named DAQFramework

PADXtcWriter padwriter()

(void)*

DAQFramework.registerHandler("configure", padwriter.setup)
DAQFramework.registerHandler("readout", padwriter.setup)

 

Set Up Root Level Datagram/Xtc Container

Panel

At some initialization step, for example in response to a DAQ configure signal:

  • Subclass XtcData::VarDef to capture

Define Detector Metadata

Panel

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 the "shape" of detector elements and associate algorithm version information with the data to facilitate pipeline processing.

 

 

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