#include <StreamerOutputFile.h>
Public Member Functions | |
uint32 | adler32 () const |
StreamerOutputFile (const std::string &name) | |
void | write (const InitMsgBuilder &) |
void | write (const InitMsgView &) |
uint64 | write (const EventMsgBuilder &) |
uint64 | write (const EventMsgView &) |
uint32 | writeEOF (uint32 statusCode, const std::vector< uint32 > &hltStats) |
uint64 | writeEventFragment (uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize) |
void | writeInitFragment (uint32 fragIndex, uint32 fragCount, const char *dataPtr, uint32 dataSize) |
~StreamerOutputFile () | |
Private Member Functions | |
void | writeEventHeader (const EventMsgView &ineview) |
void | writeStart (const InitMsgView &inview) |
Private Attributes | |
boost::shared_ptr< OutputFile > | streamerfile_ |
StreamerOutputFile: Class for doing Streamer Write operations Class for doing Streamer Write operations
Definition at line 21 of file StreamerOutputFile.h.
|
explicit |
Definition at line 8 of file StreamerOutputFile.cc.
References streamerfile_.
StreamerOutputFile::~StreamerOutputFile | ( | ) |
|
inline |
Definition at line 59 of file StreamerOutputFile.h.
References streamerfile_.
void StreamerOutputFile::write | ( | const InitMsgBuilder & | inview | ) |
Definition at line 81 of file StreamerOutputFile.cc.
References InitMsgBuilder::startAddress().
Referenced by write().
void StreamerOutputFile::write | ( | const InitMsgView & | inview | ) |
Performs write on InitMsgBuilder type, Header + Blob, both are written out.
Offset of first event to be written
Definition at line 87 of file StreamerOutputFile.cc.
References InitMsgView::descData(), edm::hlt::Exception, InitMsgView::headerSize(), run_regression::ret, InitMsgView::size(), streamerfile_, and writeStart().
uint64 StreamerOutputFile::write | ( | const EventMsgBuilder & | ineview | ) |
Definition at line 14 of file StreamerOutputFile.cc.
References EventMsgBuilder::startAddress(), and write().
uint64 StreamerOutputFile::write | ( | const EventMsgView & | ineview | ) |
Performs write on EventMsgBuilder type, Header + Blob, both are written out. RETURNS the Offset in Stream while at which Event was written.
Offset where current event starts
Offset of last written event
Definition at line 20 of file StreamerOutputFile.cc.
References EventMsgView::eventData(), edm::hlt::Exception, EventMsgView::headerSize(), run_regression::ret, EventMsgView::size(), streamerfile_, and writeEventHeader().
Definition at line 135 of file StreamerOutputFile.cc.
References edm::hlt::Exception, run_regression::ret, and streamerfile_.
uint64 StreamerOutputFile::writeEventFragment | ( | uint32 | fragIndex, |
uint32 | fragCount, | ||
const char * | dataPtr, | ||
uint32 | dataSize | ||
) |
Offset where current event starts
Offset of last written event
Definition at line 44 of file StreamerOutputFile.cc.
References edm::hlt::Exception, run_regression::ret, and streamerfile_.
|
private |
Definition at line 68 of file StreamerOutputFile.cc.
References edm::hlt::Exception, EventMsgView::headerSize(), run_regression::ret, EventMsgView::startAddress(), and streamerfile_.
Referenced by write().
void StreamerOutputFile::writeInitFragment | ( | uint32 | fragIndex, |
uint32 | fragCount, | ||
const char * | dataPtr, | ||
uint32 | dataSize | ||
) |
Offset of first event to be written
Definition at line 104 of file StreamerOutputFile.cc.
References edm::hlt::Exception, run_regression::ret, and streamerfile_.
|
private |
Definition at line 121 of file StreamerOutputFile.cc.
References edm::hlt::Exception, InitMsgView::headerSize(), run_regression::ret, InitMsgView::run(), InitMsgView::startAddress(), and streamerfile_.
Referenced by write().
|
private |
Definition at line 66 of file StreamerOutputFile.h.
Referenced by adler32(), StreamerOutputFile(), write(), writeEOF(), writeEventFragment(), writeEventHeader(), writeInitFragment(), and writeStart().