// -*- C++ -*- // -*- C++ -*- // // This file is part of HepMC // Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details) // #ifndef HEPMC3_READERLHEF_H #define HEPMC3_READERLHEF_H /** * @file ReaderLHEF.h * @brief Definition of \b class ReaderLHEF * * @class HepMC3::ReaderLHEF * @brief GenEvent I/O parsing and serialization for LHEF files * * * @ingroup IO * */ #include "HepMC3/Reader.h" #include "HepMC3/GenEvent.h" #include #include #include #include "HepMC3/LHEFAttributes.h" #include "HepMC3/GenEvent.h" #include "HepMC3/GenParticle.h" #include "HepMC3/GenVertex.h" #include namespace HepMC3 { class ReaderLHEF : public Reader { public: /// The ctor to read from stream ReaderLHEF(std::istream &); private: void init(); ///< Init helper public: /** @brief Constructor */ ReaderLHEF(const std::string& filename); /** @brief Reading event */ bool read_event(GenEvent& ev); /** @brief Close */ void close(); /** @brief State */ bool failed(); /** @brief Destructor */ ~ReaderLHEF() ; private: LHEF::Reader* m_reader; ///< The actual reader shared_ptr m_hepr; ///< Holder of attributes int m_neve; ///< Event counter bool m_failed; ///< State of reader }; } #endif