20 initialNumberOfEventsToSkip_(
pset.getUntrackedParameter<unsigned
int>(
"skipEvents")),
21 prefetchMBytes_(
pset.getUntrackedParameter<unsigned
int>(
"prefetchMBytes")) {
40 <<
"No fileNames were specified\n";
59 assert(eview->isEventMetaData());
67 if (eview ==
nullptr) {
82 if (eview ==
nullptr) {
95 for (
int i = 0;
i != toSkip; ++
i) {
97 if (evMsg ==
nullptr) {
141 <<
"received wrong message type: expected INIT, got " <<
header->code() <<
"\n";
155 desc.setComment(
"Reads events from streamer files.");
156 desc.addUntracked<std::vector<std::string> >(
"fileNames")->setComment(
"Names of files to be processed.");
157 desc.addUntracked<
unsigned int>(
"skipEvents", 0
U)
158 ->setComment(
"Skip the first 'skipEvents' events that otherwise would have been processed.");
161 desc.addUntracked<
bool>(
"inputFileTransitionsEachEvent",
false);
162 desc.addUntracked<
unsigned int>(
"prefetchMBytes", 0);
165 descriptions.
add(
"source",
desc);
def create(alignables, pedeDump, additionalData, outputFile, config)
Next checkNext() override
edm::propagate_const< std::unique_ptr< StreamerInputFile > > streamReader_
bool isEventMetaData() const
~StreamerFileReader() override
int initialNumberOfEventsToSkip_
InitMsgView const * getHeader()
void skip(int toSkip) override
void updateMetaData(bool subsequent)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescription(ParameterSetDescription &desc)
StreamerFileReader(ParameterSet const &pset, InputSourceDescription const &desc)
std::shared_ptr< EventSkipperByID const > eventSkipperByID() const
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
EventMsgView const * getNextEvent()
std::vector< FileCatalogItem > streamerNames_
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void genuineReadFile() override
void genuineCloseFile() override