hej is hosted by Hepforge, IPPP Durham
HEJ 2  2.0
High energy resummation for hadron colliders
event_types.hh
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "HEJ/utility.hh"
12 
13 namespace HEJ{
14 
16  namespace event_type{
18  enum EventType: size_t{
19  FKL,
29  };
30 
32 
35  static constexpr auto names = make_array(
36  "FKL",
37  "unordered backward",
38  "unordered forward",
39  "nonHEJ",
40  "no 2 jets",
41  "bad final state"
42  );
43 
44  inline
45  bool is_HEJ(EventType type) {
46  switch(type) {
47  case FKL:
48  case unordered_backward:
49  case unordered_forward:
50  return true;
51  default:
52  return false;
53  }
54  }
55 
56  inline
57  bool is_uno(EventType type) {
58  return type == unordered_backward || type == unordered_forward;
59  }
60 
61  }
62 
63 }
EventType
Possible event types.
Definition: event_types.hh:18
@ FKL
Definition: event_types.hh:19
@ no_2_jets
Definition: event_types.hh:23
@ bad_final_state
Definition: event_types.hh:24
@ nonHEJ
Definition: event_types.hh:22
@ last_type
Definition: event_types.hh:28
@ unob
Definition: event_types.hh:25
@ unordered_forward
Definition: event_types.hh:21
@ first_type
Definition: event_types.hh:27
@ unordered_backward
Definition: event_types.hh:20
@ unof
Definition: event_types.hh:26
bool is_HEJ(EventType type)
Definition: event_types.hh:45
bool is_uno(EventType type)
Definition: event_types.hh:57
Main HEJ 2 Namespace.
Definition: mainpage.dox:1
constexpr std::array< T, 1+sizeof...(U)> make_array(T t, U &&... rest)
Create an array containing the passed arguments.
Definition: utility.hh:33
Contains various utilities.