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";
93 ex.
addContext(
"Calling StreamerInputFile::openStreamerFile()");
95 ex <<
"Error Opening Streamer Input File: " <<
name <<
"\n";
100 <<
"Error Opening Streamer Input File, file does not exist: " <<
name <<
"\n";
120 ex.
addContext(
"Calling StreamerInputFile::readBytes()");
134 ex.
addContext(
"Calling StreamerInputFile::skipBytes()");
146 <<
"Failed reading streamer file, first read in readStartMessage\n";
154 <<
"Expecting an init Message at start of file\n";
167 <<
"Failed reading streamer file, second read in readStartMessage\n";
171 <<
"Failed reading streamer file, init header size from data too small\n";
201 FDEBUG(10) <<
"Comparing Header" << std::endl;
219 <<
"\nhas different run number or protocol version than previous\n";
230 bool eventRead =
false;
241 <<
"Failed reading streamer file, first read in readEventMessage\n" 242 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
250 <<
"Failed reading streamer file, unknown code in event header\n" 251 <<
"code = " << code <<
"\n";
256 <<
"Failed reading streamer file, event header size from data too small\n";
272 <<
"Failed reading streamer file, second read in readEventMessage\n" 273 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
279 <<
"Failed reading streamer file, skip event in readEventMessage\n" 280 <<
"Requested " << nWant <<
" bytes skipped, seek function returned " << nGot <<
" bytes\n";
const std::string names[nVars_]
void addContext(std::string const &context)
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts, bool iVerbose)
Log< level::System, true > LogAbsolute