#include <WatcherStreamFileReader.h>
Public Member Functions | |
void | closeFile () |
const InitMsgView * | getHeader () |
edm::StreamerInputFile * | getInputFile () |
const EventMsgView * | getNextEvent () |
const bool | newHeader () |
WatcherStreamFileReader (edm::ParameterSet const &pset) | |
~WatcherStreamFileReader () | |
Private Attributes | |
std::string | corruptedDir_ |
std::string | curDir_ |
bool | end_ |
std::string | fileListCmd_ |
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::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 114 of file WatcherStreamFileReader.cc.
References visDQMUpload::buf, corruptedDir_, gather_cfg::cout, curDir_, DeadROC_duringRun::dir, heppy_check::dirs, Exception, f, fileListCmd_, filePatterns_, mps_fire::i, inprocessDir_, inputDir_, eostools::mkdir(), now(), processedDir_, edm_modernize_messagelogger::stat, and tokenFile_.
WatcherStreamFileReader::~WatcherStreamFileReader | ( | ) |
Definition at line 186 of file WatcherStreamFileReader.cc.
void WatcherStreamFileReader::closeFile | ( | ) |
Definition at line 393 of file WatcherStreamFileReader.cc.
References mps_setup::cmd, gather_cfg::cout, end_, Exception, fileName_, mps_fire::i, now(), processedDir_, streamerInputFile_, and verbosity_.
Referenced by getNextEvent().
const InitMsgView * WatcherStreamFileReader::getHeader | ( | ) |
Definition at line 193 of file WatcherStreamFileReader.cc.
References Exception, getInputFile(), RecoTauValidation_cfi::header, Header::INIT, and dtResolutionTest_cfi::inputFile.
edm::StreamerInputFile * WatcherStreamFileReader::getInputFile | ( | ) |
Definition at line 226 of file WatcherStreamFileReader.cc.
References visDQMUpload::buf, c, filterCSVwithJSON::copy, corruptedDir_, gather_cfg::cout, curDir_, mps_fire::dest, BTVHLTOfflineSource_cfi::dirname, dt, end_, Exception, f, ztee::fd, fileListCmd_, MillePedeFileConverter_cfg::fileName, fileName_, filesInQueue_, mps_fire::i, inprocessDir_, inputDir_, createfilelist::int, dqmiodumpmetadata::n, now(), alignCSCRings::s, findQualityFiles::size, edm_modernize_messagelogger::stat, streamerInputFile_, submitPVValidationJobs::t, protons_cff::time, timeOut_, tokenFile_, and verbosity_.
Referenced by getHeader(), getNextEvent(), and newHeader().
const EventMsgView * WatcherStreamFileReader::getNextEvent | ( | ) |
Definition at line 210 of file WatcherStreamFileReader.cc.
References closeFile(), end_, getInputFile(), dtResolutionTest_cfi::inputFile, and edm::StreamerInputFile::kEvent.
const bool WatcherStreamFileReader::newHeader | ( | ) |
Definition at line 188 of file WatcherStreamFileReader.cc.
References getInputFile(), and dtResolutionTest_cfi::inputFile.
|
private |
Directory where file must be moved if file is unreadble (e.g empty size)
Definition at line 58 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 78 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 72 of file WatcherStreamFileReader.h.
Referenced by closeFile(), getInputFile(), and getNextEvent().
|
private |
Definition at line 76 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 64 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and getInputFile().
|
private |
Streamer file name pattern list
Definition at line 46 of file WatcherStreamFileReader.h.
Referenced by WatcherStreamFileReader().
|
private |
Definition at line 70 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Directory where file are moved during processing
Definition at line 50 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Directory to look for streamer files
Definition at line 42 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Directory where file must be moved once processed
Definition at line 54 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and WatcherStreamFileReader().
|
private |
Cached input file stream
Definition at line 62 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and getInputFile().
|
private |
Definition at line 68 of file WatcherStreamFileReader.h.
Referenced by getInputFile().
|
private |
Definition at line 66 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 74 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and getInputFile().