#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::auto_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 124 of file WatcherStreamFileReader.cc.
References corruptedDir_, gather_cfg::cout, curDir_, dir, heppy_check::dirs, edm::hlt::Exception, f, fileListCmd_, filePatterns_, i, inprocessDir_, inputDir_, now(), processedDir_, and tokenFile_.
WatcherStreamFileReader::~WatcherStreamFileReader | ( | ) |
Definition at line 202 of file WatcherStreamFileReader.cc.
void WatcherStreamFileReader::closeFile | ( | ) |
Definition at line 410 of file WatcherStreamFileReader.cc.
References asciidump::cmd, gather_cfg::cout, end_, edm::hlt::Exception, fileName_, i, now(), processedDir_, streamerInputFile_, and verbosity_.
Referenced by getNextEvent(), and Vispa.Main.Application.Application::tabCloseRequest().
const InitMsgView * WatcherStreamFileReader::getHeader | ( | ) |
Definition at line 210 of file WatcherStreamFileReader.cc.
References InitMsgView::code(), edm::hlt::Exception, getInputFile(), Header::INIT, analyzePatCleaning_cfg::inputFile, and edm::StreamerInputFile::startMessage().
edm::StreamerInputFile * WatcherStreamFileReader::getInputFile | ( | ) |
Definition at line 243 of file WatcherStreamFileReader.cc.
References EnergyCorrector::c, filterCSVwithJSON::copy, corruptedDir_, gather_cfg::cout, curDir_, alignCSCRings::dest, HILowLumiHLTOfflineSource_cfi::dirname, dt, end_, edm::hlt::Exception, f, fileListCmd_, convertXMLtoSQLite_cfg::fileName, fileName_, filesInQueue_, i, inprocessDir_, inputDir_, gen::n, now(), alignCSCRings::s, findQualityFiles::size, streamerInputFile_, tree::t, cond::rpcobgas::time, timeOut_, tokenFile_, and verbosity_.
Referenced by getHeader(), getNextEvent(), and newHeader().
const EventMsgView * WatcherStreamFileReader::getNextEvent | ( | ) |
Definition at line 229 of file WatcherStreamFileReader.cc.
References closeFile(), edm::StreamerInputFile::currentRecord(), end_, getInputFile(), analyzePatCleaning_cfg::inputFile, and edm::StreamerInputFile::next().
const bool WatcherStreamFileReader::newHeader | ( | ) |
Definition at line 205 of file WatcherStreamFileReader.cc.
References getInputFile(), analyzePatCleaning_cfg::inputFile, and edm::StreamerInputFile::newHeader().
|
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 79 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 73 of file WatcherStreamFileReader.h.
Referenced by closeFile(), getInputFile(), and getNextEvent().
|
private |
Definition at line 77 of file WatcherStreamFileReader.h.
Referenced by getInputFile(), and WatcherStreamFileReader().
|
private |
Definition at line 65 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 71 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 55 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and WatcherStreamFileReader().
|
private |
Cached input file stream
Definition at line 63 of file WatcherStreamFileReader.h.
Referenced by closeFile(), and getInputFile().
|
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 closeFile(), and getInputFile().