hej
is hosted by
Hepforge
,
IPPP Durham
HEJ
2.2.2
High energy resummation for hadron colliders
Loading...
Searching...
No Matches
include
HEJ
output_formats.hh
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <stdexcept>
11
#include <string>
12
13
namespace
HEJ
{
14
16
enum class
FileFormat
{
17
Les_Houches
,
18
HepMC3
,
19
HepMC2
,
20
HDF5
,
21
HepMC
=
HepMC3
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
;
39
FileFormat
format
;
40
};
41
42
}
// namespace HEJ
HEJ
Main HEJ 2 Namespace.
Definition:
mainpage.dox:1
HEJ::FileFormat
FileFormat
Supported event file formats.
Definition:
output_formats.hh:16
HEJ::FileFormat::HDF5
@ HDF5
HEJ::FileFormat::Les_Houches
@ Les_Houches
HEJ::FileFormat::HepMC2
@ HepMC2
HEJ::FileFormat::HepMC3
@ HepMC3
HEJ::to_string
std::string to_string(Event const &ev)
HepMC3
Definition:
HepMC3Interface.hh:16
HepMC
Definition:
HepMC2Interface.hh:15
HEJ::OutputFile
Output file specification.
Definition:
output_formats.hh:37
HEJ::OutputFile::name
std::string name
Definition:
output_formats.hh:38
HEJ::OutputFile::format
FileFormat format
Definition:
output_formats.hh:39
Generated by
1.9.5