CepGen 1.2.5
Central exclusive processes event generator
|
Container for the information on the in- and outgoing particles' kinematics. More...
#include <CepGen/Event/Event.h>
Classes | |
struct | EventMetadata |
Collection of key -> value pairs storing event metadata. More... | |
Public Member Functions | |
Event (bool compressed=false) | |
Build an empty event. | |
Event (const Event &) | |
Copy constructor. | |
Event & | operator= (const Event &) |
Assignment operator. | |
bool | operator== (const Event &) const |
Equality operator. | |
void | clear () |
Empty the whole event content. | |
void | freeze () |
Store a snapshot of the primordial event block. | |
void | restore () |
Restore the event to its "empty" state. | |
bool | compressed () const |
Is the event already without intermediate-channel information? | |
Event | compress () const |
Compress the event record. | |
void | updateRoles () |
Update the table of particles roles. | |
void | dump () const |
Dump all the known information on every Particle object contained in this Event container in the output stream. | |
double | cmEnergy () const |
Incoming beams centre-of-mass energy, in GeV. | |
ParticleRef | addParticle (Particle &part, bool replace=false) |
Set the information on one particle in the process. | |
ParticleRef | addParticle (Particle::Role role, bool replace=false) |
Create a new particle in the event, with no kinematic information but the role it has to play in the process. | |
size_t | size () const |
Number of particles in the event. | |
bool | empty () const |
Is the particles map empty? | |
Particles | particles () const |
Vector of all particles in the event. | |
Particles | stableParticles () const |
Vector of all stable particles in the event. | |
Particles | stableParticlesWithRole (Particle::Role) const |
Vector of all stable particles of a given role. | |
ParticlesMap & | map () |
Internal particles map retrieval operator. | |
ParticlesRefs | operator[] (Particle::Role role) |
List of references to Particle objects corresponding to a certain role in the process kinematics. | |
const Particles & | operator() (Particle::Role role) const |
Get a list of constant Particle objects corresponding to a certain role in the process kinematics. | |
ParticlesIds | ids (Particle::Role role) const |
Get a list of particle identifiers in Event corresponding to a certain role in the process kinematics. | |
bool | hasRole (Particle::Role role) const |
Check whether a particle role is represented in this event. | |
Particle & | oneWithRole (Particle::Role role) |
First Particle object with a given role in the event. | |
const Particle & | oneWithRole (Particle::Role role) const |
First constant Particle object with a given role in the event. | |
Particle & | operator[] (int id) |
Reference to the Particle object corresponding to a unique identifier in the event. | |
const Particle & | operator() (int id) const |
Constant reference to the Particle object corresponding to a unique identifier in the event. | |
ParticlesRefs | operator[] (const ParticlesIds &ids) |
References to the Particle objects corresponding to the unique identifiers in the event. | |
Particles | operator() (const ParticlesIds &ids) const |
Particle objects corresponding to the unique identifiers in the event. | |
Momentum | missingMomentum () const |
Compute the missing momentum for central particles in this event. | |
Particles | mothers (const Particle &part) const |
List of all parent Particle object for this given particle. | |
ParticlesRefs | mothers (const Particle &part) |
List of all parent Particle object for this given particle. | |
void | clearMothers (Particle &part) |
Remove all mothers from a given particle (also affects the mothers' filiation) | |
Particles | daughters (const Particle &part) const |
List of all the daughters from a particle. | |
ParticlesRefs | daughters (const Particle &part) |
List of all the daughters from a particle. | |
Particles | stableDaughters (const Particle &part, bool recursive=false) const |
List all the stable daughters of a particle in this event. | |
ParticlesRefs | stableDaughters (const Particle &part, bool recursive=false) |
List all the stable daughters of a particle in this event. | |
void | clearDaughters (Particle &part) |
Remove all daughters from a given particle (also affects the daughters' parentage) | |
ParticleRoles | roles () const |
List of roles defined for the given event (really process-dependant for the central system) | |
Static Public Member Functions | |
static Event | minimal (size_t num_out_particles=1) |
Build a trivial event with the minimal information. | |
Public Attributes | |
EventMetadata | metadata |
List of auxiliary information. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Event &) |
Human-readable version of the event content. | |
ParticleRef addParticle | ( | Particle & | part, |
bool | replace = false |
||
) |
ParticleRef addParticle | ( | Particle::Role | role, |
bool | replace = false |
||
) |
ParticlesRefs daughters | ( | const Particle & | part | ) |
bool hasRole | ( | Particle::Role | role | ) | const |
ParticlesIds ids | ( | Particle::Role | role | ) | const |
ParticlesMap & map | ( | ) |
|
static |
ParticlesRefs mothers | ( | const Particle & | part | ) |
Particle & oneWithRole | ( | Particle::Role | role | ) |
const Particle & oneWithRole | ( | Particle::Role | role | ) | const |
Particles operator() | ( | const ParticlesIds & | ids | ) | const |
const Particle & operator() | ( | int | id | ) | const |
const Particles & operator() | ( | Particle::Role | role | ) | const |
ParticlesRefs operator[] | ( | const ParticlesIds & | ids | ) |
Particle & operator[] | ( | int | id | ) |
ParticlesRefs operator[] | ( | Particle::Role | role | ) |
ParticleRoles roles | ( | ) | const |
ParticlesRefs stableDaughters | ( | const Particle & | part, |
bool | recursive = false |
||
) |
Particles stableParticlesWithRole | ( | Particle::Role | role | ) | const |
|
friend |
EventMetadata metadata |