26 int* numberOfEventsToSkip,
27 boost::shared_ptr<EventSkipperByID> eventSkipperByID) :
30 headerBuf_(1000*1000),
31 eventBuf_(1000*1000*7),
36 currentFileOpen_(
false),
37 eventSkipperByID_(eventSkipperByID),
38 numberOfEventsToSkip_(numberOfEventsToSkip),
49 int* numberOfEventsToSkip,
50 boost::shared_ptr<EventSkipperByID> eventSkipperByID) :
53 headerBuf_(1000*1000),
54 eventBuf_(1000*1000*7),
56 streamerNames_(names),
59 currentFileOpen_(
false),
60 eventSkipperByID_(eventSkipperByID),
61 numberOfEventsToSkip_(numberOfEventsToSkip),
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: "
114 ex.
addContext(
"Calling StreamerInputFile::readBytes()");
129 ex.
addContext(
"Calling StreamerInputFile::skipBytes()");
140 <<
"Failed reading streamer file, first read in readStartMessage\n";
148 <<
"Expecting an init Message at start of file\n";
160 <<
"Failed reading streamer file, second read in readStartMessage\n";
164 <<
"Failed reading streamer file, init header size from data too small\n";
189 FDEBUG(10) <<
"Opening file "
197 FDEBUG(10) <<
"Comparing Header" << std::endl;
218 <<
"\nhas different run number or protocol version than previous\n";
229 bool eventRead =
false;
236 <<
"Failed reading streamer file, first read in readEventMessage\n"
237 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
251 <<
"Failed reading streamer file, unknown code in event header\n"
252 <<
"code = " << code <<
"\n";
257 <<
"Failed reading streamer file, event header size from data too small\n";
268 --(*numberOfEventsToSkip_);
276 <<
"Failed reading streamer file, second read in readEventMessage\n"
277 <<
"Requested " << nWant <<
" bytes, read function returned " << nGot <<
" bytes\n";
283 <<
"Failed reading streamer file, skip event in readEventMessage\n"
284 <<
"Requested " << nWant <<
" bytes skipped, seek function returned " << nGot <<
" bytes\n";
static const HistoName names[]
static StorageFactory * get(void)
static void check(Principal const &p, std::string const &id)
void addContext(std::string const &context)
tuple size
Write out results.