15 streamerNames_(pset.getUntrackedParameter<std::vector<std::string> >(
"fileNames")),
18 numberOfEventsToSkip_(pset.getUntrackedParameter<unsigned int>(
"skipEvents")) {
28 <<
"No fileNames were specified\n";
67 <<
"received wrong message type: expected INIT, got "
68 << header->
code() <<
"\n";
84 desc.
setComment(
"Reads events from streamer files.");
85 desc.
addUntracked<std::vector<std::string> >(
"fileNames")
86 ->setComment(
"Names of files to be processed.");
88 ->setComment(
"Skip the first 'skipEvents' events that otherwise would have been processed.");
89 desc.
addUntracked<std::string>(
"overrideCatalog", std::string());
91 desc.
addUntracked<
bool>(
"inputFileTransitionsEachEvent",
false);
94 descriptions.
add(
"source", desc);
T getUntrackedParameter(std::string const &, T const &) const
int numberOfEventsToSkip_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
StreamerFileReader(ParameterSet const &pset, InputSourceDescription const &desc)
void setComment(std::string const &value)
InitMsgView const * getHeader()
boost::shared_ptr< EventSkipperByID > eventSkipperByID_
std::vector< std::string > streamerNames_
virtual EventPrincipal * read()
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescription(ParameterSetDescription &desc)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
std::auto_ptr< StreamerInputFile > streamReader_
EventMsgView const * getNextEvent()
virtual ~StreamerFileReader()