#include <EventFileHandler.h>
Public Member Functions | |
virtual void | closeFile (const FilesMonitorCollection::FileRecord::ClosingReason &) |
EventFileHandler (InitMsgSharedPtr, FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, const DiskWritingParams &, const uint64_t &maxFileSize) | |
Public Member Functions inherited from stor::FileHandler | |
uint32_t | events () const |
FileHandler (FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, const DiskWritingParams &, const uint64_t &maxFileSize) | |
uint64_t | fileSize () const |
bool | isFromLumiSection (const uint32_t lumiSection) |
uint32_t | lumiSection () const |
bool | tooLarge (const uint64_t &dataSize) |
bool | tooOld (const utils::TimePoint_t currentTime=utils::getCurrentTime()) |
void | writeEvent (const I2OChain &) |
virtual | ~FileHandler () |
Private Member Functions | |
virtual void | do_writeEvent (const I2OChain &) |
void | writeHeader (InitMsgSharedPtr) |
Private Attributes | |
boost::scoped_ptr < edm::StreamerFileWriter > | writer_ |
Additional Inherited Members | |
Protected Member Functions inherited from stor::FileHandler | |
void | insertFileInDatabase () const |
void | moveFileToClosed (const FilesMonitorCollection::FileRecord::ClosingReason &) |
void | setAdler (uint32_t s) |
void | updateDatabase () const |
void | writeToSummaryCatalog () const |
Protected Attributes inherited from stor::FileHandler | |
const DbFileHandlerPtr | dbFileHandler_ |
const DiskWritingParams & | diskWritingParams_ |
FilesMonitorCollection::FileRecordPtr | fileRecord_ |
utils::TimePoint_t | firstEntry_ |
utils::TimePoint_t | lastEntry_ |
Represents a file holding event data
Definition at line 29 of file EventFileHandler.h.
stor::EventFileHandler::EventFileHandler | ( | InitMsgSharedPtr | view, |
FilesMonitorCollection::FileRecordPtr | fileRecord, | ||
const DbFileHandlerPtr | dbFileHandler, | ||
const DiskWritingParams & | dwParams, | ||
const uint64_t & | maxFileSize | ||
) |
Definition at line 15 of file EventFileHandler.cc.
References xuti::writeHeader().
|
virtual |
Close the file
Implements stor::FileHandler.
Definition at line 60 of file EventFileHandler.cc.
References stor::FileHandler::fileRecord_, stor::FileHandler::moveFileToClosed(), stor::FileHandler::setAdler(), stor::FileHandler::updateDatabase(), writer_, and stor::FileHandler::writeToSummaryCatalog().
Referenced by python.Vispa.Main.Application.Application::tabCloseRequest().
|
privatevirtual |
Write the I2OChain to the file
Implements stor::FileHandler.
Definition at line 38 of file EventFileHandler.cc.
References stor::I2OChain::dataLocation(), edm::StreamerFileWriterEventParams::dataPtr, edm::StreamerFileWriterEventParams::dataSize, edm::StreamerFileWriterEventParams::fragmentCount, edm::StreamerFileWriterEventParams::fragmentIndex, stor::I2OChain::headerLocation(), edm::StreamerFileWriterEventParams::headerPtr, edm::StreamerFileWriterEventParams::headerSize, edm::StreamerFileWriterEventParams::hltBits, and writer_.
|
private |
Write the init message to the head of the file
Definition at line 29 of file EventFileHandler.cc.
References stor::FileHandler::fileRecord_, stor::utils::getCurrentTime(), stor::FileHandler::lastEntry_, and writer_.
|
private |
Definition at line 59 of file EventFileHandler.h.
Referenced by closeFile(), do_writeEvent(), and writeHeader().