hej is hosted by Hepforge, IPPP Durham
HEJ 2.2.2
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
output_formats.hh
Go to the documentation of this file.
1
8#pragma once
9
10#include <stdexcept>
11#include <string>
12
13namespace HEJ {
14
16 enum class FileFormat{
18 HepMC3,
19 HepMC2,
20 HDF5,
22 };
23
25 inline std::string to_string(FileFormat f){
26 switch(f){
27 case FileFormat::Les_Houches: return "Les Houches";
28 case FileFormat::HepMC2: return "HepMC2";
29 case FileFormat::HepMC3: return "HepMC3";
30 case FileFormat::HDF5: return "HDF5";
31 default:
32 throw std::logic_error("unhandled file format");
33 }
34 }
35
37 struct OutputFile{
38 std::string name;
40 };
41
42} // namespace HEJ
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
FileFormat
Supported event file formats.
Definition: output_formats.hh:16
std::string to_string(Event const &ev)
Definition: HepMC3Interface.hh:16
Definition: HepMC2Interface.hh:15
Output file specification.
Definition: output_formats.hh:37
std::string name
Definition: output_formats.hh:38
FileFormat format
Definition: output_formats.hh:39