Loading [MathJax]/extensions/tex2jax.js
hej is hosted by Hepforge, IPPP Durham
HEJ  2.3.0
High energy resummation for hadron colliders
StatusCode.hh
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <string>
11 
12 #include "HEJ/exceptions.hh"
13 
14 namespace HEJ {
16  enum StatusCode{
26  unspecified // should never appear
27  };
28 
31  inline std::string to_string(StatusCode s){
32  switch(s){
33  case good: return "good";
34  case discard: return "discard";
35  case empty_jets: return "empty jets";
36  case failed_reshuffle: return "failed reshuffle";
37  case failed_resummation_cuts: return "below cuts";
38  case failed_split: return "failed split";
39  case too_much_energy: return "too much energy";
40  case gluon_in_qqbar: return "gluon inside qqbar";
41  case wrong_jets: return "wrong jets";
42  case unspecified: return "unspecified";
43  default:{}
44  }
45  throw std::logic_error{"unreachable"};
46  }
47 } // namespace HEJ
Custom exception classes.
@ s
Definition: PDG_codes.hh:32
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
std::string to_string(Event const &ev)
StatusCode
Possible status codes from the event generation.
Definition: StatusCode.hh:16
@ discard
Definition: StatusCode.hh:18
@ failed_split
Definition: StatusCode.hh:22
@ unspecified
Definition: StatusCode.hh:26
@ empty_jets
Definition: StatusCode.hh:19
@ failed_reshuffle
Definition: StatusCode.hh:20
@ failed_resummation_cuts
Definition: StatusCode.hh:21
@ good
Definition: StatusCode.hh:17
@ wrong_jets
Definition: StatusCode.hh:25
@ too_much_energy
Definition: StatusCode.hh:23
@ gluon_in_qqbar
Definition: StatusCode.hh:24