#include <FRDFileHandler.h>
Public Member Functions | |
virtual void | closeFile (const FilesMonitorCollection::FileRecord::ClosingReason &) |
FRDFileHandler (FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, const uint64_t &maxFileSize) | |
Public Member Functions inherited from stor::FileHandler | |
uint32_t | events () const |
FileHandler (FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, 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 &) |
Private Attributes | |
boost::scoped_ptr < FRDEventFileWriter > | writer_ |
Additional Inherited Members | |
Protected Member Functions inherited from stor::FileHandler | |
void | insertFileInDatabase () const |
void | moveFileToClosed (const FilesMonitorCollection::FileRecord::ClosingReason &) |
void | updateDatabase () 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 HLT error events in the FED Raw Data (FRD) format.
Definition at line 28 of file FRDFileHandler.h.
stor::FRDFileHandler::FRDFileHandler | ( | FilesMonitorCollection::FileRecordPtr | fileRecord, |
const DbFileHandlerPtr | dbFileHandler, | ||
const uint64_t & | maxFileSize | ||
) |
Definition at line 15 of file FRDFileHandler.cc.
|
virtual |
Close the file
Implements stor::FileHandler.
Definition at line 37 of file FRDFileHandler.cc.
References stor::FileHandler::fileRecord_, stor::FileHandler::moveFileToClosed(), stor::FileHandler::updateDatabase(), and writer_.
Referenced by Vispa.Main.Application.Application::tabCloseRequest().
|
privatevirtual |
Write the I2OChain to the file
Implements stor::FileHandler.
Definition at line 25 of file FRDFileHandler.cc.
References stor::I2OChain::dataLocation(), stor::I2OChain::dataSize(), stor::I2OChain::fragmentCount(), customizeTrackingMonitorSeedNumber::idx, and writer_.
|
private |
Definition at line 51 of file FRDFileHandler.h.
Referenced by closeFile(), and do_writeEvent().