#include <StreamSerializer.h>
Public Member Functions | |
int | serializeEvent (SerializeDataBuffer &data_buffer, EventForOutput const &event, ParameterSetID const &selectorConfig, uint32_t metaDataChecksum, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const |
int | serializeEventMetaData (SerializeDataBuffer &data_buffer, const BranchIDLists &branchIDLists, ThinnedAssociationsHelper const &thinnedAssociationsHelper, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const |
data_buffer.adler32_chksum_ is the meta data checksum to pass to subsequent events More... | |
int | serializeRegistry (SerializeDataBuffer &data_buffer) const |
int | serializeRegistry (SerializeDataBuffer &data_buffer, SendJobHeader::ParameterSetMap const &psetMap) const |
StreamSerializer (SelectedProducts const *selections) | |
Static Public Member Functions | |
static unsigned int | compressBuffer (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize) |
static unsigned int | compressBufferLZMA (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize, bool addHeader=true) |
static unsigned int | compressBufferZSTD (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel, unsigned int reserveSize, bool addHeader=true) |
Private Member Functions | |
int | serializeEventCommon (SerializeDataBuffer &data_buffer, edm::SendEvent const &iEvent, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const |
Private Attributes | |
SelectedProducts const * | selections_ |
edm::propagate_const< TClass * > | tc_ |
Definition at line 74 of file StreamSerializer.h.
edm::streamer::StreamSerializer::StreamSerializer | ( | SelectedProducts const * | selections | ) |
Creates a translator instance for the specified product registry.
Definition at line 38 of file StreamSerializer.cc.
|
static |
Compresses the data in the specified input buffer into the specified output buffer. Returns the size of the compressed data or zero if compression failed.
Definition at line 289 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, and runTheMatrix::ret.
Referenced by serializeEventCommon().
|
static |
Definition at line 321 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, filters, and cms::cuda::stream.
Referenced by serializeEventCommon().
|
static |
Definition at line 405 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, and createfilelist::int.
Referenced by serializeEventCommon().
int edm::streamer::StreamSerializer::serializeEvent | ( | SerializeDataBuffer & | data_buffer, |
EventForOutput const & | event, | ||
ParameterSetID const & | selectorConfig, | ||
uint32_t | metaDataChecksum, | ||
StreamerCompressionAlgo | compressionAlgo, | ||
int | compression_level, | ||
unsigned int | reserveSize | ||
) | const |
Serializes the specified event into the specified event message.
make a char* as a data member, tell ROOT to not adapt it, but still use it. initialize it to 1M, let ROOT resize if it wants, then delete it in the dtor.
change the call to not take an eventMessage, add a member function to return the address of the place that ROOT wrote the serialized data.
return the length of the serialized object and the actual length if compression has been done (may want to cache these lengths in this object instead.
the caller will need to copy the data from this object to its final destination in the EventMsgBuilder.
Definition at line 126 of file StreamSerializer.cc.
References cms::cuda::assert(), OnlineOutput_cfi::compression_level, submitPVResolutionJobs::desc, edm::ParentageRegistry::getMapped(), edm::ParentageRegistry::instance(), edm::Parentage::parents(), mps_fire::result, corrVsCorr::selection, selections_, and serializeEventCommon().
Referenced by edm::streamer::StreamerOutputMsgBuilders::serializeEvent().
|
private |
Definition at line 190 of file StreamSerializer.cc.
References cms::Adler32(), edm::streamer::SerializeDataBuffer::adler32_chksum_, edm::SendEvent::aux(), edm::streamer::SerializeDataBuffer::bufferPointer(), DMR_cfg::cerr, edm::streamer::SerializeDataBuffer::comp_buf_, compressBuffer(), compressBufferLZMA(), compressBufferZSTD(), OnlineOutput_cfi::compression_level, filterCSVwithJSON::copy, edm::streamer::SerializeDataBuffer::curr_event_size_, edm::streamer::SerializeDataBuffer::curr_space_used_, Exception, edm::EventAuxiliary::id(), edm::streamer::LZMA, edm::streamer::SerializeDataBuffer::ptr_, edm::streamer::SerializeDataBuffer::reserve_size, edm::streamer::SerializeDataBuffer::rootbuf_, tc_, edm::streamer::ZLIB, and edm::streamer::ZSTD.
Referenced by serializeEvent(), and serializeEventMetaData().
int edm::streamer::StreamSerializer::serializeEventMetaData | ( | SerializeDataBuffer & | data_buffer, |
const BranchIDLists & | branchIDLists, | ||
ThinnedAssociationsHelper const & | thinnedAssociationsHelper, | ||
StreamerCompressionAlgo | compressionAlgo, | ||
int | compression_level, | ||
unsigned int | reserveSize | ||
) | const |
data_buffer.adler32_chksum_ is the meta data checksum to pass to subsequent events
Definition at line 179 of file StreamSerializer.cc.
References OnlineOutput_cfi::compression_level, and serializeEventCommon().
Referenced by edm::streamer::StreamerOutputMsgBuilders::serializeEventMetaData().
int edm::streamer::StreamSerializer::serializeRegistry | ( | SerializeDataBuffer & | data_buffer | ) | const |
Serializes the product registry (that was specified to the constructor) into the specified InitMessage.
Definition at line 45 of file StreamSerializer.cc.
References edm::pset::Registry::fillMap(), and edm::pset::Registry::instance().
Referenced by edm::streamer::StreamerOutputMsgBuilders::serializeRegistry().
int edm::streamer::StreamSerializer::serializeRegistry | ( | SerializeDataBuffer & | data_buffer, |
SendJobHeader::ParameterSetMap const & | psetMap | ||
) | const |
Definition at line 51 of file StreamSerializer.cc.
References cms::Adler32(), edm::streamer::SerializeDataBuffer::adler32_chksum_, edm::streamer::SerializeDataBuffer::bufferPointer(), edm::streamer::SerializeDataBuffer::curr_event_size_, edm::streamer::SerializeDataBuffer::curr_space_used_, Exception, FDEBUG, edm::streamer::getTClass(), edm::streamer::SerializeDataBuffer::ptr_, edm::SendJobHeader::push_back(), edm::streamer::SerializeDataBuffer::rootbuf_, corrVsCorr::selection, selections_, and edm::SendJobHeader::setParameterSetMap().
|
private |
Definition at line 130 of file StreamSerializer.h.
Referenced by serializeEvent(), and serializeRegistry().
|
private |
Definition at line 131 of file StreamSerializer.h.
Referenced by serializeEventCommon().