PYTHIA  8.313
HIBasics.h
1 // HIBasics.h is a part of the PYTHIA event generator.
2 // Copyright (C) 2025 Torbjorn Sjostrand.
3 // PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
4 // Please respect the MCnet Guidelines, see GUIDELINES for details.
5 
6 // This file contains the definition of the EventInfo class.
7 //
8 // EventInfo: stores full nucleon-nucleon events with corresponding Info.
9 
10 #ifndef Pythia8_HIBasics_H
11 #define Pythia8_HIBasics_H
12 
13 #include "Pythia8/Pythia.h"
14 
15 namespace Pythia8 {
16 
17 // Forward declarations.
18 class Nucleon;
19 class SubCollision;
20 
21 //==========================================================================
22 
23 // Class for storing Events and Info objects.
24 
25 class EventInfo {
26 
27 public:
28 
29  // Empty constructor.
30  EventInfo(): code(0), ordering(-1.0), coll(0), ok(false) {}
31 
32  // The Event object.
34 
35  // The corresponding Info object.
37 
38  // The code for the subprocess.
39  int code;
40 
41  // The ordering variable of this event.
42  double ordering;
43  bool operator<(const EventInfo & ei) const {
44  return ordering < ei.ordering;
45  }
46 
47  // The associated SubCollision object.
49 
50  // Is the event properly generated?
51  bool ok;
52 
53  // Which projectile and target nucleons are included and where are
54  // they placed?
55  map<Nucleon*, pair<int,int> > projs, targs;
56 
57 };
58 
59 //==========================================================================
60 
61 } // end namespace Pythia8
62 
63 #endif // Pythia8_HIBasics_H
Definition: Info.h:45
The Event class holds all info on the generated event.
Definition: Event.h:408
map< Nucleon *, pair< int, int > > projs
Definition: HIBasics.h:55
Info info
The corresponding Info object.
Definition: HIBasics.h:36
double ordering
The ordering variable of this event.
Definition: HIBasics.h:42
Event event
The Event object.
Definition: HIBasics.h:33
bool ok
Is the event properly generated?
Definition: HIBasics.h:51
int code
The code for the subprocess.
Definition: HIBasics.h:39
Definition: HISubCollisionModel.h:30
Class for storing Events and Info objects.
Definition: HIBasics.h:25
Header for classes to set beam momentum and interaction vertex spread.
Definition: Analysis.h:20
const SubCollision * coll
The associated SubCollision object.
Definition: HIBasics.h:48
EventInfo()
Empty constructor.
Definition: HIBasics.h:30