/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Sources/interface/RawInputSource.h
48 строк
2 KB
W. David Dagenhart
Allow an InputSource to declare a run/lumi entry is the last to be merged
12 дек 2023, 01:10
12 дек 2023, 01:10
1b3d395
Код
Авторство
О чём код?
#ifndef FWCore_Sources_RawInputSource_h #define FWCore_Sources_RawInputSource_h /*---------------------------------------------------------------------- ----------------------------------------------------------------------*/ #include <memory> #include <utility> #include "DataFormats/Provenance/interface/EventID.h" #include "FWCore/Framework/interface/InputSource.h" #include "FWCore/Framework/interface/Frameworkfwd.h" namespace edm { class ParameterSet; class Timestamp; class RawInputSource : public InputSource { public: explicit RawInputSource(ParameterSet const& pset, InputSourceDescription const& desc); ~RawInputSource() override; static void fillDescription(ParameterSetDescription& description); //Next::kFile is only needed if the ProductRegistry must be updated enum class Next { kEvent, kFile, kStop }; protected: void makeEvent(EventPrincipal& eventPrincipal, EventAuxiliary const& eventAuxiliary); virtual Next checkNext() = 0; virtual void read(EventPrincipal& eventPrincipal) = 0; void setInputFileTransitionsEachEvent() { inputFileTransitionsEachEvent_ = true; } private: void readEvent_(EventPrincipal& eventPrincipal) override; std::shared_ptr<LuminosityBlockAuxiliary> readLuminosityBlockAuxiliary_() override; std::shared_ptr<RunAuxiliary> readRunAuxiliary_() override; virtual void reset_(); void rewind_() override; ItemTypeInfo getNextItemType() override; void closeFile_() final; std::shared_ptr<FileBlock> readFile_() final; virtual void genuineCloseFile() {} virtual void genuineReadFile() {} bool inputFileTransitionsEachEvent_; bool fakeInputFileTransition_; }; } // namespace edm #endif