File indexing completed on 2025-04-19 09:10:14
0001 #ifndef SHERPA_Tools_Output_LHEF_H
0002 #define SHERPA_Tools_Output_LHEF_H
0003
0004 #include "ATOOLS/Org/CXXFLAGS_PACKAGES.H"
0005 #include "SHERPA/Tools/Output_Base.H"
0006 #include <fstream>
0007 #ifdef USING__GZIP
0008 #include "ATOOLS/Org/Gzip_Stream.H"
0009 #endif
0010
0011 namespace SHERPA {
0012
0013 class Output_LHEF : public Output_Base {
0014 double m_xs,m_xserr,m_max;
0015 std::string m_basename, m_ext;
0016 #ifdef USING__GZIP
0017 ATOOLS::ogzstream m_outstream;
0018 #else
0019 std::ofstream m_outstream;
0020 #endif
0021 int m_bntp;
0022 public:
0023 Output_LHEF(const Output_Arguments &args);
0024 ~Output_LHEF();
0025 void Header() override;
0026 void Footer() override;
0027 void ChangeFile() override;
0028 void SetXS(const ATOOLS::Weights_Map& xs,
0029 const ATOOLS::Weights_Map& err) override;
0030 void Output(ATOOLS::Blob_List* blobs) override;
0031 private:
0032 void RegisterDefaults() const;
0033 };
0034
0035 }
0036
0037 #endif