Back to home page

EIC code displayed by LXR

 
 

    


Warning, /eic-spack/packages/hepmc3/ReaderPlugin.patch is written in an unsupported language. File is not indexed.

0001 diff --git a/include/HepMC3/ReaderPlugin.h b/include/HepMC3/ReaderPlugin.h
0002 index 2267db8..7f7c84a 100644
0003 --- a/include/HepMC3/ReaderPlugin.h
0004 +++ b/include/HepMC3/ReaderPlugin.h
0005 @@ -27,6 +27,8 @@ public:
0006      ReaderPlugin(std::istream & stream,const std::string &libname, const std::string &newreader);
0007      /** @brief Constructor to read from file*/
0008      ReaderPlugin(const std::string& filename,const std::string &libname, const std::string &newreader);
0009 +    /** @brief Skip or fast forward reading of some events*/
0010 +    bool skip(const int n) override { if (!m_reader) return false; return m_reader->skip(n); }
0011      /** @brief Reading event */
0012      bool read_event(GenEvent& ev)  override {if (!m_reader) return false; return m_reader->read_event(ev);};
0013      /** @brief Close */