hej is hosted by Hepforge, IPPP Durham
HEJ 2 2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
output_formats.hh
Go to the documentation of this file.
1
9#pragma once
10
11#include <stdexcept>
12#include <string>
13
14namespace HEJ{
15
19 HepMC
20 };
21
23 inline std::string to_string(FileFormat f){
24 switch(f){
25 case Les_Houches: return "Les Houches";
26 case HepMC: return "HepMC";
27 default:
28 throw std::logic_error("unhandled file format");
29 }
30 }
31
33 struct OutputFile{
34 std::string name;
36 };
37
38}
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
FileFormat
Supported event file formats.
Definition: output_formats.hh:17
@ Les_Houches
Definition: output_formats.hh:18
@ HepMC
Definition: output_formats.hh:19
std::string to_string(FileFormat f)
Convert a file format to a string.
Definition: output_formats.hh:23
Definition: HepMCInterface.hh:14
Output file specification.
Definition: output_formats.hh:33
std::string name
Definition: output_formats.hh:34
FileFormat format
Definition: output_formats.hh:35