Belle II Software  release-08-01-10
HLTStreamHelper Class Reference

Helper class for data store serialization. More...

#include <HLTStreamHelper.h>

Collaboration diagram for HLTStreamHelper:

Public Member Functions

void initialize ()
 Initialize this class. Call this e.g. in the first event.
 
std::unique_ptr< ZMQNoIdMessagestream (bool addPersistentDurability, bool streamTransientObjects)
 Stream the data store into an event message. Add ROI as additional message (if valid).
 
std::unique_ptr< ZMQNoIdMessagestreamRaw ()
 Stream the data store into an event message and add SendHeader and SendTrailer around the message. Add ROI as additional message (if valid).
 
std::unique_ptr< ZMQNoIdMessagestreamHistograms (bool compressed=true)
 Stream all objects derived from TH1 into a message. Only the last subfolder is streamed by prefixing the histogram names with "<subfolder>/".
 
void read (std::unique_ptr< ZMQNoIdMessage > message)
 Read in a ZMQ message and rebuilt the data store from it.
 
void registerStoreObjects (bool addExpressRecoObjects)
 Register all needed store objects, either only the raw data, ROIs and event meta data (for HLT) or additional objects (for express reco).
 

Private Member Functions

zmq::message_t getROIMessageIfViable () const
 If the ROI payload data storobject is filled, write out the roi message (otherwise an empty message)
 

Private Attributes

StreamHelper m_streamHelper
 We use the framework stream helper.
 
StoreObjPtr< EventMetaDatam_eventMetaData
 Store Objects for HLT use.
 
StoreArray< RawSVDm_rawSVDs
 Store Objects for HLT use.
 
StoreArray< RawCDCm_rawCDCs
 Store Objects for HLT use.
 
StoreArray< RawTOPm_rawTOPs
 Store Objects for HLT use.
 
StoreArray< RawARICHm_rawARICHs
 Store Objects for HLT use.
 
StoreArray< RawECLm_rawECLs
 Store Objects for HLT use.
 
StoreArray< RawKLMm_rawKLMs
 Store Objects for HLT use.
 
StoreArray< RawTRGm_rawTRGs
 Store Objects for HLT use.
 
StoreArray< RawFTSWm_rawFTSWs
 Store Objects for HLT use.
 
StoreObjPtr< ROIpayloadm_roiPayload
 Store Objects for HLT use.
 
StoreObjPtr< RandomGeneratorm_randomGenerator
 Additional Store Objects for ExpressReco use.
 
StoreObjPtr< SoftwareTriggerResultm_softwareTriggerResult
 Additional Store Objects for ExpressReco use.
 
StoreObjPtr< SoftwareTrigger::SoftwareTriggerVariablesm_softwareTriggerVariables
 Additional Store Objects for ExpressReco use.
 
StoreObjPtr< TRGSummarym_triggerSummary
 Additional Store Objects for ExpressReco use.
 
StoreArray< RawPXDm_rawPXDs
 Additional Store Objects for ExpressReco use.
 
StoreArray< ROIidm_rois
 Additional Store Objects for ExpressReco use.
 
std::vector< char > m_outputBuffer
 Temporary buffer for storing the compressed result.
 
unsigned int m_maximalCompressedSize = 100'000'000
 Maximal size of the compression buffer.
 

Detailed Description

Helper class for data store serialization.

Definition at line 42 of file HLTStreamHelper.h.


The documentation for this class was generated from the following files: