hej
is hosted by
Hepforge
,
IPPP Durham
HEJ 2
2.0
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
output_formats.hh
Go to the documentation of this file.
1
9
#pragma once
10
11
#include <stdexcept>
12
#include <string>
13
14
namespace
HEJ
{
15
17
enum
FileFormat
{
18
Les_Houches
,
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
;
35
FileFormat
format
;
36
};
37
38
}
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
HEJ::FileFormat
FileFormat
Supported event file formats.
Definition:
output_formats.hh:17
HEJ::Les_Houches
@ Les_Houches
Definition:
output_formats.hh:18
HEJ::HepMC
@ HepMC
Definition:
output_formats.hh:19
HEJ::to_string
std::string to_string(FileFormat f)
Convert a file format to a string.
Definition:
output_formats.hh:23
HepMC
Definition:
HepMCInterface.hh:14
HEJ::OutputFile
Output file specification.
Definition:
output_formats.hh:33
HEJ::OutputFile::name
std::string name
Definition:
output_formats.hh:34
HEJ::OutputFile::format
FileFormat format
Definition:
output_formats.hh:35
Generated by
1.9.5