#include <TRawEventSource.h>
Constructor & Destructor Documentation
TRawEventSource::TRawEventSource |
( |
| ) |
|
|
inline |
virtual TRawEventSource::~TRawEventSource |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
kFileType TRawEventSource::DefaultFileType |
( |
| ) |
|
|
staticprivate |
double TRawEventSource::GetAverageRate |
( |
| ) |
const |
size_t TRawEventSource::GetBytesGiven |
( |
| ) |
const |
|
inline |
virtual int TRawEventSource::GetEvent |
( |
TRawEvent & |
event | ) |
|
|
privatepure virtual |
Given a pointer to a TRawEvent, read the next event.
- Parameters
-
event | The event to be filled. |
- Returns
- The number of bytes that are read. Should return negative if there are no more events to be read.
virtual int TRawEventSource::GetLastErrno |
( |
| ) |
const |
|
inlinevirtual |
virtual std::string TRawEventSource::GetLastError |
( |
| ) |
const |
|
inlinevirtual |
bool TRawEventSource::IsFinished |
( |
| ) |
const |
|
inline |
int TRawEventSource::Read |
( |
TRawEvent & |
event | ) |
|
Reads the next event.
- Parameters
-
event | The location of the event to be written. |
- Returns
- The number of bytes read. If 0 is returned, no event has been read, but the source may provide an event later. This is useful for online data analysis. If a negative number is returned, there was an error while reading, possibly the end of file.
int TRawEventSource::Read |
( |
TRawEvent * |
event | ) |
|
void TRawEventSource::SetLastErrno |
( |
int |
error | ) |
|
|
inlineprotected |
void TRawEventSource::SetLastError |
( |
std::string |
error | ) |
|
|
inlineprotected |
virtual std::string TRawEventSource::SourceDescription |
( |
| ) |
const |
|
pure virtual |
virtual std::string TRawEventSource::Status |
( |
| ) |
const |
|
pure virtual |
void TRawEventSource::UpdateByteThroughput |
( |
int |
bytes | ) |
|
|
private |
Member Data Documentation
time_t TRawEventSource::current_time |
|
private |
size_t TRawEventSource::fBytesGiven |
|
private |
std::deque<size_t> TRawEventSource::fBytesPerSecond |
|
private |
bool TRawEventSource::fIsFinished |
|
private |
int TRawEventSource::fLastErrno |
|
private |
std::string TRawEventSource::fLastError |
|
private |
int TRawEventSource::seconds_to_average |
|
private |
The documentation for this class was generated from the following files: