|
|
Go to the documentation of this file.
23 std::shared_ptr<EventSkipperByID> eventSkipperByID)
26 headerBuf_(1000 * 1000),
27 eventBuf_(1000 * 1000 * 7),
32 currentFileOpen_(
false),
33 eventSkipperByID_(eventSkipperByID),
47 std::shared_ptr<EventSkipperByID> eventSkipperByID)
50 headerBuf_(1000 * 1000),
51 eventBuf_(1000 * 1000 * 7),
53 streamerNames_(
names),
56 currentFileOpen_(
false),
57 eventSkipperByID_(eventSkipperByID),
77 throw cms::Exception(
"LogicalFileNameNotFound",
"StreamerInputFile::openStreamerFile()\n")
78 <<
"Logical file name '" << LFN <<
"' was not found in the file catalog.\n"
79 <<
"If you wanted a local file, you forgot the 'file:' prefix\n"
80 <<
"before the file name in your configuration file.\n";
92 ex.
addContext(
"Calling StreamerInputFile::openStreamerFile()");
94 ex <<
"Error Opening Streamer Input File: " <<
name <<
"\n";
99 <<
"Error Opening Streamer Input File, file does not exist: " <<
name <<
"\n";
119 ex.
addContext(
"Calling StreamerInputFile::readBytes()");
133 ex.
addContext(
"Calling StreamerInputFile::skipBytes()");
144 <<
"Failed reading streamer file, first read in readStartMessage\n";
152 <<
"Expecting an init Message at start of file\n";
165 <<
"Failed reading streamer file, second read in readStartMessage\n";
169 <<
"Failed reading streamer file, init header size from data too small\n";
199 FDEBUG(10) <<
"Comparing Header" << std::endl;
217 <<
"\nhas different run number or protocol version than previous\n";
227 bool eventRead =
false;
238 <<
"Failed reading streamer file, first read in readEventMessage\n"
239 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
247 <<
"Failed reading streamer file, unknown code in event header\n"
248 <<
"code = " << code <<
"\n";
253 <<
"Failed reading streamer file, event header size from data too small\n";
269 <<
"Failed reading streamer file, second read in readEventMessage\n"
270 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
276 <<
"Failed reading streamer file, skip event in readEventMessage\n"
277 <<
"Requested " << nWant <<
" bytes skipped, seek function returned " << nGot <<
" bytes\n";
void addContext(std::string const &context)
std::unique_ptr< Storage > open(const std::string &url, int mode=IOFlags::OpenRead) const
const std::string names[nVars_]
static const StorageFactory * get(void)
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts)