16 streamerNames_(pset.getUntrackedParameter<
std::vector<
std::
string> >(
"fileNames")),
19 initialNumberOfEventsToSkip_(pset.getUntrackedParameter<unsigned
int>(
"skipEvents")) {
35 <<
"No fileNames were specified\n";
54 if (eview ==
nullptr) {
62 for (
int i = 0;
i != toSkip; ++
i) {
64 if (evMsg ==
nullptr) {
86 <<
"received wrong message type: expected INIT, got " << header->
code() <<
"\n";
100 desc.
setComment(
"Reads events from streamer files.");
101 desc.
addUntracked<std::vector<std::string> >(
"fileNames")->setComment(
"Names of files to be processed.");
103 ->setComment(
"Skip the first 'skipEvents' events that otherwise would have been processed.");
106 desc.
addUntracked<
bool>(
"inputFileTransitionsEachEvent",
false);
109 descriptions.
add(
"source", desc);
T getUntrackedParameter(std::string const &, T const &) const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
def create(alignables, pedeDump, additionalData, outputFile, config)
void genuineCloseFile() override
bool checkNextEvent() override
StreamerFileReader(ParameterSet const &pset, InputSourceDescription const &desc)
int initialNumberOfEventsToSkip_
void setComment(std::string const &value)
std::shared_ptr< EventSkipperByID const > eventSkipperByID() const
edm::propagate_const< std::unique_ptr< StreamerInputFile > > streamReader_
InitMsgView const * getHeader()
void skip(int toSkip) override
std::vector< std::string > streamerNames_
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescription(ParameterSetDescription &desc)
~StreamerFileReader() override
static void fillDescriptions(ConfigurationDescriptions &descriptions)
EventMsgView const * getNextEvent()