lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
FileWriter.hh File Reference

Buffered file writers: single-threaded (BufferedFileWriter), with a writer thread (BufferedFileWriterMT), round-robin over several files (BufferedMultiFileWriterMT), and the small-data SmdWriter. More...

#include <atomic>
#include <string>
#include <thread>
#include <vector>
#include "psdaq/service/Fifo.hh"
#include "psdaq/service/Task.hh"
#include "xtcdata/xtc/VarDef.hh"
#include "xtcdata/xtc/DescData.hh"
#include "xtcdata/xtc/TimeStamp.hh"
#include "FileWriterBase.hh"

Classes

class  Drp::BufferedFileWriter
 Single-threaded file writer that collects events in one memory buffer and writes the buffer when the next event does not fit or the batch is more than 2 s old (by timestamp seconds). More...
 
class  Drp::BufferedFileWriterMT
 File writer with a pool of page-aligned buffers and a writer thread: writeEvent() fills buffers and queues full ones, and the thread writes them to the file. More...
 
class  Drp::BufferedMultiFileWriterMT
 Writes events round-robin to several BufferedFileWriterMT files. More...
 
class  Drp::SmdWriter
 Small-data writer that forwards open, close and writeEvent to an internal BufferedFileWriter. More...
 

Namespaces

namespace  Drp
 This class services detectors whose event data is formatted from the AxiStreamBatcherEventBuilder firmware module This class depends upon the existence of a python module "psdaq.configdb.<detType>_config.py", which contains the following functions: <detType>_init (str) - returns a handle (PyObject) for interacting with the device configuration <detType>_connect (handle) - returns a dictionary with "paddr" element for Xpm link ID.
 

Detailed Description

Buffered file writers: single-threaded (BufferedFileWriter), with a writer thread (BufferedFileWriterMT), round-robin over several files (BufferedMultiFileWriterMT), and the small-data SmdWriter.