#ifndef SHERPA_Tools_Output_HepMC2_Genevent_H #define SHERPA_Tools_Output_HepMC2_Genevent_H #include "ATOOLS/Org/CXXFLAGS_PACKAGES.H" #include "SHERPA/Tools/Output_Base.H" #include "SHERPA/Tools/HepMC2_Interface.H" #include #ifdef USING__GZIP #include "ATOOLS/Org/Gzip_Stream.H" #endif namespace HepMC { class IO_GenEvent; class GenCrossSection; } namespace SHERPA { class Output_HepMC2_Genevent : public Output_Base { HepMC2_Interface m_hepmc2; HepMC::IO_GenEvent* p_iogenevent; HepMC::GenCrossSection* p_xs; std::string m_basename, m_ext; #ifdef USING__GZIP ATOOLS::ogzstream m_outstream; #else std::ofstream m_outstream; #endif public: Output_HepMC2_Genevent(const Output_Arguments &args); ~Output_HepMC2_Genevent(); void SetXS(const double& xs, const double& xserr); void Output(ATOOLS::Blob_List* blobs); void ChangeFile(); }; } #endif