#include <StreamSerializer.h>
Public Member Functions | |
int | serializeEvent (SerializeDataBuffer &data_buffer, EventForOutput const &event, ParameterSetID const &selectorConfig, StreamerCompressionAlgo compressionAlgo, int compression_level, unsigned int reserveSize) const |
int | serializeRegistry (SerializeDataBuffer &data_buffer, const BranchIDLists &branchIDLists, ThinnedAssociationsHelper const &thinnedAssociationsHelper) |
int | serializeRegistry (SerializeDataBuffer &data_buffer, const BranchIDLists &branchIDLists, ThinnedAssociationsHelper const &thinnedAssociationsHelper, SendJobHeader::ParameterSetMap const &psetMap) |
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 Attributes | |
SelectedProducts const * | selections_ |
edm::propagate_const< TClass * > | tc_ |
Definition at line 72 of file StreamSerializer.h.
edm::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 270 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, and runTheMatrix::ret.
Referenced by serializeEvent().
|
static |
Definition at line 302 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, filters, and cms::cuda::stream.
Referenced by serializeEvent().
|
static |
Definition at line 386 of file StreamSerializer.cc.
References NanoAODEDMEventContent_cff::compressionLevel, Exception, FDEBUG, and createfilelist::int.
Referenced by serializeEvent().
int edm::StreamSerializer::serializeEvent | ( | SerializeDataBuffer & | data_buffer, |
EventForOutput const & | event, | ||
ParameterSetID const & | selectorConfig, | ||
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 132 of file StreamSerializer.cc.
References cms::Adler32(), SerializeDataBuffer::adler32_chksum_, cms::cuda::assert(), SerializeDataBuffer::bufferPointer(), DMR_cfg::cerr, SerializeDataBuffer::comp_buf_, compressBuffer(), compressBufferLZMA(), compressBufferZSTD(), OnlineOutput_cfi::compression_level, filterCSVwithJSON::copy, SerializeDataBuffer::curr_event_size_, SerializeDataBuffer::curr_space_used_, submitPVResolutionJobs::desc, Exception, edm::ParentageRegistry::getMapped(), edm::ParentageRegistry::instance(), edm::LZMA, edm::Parentage::parents(), SerializeDataBuffer::ptr_, SerializeDataBuffer::reserve_size, mps_fire::result, SerializeDataBuffer::rootbuf_, corrVsCorr::selection, selections_, tc_, edm::ZLIB, and edm::ZSTD.
Referenced by edm::StreamerOutputModuleCommon::serializeEvent().
int edm::StreamSerializer::serializeRegistry | ( | SerializeDataBuffer & | data_buffer, |
const BranchIDLists & | branchIDLists, | ||
ThinnedAssociationsHelper const & | thinnedAssociationsHelper | ||
) |
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::StreamerOutputModuleCommon::serializeRegistry().
int edm::StreamSerializer::serializeRegistry | ( | SerializeDataBuffer & | data_buffer, |
const BranchIDLists & | branchIDLists, | ||
ThinnedAssociationsHelper const & | thinnedAssociationsHelper, | ||
SendJobHeader::ParameterSetMap const & | psetMap | ||
) |
Definition at line 53 of file StreamSerializer.cc.
References cms::Adler32(), SerializeDataBuffer::adler32_chksum_, SerializeDataBuffer::bufferPointer(), SerializeDataBuffer::curr_event_size_, SerializeDataBuffer::curr_space_used_, Exception, FDEBUG, edm::getTClass(), SerializeDataBuffer::ptr_, edm::SendJobHeader::push_back(), SerializeDataBuffer::rootbuf_, corrVsCorr::selection, selections_, edm::SendJobHeader::setBranchIDLists(), edm::SendJobHeader::setParameterSetMap(), and edm::SendJobHeader::setThinnedAssociationsHelper().
|
private |
Definition at line 118 of file StreamSerializer.h.
Referenced by serializeEvent(), and serializeRegistry().
|
private |
Definition at line 119 of file StreamSerializer.h.
Referenced by serializeEvent().