#include <WatcherStreamFileReader.h>
Public Member Functions | |
void | closeFile () |
const edm::streamer::InitMsgView * | getHeader () |
edm::streamer::StreamerInputFile * | getInputFile () |
const edm::streamer::EventMsgView * | getNextEvent () |
const bool | newHeader () |
WatcherStreamFileReader (edm::ParameterSet const &pset) | |
~WatcherStreamFileReader () | |
Private Member Functions | |
void | moveJustReadFile () |
Private Attributes | |
std::string | corruptedDir_ |
bool | end_ |
std::string | fileName_ |
std::vector< std::string > | filePatterns_ |
std::deque< std::string > | filesInQueue_ |
std::string | inprocessDir_ |
std::string | inputDir_ |
std::string | processedDir_ |
std::unique_ptr< edm::streamer::StreamerInputFile > | streamerInputFile_ |
int | timeOut_ |
std::string | tokenFile_ |
int | verbosity_ |
Definition at line 26 of file WatcherStreamFileReader.h.
WatcherStreamFileReader::WatcherStreamFileReader | ( | edm::ParameterSet const & | pset | ) |
Definition at line 115 of file WatcherStreamFileReader.cc.
References visDQMUpload::buf, corruptedDir_, DeadROC_duringRun::dir, heppy_check::dirs, Exception, f, mps_fire::i, inprocessDir_, eostools::mkdir(), processedDir_, edm_modernize_messagelogger::stat, and tokenFile_.
WatcherStreamFileReader::~WatcherStreamFileReader | ( | ) |
Definition at line 155 of file WatcherStreamFileReader.cc.
void WatcherStreamFileReader::closeFile | ( | ) |
Definition at line 392 of file WatcherStreamFileReader.cc.
const InitMsgView * WatcherStreamFileReader::getHeader | ( | ) |
Definition at line 159 of file WatcherStreamFileReader.cc.
References Exception, getInputFile(), RecoTauValidation_cfi::header, and makeListRunsInFiles::inputFile.
StreamerInputFile * WatcherStreamFileReader::getInputFile | ( | ) |
Definition at line 191 of file WatcherStreamFileReader.cc.
References visDQMUpload::buf, DummyCfis::c, mps_setup::cmd, filterCSVwithJSON::copy, corruptedDir_, gather_cfg::cout, mps_fire::dest, BTVHLTOfflineSource_cfi::dirname, dt, end_, Exception, f, ztee::fd, MillePedeFileConverter_cfg::fileName, fileName_, filePatterns_, filesInQueue_, free(), mps_fire::i, inprocessDir_, inputDir_, createfilelist::int, dqmiodumpmetadata::n, now(), alignCSCRings::s, findQualityFiles::size, edm_modernize_messagelogger::stat, streamerInputFile_, submitPVValidationJobs::t, hcalRecHitTable_cff::time, timeOut_, tokenFile_, and verbosity_.
Referenced by getHeader(), getNextEvent(), and newHeader().
const EventMsgView * WatcherStreamFileReader::getNextEvent | ( | ) |
Definition at line 176 of file WatcherStreamFileReader.cc.
References end_, getInputFile(), makeListRunsInFiles::inputFile, edm::shared_memory::channel_names::kStop, and moveJustReadFile().
|
private |
Definition at line 394 of file WatcherStreamFileReader.cc.
References visDQMUpload::buf, mps_setup::cmd, filterCSVwithJSON::copy, gather_cfg::cout, mps_fire::dest, end_, Exception, fileName_, mps_fire::i, now(), processedDir_, streamerInputFile_, and verbosity_.
Referenced by getNextEvent().
const bool WatcherStreamFileReader::newHeader | ( | ) |
Definition at line 157 of file WatcherStreamFileReader.cc.
References getInputFile().
|
private |
Directory where file must be moved if file is unreadble (e.g empty size)
Definition at line 59 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 73 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), getNextEvent(), and moveJustReadFile().
|
private |
Definition at line 65 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and moveJustReadFile().
|
private |
Streamer file name pattern list
Definition at line 47 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Definition at line 71 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Directory where file are moved during processing
Definition at line 51 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Directory to look for streamer files
Definition at line 43 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Directory where file must be moved once processed
Definition at line 55 of file WatcherStreamFileReader.h.
Referenced by moveJustReadFile(), and WatcherStreamFileReader().
|
private |
Cached input file stream
Definition at line 63 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and moveJustReadFile().
|
private |
Definition at line 69 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Definition at line 67 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 75 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and moveJustReadFile().