#include <DAQSource.h>
Public Member Functions | |
bool | advance (unsigned char *&dataPosition, const size_t size) |
void | advance (const size_t size) |
RawInputFile (evf::EvFDaqDirector::FileStatus status, unsigned int lumi=0, std::string const &name=std::string(), bool deleteFile=true, int rawFd=-1, uint64_t fileSize=0, uint16_t rawHeaderSize=0, uint32_t nChunks=0, int nEvents=0, DAQSource *parent=nullptr) | |
Public Member Functions inherited from InputFile | |
bool | advance (unsigned char *&dataPosition, const size_t size) |
void | appendFile (std::string const &name, uint64_t size) |
uint64_t | currentChunkSize () const |
int64_t | fileSizeLeft () const |
InputFile (evf::EvFDaqDirector::FileStatus status, unsigned int lumi=0, std::string const &name=std::string(), bool deleteFile=true, int rawFd=-1, uint64_t fileSize=0, uint16_t rawHeaderSize=0, uint16_t nChunks=0, int nEvents=0, FedRawDataInputSource *parent=nullptr) | |
void | moveToPreviousChunk (const size_t size, const size_t offset) |
void | randomizeOrder (std::default_random_engine &rng) |
void | rewindChunk (const size_t size) |
void | setChunks (uint16_t nChunks) |
void | unsetDeleteFile () |
bool | waitForChunk (unsigned int chunkid) |
virtual | ~InputFile () |
Private Attributes | |
DAQSource * | sourceParent_ |
Additional Inherited Members | |
Public Attributes inherited from InputFile | |
std::vector< uint64_t > | bufferOffsets_ |
uint32_t | bufferPosition_ = 0 |
uint32_t | chunkPosition_ = 0 |
tbb::concurrent_vector< InputChunk * > | chunks_ |
unsigned int | currentChunk_ = 0 |
bool | deleteFile_ |
std::vector< uint64_t > | diskFileSizes_ |
std::string | fileName_ |
std::vector< std::string > | fileNames_ |
std::vector< unsigned int > | fileOrder_ |
uint64_t | fileSize_ |
std::vector< uint64_t > | fileSizes_ |
unsigned int | lumi_ |
uint16_t | nChunks_ |
int | nEvents_ |
unsigned int | nProcessed_ |
uint16_t | numFiles_ |
FedRawDataInputSource * | parent_ |
int | rawFd_ |
uint16_t | rawHeaderSize_ |
evf::EvFDaqDirector::FileStatus | status_ |
Definition at line 179 of file DAQSource.h.
|
inline |
Definition at line 181 of file DAQSource.h.
bool RawInputFile::advance | ( | unsigned char *& | dataPosition, |
const size_t | size | ||
) |
Definition at line 1340 of file DAQSource.cc.
References cms::cuda::assert(), InputFile::bufferPosition_, InputFile::chunkPosition_, InputFile::chunks_, InputFile::currentChunk_, DAQSource::exceptionState(), evf::FastMonState::inChunkReceived, evf::FastMonState::inWaitChunk, DAQSource::setMonState(), findQualityFiles::size, sourceParent_, DAQSource::threadError(), and InputFile::waitForChunk().
|
inline |
Definition at line 194 of file DAQSource.h.
References InputFile::bufferPosition_, InputFile::chunkPosition_, and findQualityFiles::size.
|
private |
Definition at line 200 of file DAQSource.h.
Referenced by advance().