CMS 3D CMS Logo

StreamerFileReader.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerFileReader_h
2 #define IOPool_Streamer_StreamerFileReader_h
3 
6 
7 #include <memory>
8 #include <string>
9 #include <vector>
10 
11 class EventMsgView;
12 class InitMsgView;
13 
14 namespace edm {
16  class EventPrincipal;
17  class EventSkipperByID;
18  class FileCatalogItem;
19  struct InputSourceDescription;
20  class ParameterSet;
21  class StreamerInputFile;
23  public:
25  ~StreamerFileReader() override;
26 
27  InitMsgView const* getHeader();
28  EventMsgView const* getNextEvent();
29  bool newHeader();
30  static void fillDescriptions(ConfigurationDescriptions& descriptions);
31 
32  private:
33  bool checkNextEvent() override;
34  void skip(int toSkip) override;
35  void genuineCloseFile() override;
36  void reset_() override;
37 
38  std::shared_ptr<EventSkipperByID const> eventSkipperByID() const { return get_underlying_safe(eventSkipperByID_); }
39  std::shared_ptr<EventSkipperByID>& eventSkipperByID() { return get_underlying_safe(eventSkipperByID_); }
40 
41  std::vector<FileCatalogItem> streamerNames_; // names of Streamer files
45  };
46 } // namespace edm
47 
48 #endif
std::shared_ptr< EventSkipperByID > & eventSkipperByID()
void genuineCloseFile() override
bool checkNextEvent() override
StreamerFileReader(ParameterSet const &pset, InputSourceDescription const &desc)
std::shared_ptr< EventSkipperByID const > eventSkipperByID() const
std::vector< FileCatalogItem > streamerNames_
edm::propagate_const< std::unique_ptr< StreamerInputFile > > streamReader_
InitMsgView const * getHeader()
void skip(int toSkip) override
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< EventSkipperByID > > eventSkipperByID_
HLT enums.
static void fillDescriptions(ConfigurationDescriptions &descriptions)
EventMsgView const * getNextEvent()