#include <StreamSerializer.h>
Classes | |
struct | Arr |
Public Member Functions | |
int | serializeEvent (EventPrincipal const &eventPrincipal, ParameterSetID const &selectorConfig, bool use_compression, int compression_level, SerializeDataBuffer &data_buffer) |
int | serializeRegistry (SerializeDataBuffer &data_buffer) |
StreamSerializer (Selections const *selections) | |
Static Public Member Functions | |
static unsigned int | compressBuffer (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, int compressionLevel) |
Private Attributes | |
Selections const * | selections_ |
TClass * | tc_ |
Definition at line 62 of file StreamSerializer.h.
edm::StreamSerializer::StreamSerializer | ( | Selections 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 241 of file StreamSerializer.cc.
References benchmark_cfg::cerr, FDEBUG, and runTheMatrix::ret.
Referenced by edm::StreamDQMSerializer::serializeDQMEvent(), and serializeEvent().
int edm::StreamSerializer::serializeEvent | ( | EventPrincipal const & | eventPrincipal, |
ParameterSetID const & | selectorConfig, | ||
bool | use_compression, | ||
int | compression_level, | ||
SerializeDataBuffer & | data_buffer | ||
) |
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 139 of file StreamSerializer.cc.
References cms::Adler32(), SerializeDataBuffer::adler32_chksum_, edm::EventPrincipal::aux(), Selections::begin(), edm::BranchDescription::branchID(), edm::EventPrincipal::branchListIndexes(), benchmark_cfg::cerr, SerializeDataBuffer::comp_buf_, compressBuffer(), SerializeDataBuffer::curr_event_size_, SerializeDataBuffer::curr_space_used_, Selections::end(), edm::EventPrincipal::eventSelectionIDs(), edm::hlt::Exception, newFWLiteAna::found, edm::Principal::getForOutput(), edm::detail::ThreadSafeRegistry< KEY, T, E >::getMapped(), i, edm::EventPrincipal::id(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::Parentage::parents(), edm::Principal::processHistory(), edm::OutputHandle::productProvenance(), edm::OutputHandle::productProvenanceSharedPtr(), SerializeDataBuffer::ptr_, SerializeDataBuffer::rootbuf_, selections_, tc_, and edm::OutputHandle::wrapper().
Referenced by edm::StreamerOutputModuleBase::serializeEvent().
int edm::StreamSerializer::serializeRegistry | ( | SerializeDataBuffer & | data_buffer | ) |
Serializes the product registry (that was specified to the constructor) into the specified InitMessage.
Definition at line 48 of file StreamSerializer.cc.
References cms::Adler32(), SerializeDataBuffer::adler32_chksum_, Selections::begin(), SerializeDataBuffer::curr_event_size_, SerializeDataBuffer::curr_space_used_, edm::detail::ThreadSafeRegistry< KEY, T, E >::data(), runTheMatrix::data, Selections::end(), edm::hlt::Exception, FDEBUG, edm::pset::fillMap(), edm::getTClass(), i, edm::detail::ThreadSafeIndexedRegistry< T, E >::instance(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), SerializeDataBuffer::ptr_, edm::SendJobHeader::push_back(), SerializeDataBuffer::rootbuf_, selections_, edm::SendJobHeader::setBranchIDLists(), edm::SendJobHeader::setParameterSetMap(), edm::SendJobHeader::setProcessConfigurations(), and edm::sort_all().
Referenced by edm::StreamerOutputModuleBase::serializeRegistry().
|
private |
Definition at line 96 of file StreamSerializer.h.
Referenced by serializeEvent(), and serializeRegistry().
|
private |
Definition at line 98 of file StreamSerializer.h.
Referenced by serializeEvent().