16 streamerNames_(pset.getUntrackedParameter<std::vector<std::
string> >(
"fileNames")),
19 initialNumberOfEventsToSkip_(pset.getUntrackedParameter<unsigned int>(
"skipEvents")) {
37 <<
"No fileNames were specified\n";
57 if (eview ==
nullptr) {
66 for(
int i = 0;
i != toSkip; ++
i) {
68 if(evMsg ==
nullptr) {
95 <<
"received wrong message type: expected INIT, got "
96 << header->
code() <<
"\n";
112 desc.
setComment(
"Reads events from streamer files.");
113 desc.
addUntracked<std::vector<std::string> >(
"fileNames")
114 ->setComment(
"Names of files to be processed.");
116 ->setComment(
"Skip the first 'skipEvents' events that otherwise would have been processed.");
119 desc.
addUntracked<
bool>(
"inputFileTransitionsEachEvent",
false);
122 descriptions.
add(
"source", desc);
T getUntrackedParameter(std::string const &, T const &) const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual void genuineCloseFile() override
StreamerFileReader(ParameterSet const &pset, InputSourceDescription const &desc)
int initialNumberOfEventsToSkip_
void setComment(std::string const &value)
InitMsgView const * getHeader()
virtual void skip(int toSkip)
std::vector< std::string > streamerNames_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::shared_ptr< EventSkipperByID > eventSkipperByID_
static void fillDescription(ParameterSetDescription &desc)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
std::unique_ptr< StreamerInputFile > streamReader_
EventMsgView const * getNextEvent()
virtual ~StreamerFileReader()
virtual bool checkNextEvent()