#include <FedRawDataInputSource.h>
Public Member Functions | |
bool | advance (unsigned char *&dataPosition, const size_t size) |
void | appendFile (std::string const &name, uint64_t size) |
uint64_t | currentChunkSize () 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 () |
Public Attributes | |
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 224 of file FedRawDataInputSource.h.
|
inline |
Definition at line 251 of file FedRawDataInputSource.h.
References bufferOffsets_, chunks_, diskFileSizes_, fileNames_, fileOrder_, fileSizes_, mps_fire::i, Skims_PA_cff::name, and nChunks_.
|
virtual |
Definition at line 1481 of file FedRawDataInputSource.cc.
References deleteFile_, cppFunctionSkipper::exception, MillePedeFileConverter_cfg::fileName, fileNames_, dt4ml_dqm_sourceclient-live_cfg::filePath, LogDebug, castor_dqm_sourceclient_file_cfg::path, rawFd_, and MatrixUtil::remove().
|
inline |
Definition at line 1427 of file FedRawDataInputSource.cc.
References cms::cuda::assert(), bufferPosition_, chunkPosition_, chunks_, currentChunk_, FedRawDataInputSource::exceptionState(), evf::FastMonState::inChunkReceived, evf::FastMonState::inWaitChunk, parent_, FedRawDataInputSource::setMonState(), findQualityFiles::size, FedRawDataInputSource::threadError(), and waitForChunk().
|
inline |
Definition at line 292 of file FedRawDataInputSource.h.
References bufferOffsets_, diskFileSizes_, fileNames_, fileOrder_, fileSizes_, Skims_PA_cff::name, numFiles_, and findQualityFiles::size.
|
inline |
Definition at line 314 of file FedRawDataInputSource.h.
References chunks_, and currentChunk_.
void InputFile::moveToPreviousChunk | ( | const size_t | size, |
const size_t | offset | ||
) |
Definition at line 1467 of file FedRawDataInputSource.cc.
References cms::cuda::assert(), bufferPosition_, chunkPosition_, chunks_, currentChunk_, hltrates_dqm_sourceclient-live_cfg::offset, and findQualityFiles::size.
|
inline |
Definition at line 311 of file FedRawDataInputSource.h.
References fileOrder_, and emtf::shuffle().
void InputFile::rewindChunk | ( | const size_t | size | ) |
Definition at line 1476 of file FedRawDataInputSource.cc.
References bufferPosition_, chunkPosition_, and findQualityFiles::size.
|
inline |
Definition at line 284 of file FedRawDataInputSource.h.
References chunks_, mps_fire::i, and nChunks_.
|
inline |
|
inline |
Definition at line 303 of file FedRawDataInputSource.h.
References chunks_.
Referenced by RawInputFile::advance(), and advance().
std::vector<uint64_t> InputFile::bufferOffsets_ |
Definition at line 233 of file FedRawDataInputSource.h.
Referenced by appendFile(), and InputFile().
uint32_t InputFile::bufferPosition_ = 0 |
Definition at line 247 of file FedRawDataInputSource.h.
Referenced by RawInputFile::advance(), advance(), moveToPreviousChunk(), and rewindChunk().
uint32_t InputFile::chunkPosition_ = 0 |
Definition at line 248 of file FedRawDataInputSource.h.
Referenced by RawInputFile::advance(), advance(), moveToPreviousChunk(), and rewindChunk().
tbb::concurrent_vector<InputChunk*> InputFile::chunks_ |
Definition at line 245 of file FedRawDataInputSource.h.
Referenced by RawInputFile::advance(), advance(), currentChunkSize(), InputFile(), moveToPreviousChunk(), setChunks(), and waitForChunk().
unsigned int InputFile::currentChunk_ = 0 |
Definition at line 249 of file FedRawDataInputSource.h.
Referenced by RawInputFile::advance(), advance(), currentChunkSize(), and moveToPreviousChunk().
bool InputFile::deleteFile_ |
Definition at line 236 of file FedRawDataInputSource.h.
Referenced by unsetDeleteFile(), and ~InputFile().
std::vector<uint64_t> InputFile::diskFileSizes_ |
Definition at line 232 of file FedRawDataInputSource.h.
Referenced by appendFile(), and InputFile().
std::string InputFile::fileName_ |
Definition at line 229 of file FedRawDataInputSource.h.
std::vector<std::string> InputFile::fileNames_ |
Definition at line 231 of file FedRawDataInputSource.h.
Referenced by appendFile(), InputFile(), and ~InputFile().
std::vector<unsigned int> InputFile::fileOrder_ |
Definition at line 235 of file FedRawDataInputSource.h.
Referenced by appendFile(), InputFile(), and randomizeOrder().
uint64_t InputFile::fileSize_ |
Definition at line 238 of file FedRawDataInputSource.h.
std::vector<uint64_t> InputFile::fileSizes_ |
Definition at line 234 of file FedRawDataInputSource.h.
Referenced by appendFile(), and InputFile().
unsigned int InputFile::lumi_ |
Definition at line 228 of file FedRawDataInputSource.h.
uint16_t InputFile::nChunks_ |
Definition at line 240 of file FedRawDataInputSource.h.
Referenced by InputFile(), and setChunks().
int InputFile::nEvents_ |
Definition at line 242 of file FedRawDataInputSource.h.
unsigned int InputFile::nProcessed_ |
Definition at line 243 of file FedRawDataInputSource.h.
uint16_t InputFile::numFiles_ |
Definition at line 241 of file FedRawDataInputSource.h.
Referenced by appendFile().
FedRawDataInputSource* InputFile::parent_ |
Definition at line 226 of file FedRawDataInputSource.h.
Referenced by advance().
int InputFile::rawFd_ |
Definition at line 237 of file FedRawDataInputSource.h.
Referenced by ~InputFile().
uint16_t InputFile::rawHeaderSize_ |
Definition at line 239 of file FedRawDataInputSource.h.
evf::EvFDaqDirector::FileStatus InputFile::status_ |
Definition at line 227 of file FedRawDataInputSource.h.