HepMC event record
Public Member Functions
GenEvent Class Reference

Detailed Description

Stores event-related information.

Manages event-related information. Contains lists of GenParticle and GenVertex objects

Examples:
basic_tree.cc, class_example_write.cc, HepMC2_reader_example.cc, HepMC3_fileIO_example.cc, LHEF_example_cat.cc, pythia8_example.cc, rootIO_example_read.cc, and rootIO_example_write.cc.

Definition at line 37 of file build/outputs/include/HepMC/GenEvent.h.

#include <GenEvent.h>

+ Collaboration diagram for GenEvent:

Public Member Functions

 GenEvent (Units::MomentumUnit momentum_unit=Units::GEV, Units::LengthUnit length_unit=Units::MM)
 Event constructor without a run. More...
 
 GenEvent (shared_ptr< GenRunInfo > run, Units::MomentumUnit momentum_unit=Units::GEV, Units::LengthUnit length_unit=Units::MM)
 Constructor with associated run. More...
 
 GenEvent (Units::MomentumUnit momentum_unit=Units::GEV, Units::LengthUnit length_unit=Units::MM)
 Event constructor without a run. More...
 
 GenEvent (shared_ptr< GenRunInfo > run, Units::MomentumUnit momentum_unit=Units::GEV, Units::LengthUnit length_unit=Units::MM)
 Constructor with associated run. More...
 
Particle and vertex access
const std::vector< GenParticlePtr > & particles () const
 Get list of particles (const) More...
 
const std::vector< GenVertexPtr > & vertices () const
 Get list of vertices (const) More...
 
std::vector< GenParticlePtr > & particles ()
 Get/set list of particles (non-const) More...
 
std::vector< GenVertexPtr > & vertices ()
 Get/set list of vertices (non-const) More...
 
const std::vector< GenParticlePtr > & particles () const
 Get list of particles (const) More...
 
const std::vector< GenVertexPtr > & vertices () const
 Get list of vertices (const) More...
 
std::vector< GenParticlePtr > & particles ()
 Get/set list of particles (non-const) More...
 
std::vector< GenVertexPtr > & vertices ()
 Get/set list of vertices (non-const) More...
 
Event weights
const std::vector< double > & weights () const
 Get event weight values as a vector. More...
 
std::vector< double > & weights ()
 Get event weights as a vector (non-const) More...
 
double weight (size_t index=0) const
 
double weight (const std::string &name) const
 
const std::vector< std::string > & weight_names (const std::string &) const
 
const std::vector< double > & weights () const
 Get event weight values as a vector. More...
 
std::vector< double > & weights ()
 Get event weights as a vector (non-const) More...
 
double weight (size_t index=0) const
 
double weight (const std::string &name) const
 
const std::vector< std::string > & weight_names (const std::string &) const
 
Auxiliary info and event metadata
shared_ptr< GenRunInforun_info () const
 Get a pointer to the the GenRunInfo object. More...
 
void set_run_info (shared_ptr< GenRunInfo > run)
 Set the GenRunInfo object by smart pointer. More...
 
int event_number () const
 Get event number. More...
 
void set_event_number (int num)
 Set event number. More...
 
const Units::MomentumUnitmomentum_unit () const
 Get momentum unit. More...
 
const Units::LengthUnitlength_unit () const
 Get length unit. More...
 
void set_units (Units::MomentumUnit new_momentum_unit, Units::LengthUnit new_length_unit)
 Change event units Converts event from current units to new ones. More...
 
void use_units (Units::MomentumUnit new_momentum_unit, Units::LengthUnit new_length_unit)
 Converts event from current units to new ones (compatibility name) More...
 
const GenHeavyIonPtr heavy_ion () const
 Get heavy ion generator additional information. More...
 
void set_heavy_ion (const GenHeavyIonPtr &hi)
 Set heavy ion generator additional information. More...
 
const GenPdfInfoPtr pdf_info () const
 Get PDF information. More...
 
void set_pdf_info (const GenPdfInfoPtr &pi)
 Set PDF information. More...
 
const GenCrossSectionPtr cross_section () const
 Get cross-section information. More...
 
void set_cross_section (const GenCrossSectionPtr &cs)
 Set cross-section information. More...
 
shared_ptr< GenRunInforun_info () const
 Get a pointer to the the GenRunInfo object. More...
 
void set_run_info (shared_ptr< GenRunInfo > run)
 Set the GenRunInfo object by smart pointer. More...
 
int event_number () const
 Get event number. More...
 
void set_event_number (int num)
 Set event number. More...
 
const Units::MomentumUnitmomentum_unit () const
 Get momentum unit. More...
 
const Units::LengthUnitlength_unit () const
 Get length unit. More...
 
void set_units (Units::MomentumUnit new_momentum_unit, Units::LengthUnit new_length_unit)
 Change event units Converts event from current units to new ones. More...
 
void use_units (Units::MomentumUnit new_momentum_unit, Units::LengthUnit new_length_unit)
 Converts event from current units to new ones (compatibility name) More...
 
const GenHeavyIonPtr heavy_ion () const
 Get heavy ion generator additional information. More...
 
void set_heavy_ion (const GenHeavyIonPtr &hi)
 Set heavy ion generator additional information. More...
 
const GenPdfInfoPtr pdf_info () const
 Get PDF information. More...
 
void set_pdf_info (const GenPdfInfoPtr &pi)
 Set PDF information. More...
 
const GenCrossSectionPtr cross_section () const
 Get cross-section information. More...
 
void set_cross_section (const GenCrossSectionPtr &cs)
 Set cross-section information. More...
 
Event position
const FourVectorevent_pos () const
 Vertex representing the overall event position. More...
 
const std::vector< GenParticlePtr > & beams () const
 Vector of beam particles. More...
 
void shift_position_by (const FourVector &delta)
 Shift position of all vertices in the event by delta. More...
 
void shift_position_to (const FourVector &newpos)
 Shift position of all vertices in the event to op. More...
 
const FourVectorevent_pos () const
 Vertex representing the overall event position. More...
 
const std::vector< GenParticlePtr > & beams () const
 Vector of beam particles. More...
 
void shift_position_by (const FourVector &delta)
 Shift position of all vertices in the event by delta. More...
 
void shift_position_to (const FourVector &newpos)
 Shift position of all vertices in the event to op. More...
 
Additional attributes
void add_attribute (const string &name, const shared_ptr< Attribute > &att, int id=0)
 Add event attribute to event. More...
 
void remove_attribute (const string &name, int id=0)
 Remove attribute. More...
 
template<class T >
shared_ptr< T > attribute (const string &name, int id=0) const
 Get attribute of type T. More...
 
string attribute_as_string (const string &name, int id=0) const
 Get attribute of any type as string. More...
 
std::vector< string > attribute_names (int id=0) const
 Get list of attribute names. More...
 
const std::map< string, std::map< int, shared_ptr< Attribute > > > & attributes () const
 Get list of attributes. More...
 
void add_attribute (const string &name, const shared_ptr< Attribute > &att, int id=0)
 Add event attribute to event. More...
 
void remove_attribute (const string &name, int id=0)
 Remove attribute. More...
 
template<class T >
shared_ptr< T > attribute (const string &name, int id=0) const
 Get attribute of type T. More...
 
string attribute_as_string (const string &name, int id=0) const
 Get attribute of any type as string. More...
 
std::vector< string > attribute_names (int id=0) const
 Get list of attribute names. More...
 
const std::map< string, std::map< int, shared_ptr< Attribute > > > & attributes () const
 Get list of attributes. More...
 
Particle and vertex modification
void add_particle (GenParticlePtr p)
 Add particle. More...
 
void add_vertex (GenVertexPtr v)
 Add vertex. More...
 
void remove_particle (GenParticlePtr v)
 Remove particle from the event. More...
 
void remove_particles (std::vector< GenParticlePtr > v)
 Remove a set of particles. More...
 
void remove_vertex (GenVertexPtr v)
 Remove vertex from the event. More...
 
void add_tree (const std::vector< GenParticlePtr > &particles)
 Add whole tree in topological order. More...
 
void reserve (unsigned int particles, unsigned int vertices=0)
 Reserve memory for particles and vertices. More...
 
void clear ()
 Remove contents of this event. More...
 
void add_particle (GenParticlePtr p)
 Add particle. More...
 
void add_vertex (GenVertexPtr v)
 Add vertex. More...
 
void remove_particle (GenParticlePtr v)
 Remove particle from the event. More...
 
void remove_particles (std::vector< GenParticlePtr > v)
 Remove a set of particles. More...
 
void remove_vertex (GenVertexPtr v)
 Remove vertex from the event. More...
 
void add_tree (const std::vector< GenParticlePtr > &particles)
 Add whole tree in topological order. More...
 
void reserve (unsigned int particles, unsigned int vertices=0)
 Reserve memory for particles and vertices. More...
 
void clear ()
 Remove contents of this event. More...
 
Methods to fill GenEventData and to read it back
void write_data (GenEventData &data) const
 Fill GenEventData object. More...
 
void read_data (const GenEventData &data)
 Fill GenEvent based on GenEventData. More...
 
void write_data (GenEventData &data) const
 Fill GenEventData object. More...
 
void read_data (const GenEventData &data)
 Fill GenEvent based on GenEventData. More...
 

Deprecated functionality

typedef std::vector< double > GenWeights
 
typedef std::vector< double > WeightContainer
 
typedef std::vector< GenParticlePtr >::iterator particle_iterator
 
typedef std::vector< GenParticlePtr >::const_iterator particle_const_iterator
 
typedef std::vector< GenVertexPtr >::iterator vertex_iterator
 
typedef std::vector< GenVertexPtr >::const_iterator vertex_const_iterator
 
typedef std::vector< double > GenWeights
 
typedef std::vector< double > WeightContainer
 
typedef std::vector< GenParticlePtr >::iterator particle_iterator
 
typedef std::vector< GenParticlePtr >::const_iterator particle_const_iterator
 
typedef std::vector< GenVertexPtr >::iterator vertex_iterator
 
typedef std::vector< GenVertexPtr >::const_iterator vertex_const_iterator
 
void add_particle (GenParticle *p)
 Add particle by raw pointer. More...
 
void add_vertex (GenVertex *v)
 Add vertex by raw pointer. More...
 
void set_heavy_ion (GenHeavyIon *hi)
 Set heavy ion generator additional information by raw pointer. More...
 
void set_pdf_info (GenPdfInfo *pi)
 Set PDF information by raw pointer. More...
 
void set_cross_section (GenCrossSection *cs)
 Set cross-section information by raw pointer. More...
 
particle_iterator particles_begin ()
 
particle_iterator particles_end ()
 
particle_const_iterator particles_begin () const
 
particle_const_iterator particles_end () const
 
vertex_iterator vertices_begin ()
 
vertex_iterator vertices_end ()
 
vertex_const_iterator vertices_begin () const
 
vertex_const_iterator vertices_end () const
 
 HEPMC_DEPRECATED ("Use particles().size() instead") int particles_size() const
 
 HEPMC_DEPRECATED ("Use particles().empty() instead") bool particles_empty() const
 
 HEPMC_DEPRECATED ("Use vertices().size() instead") int vertices_size() const
 
 HEPMC_DEPRECATED ("Use vertices().empty() instead") bool vertices_empty() const
 
bool valid_beam_particles () const
 Test to see if we have exactly two particles in event_pos() vertex. More...
 
std::pair< GenParticlePtr, GenParticlePtrbeam_particles () const
 Get first two particles of the event_pos() vertex. More...
 
void set_beam_particles (const GenParticlePtr &p1, const GenParticlePtr &p2)
 Set incoming beam particles. More...
 
void set_beam_particles (const std::pair< GenParticlePtr, GenParticlePtr > &p)
 Set incoming beam particles. More...
 
void add_particle (GenParticle *p)
 Add particle by raw pointer. More...
 
void add_vertex (GenVertex *v)
 Add vertex by raw pointer. More...
 
void set_heavy_ion (GenHeavyIon *hi)
 Set heavy ion generator additional information by raw pointer. More...
 
void set_pdf_info (GenPdfInfo *pi)
 Set PDF information by raw pointer. More...
 
void set_cross_section (GenCrossSection *cs)
 Set cross-section information by raw pointer. More...
 
particle_iterator particles_begin ()
 
particle_iterator particles_end ()
 
particle_const_iterator particles_begin () const
 
particle_const_iterator particles_end () const
 
vertex_iterator vertices_begin ()
 
vertex_iterator vertices_end ()
 
vertex_const_iterator vertices_begin () const
 
vertex_const_iterator vertices_end () const
 
 HEPMC_DEPRECATED ("Use particles().size() instead") int particles_size() const
 
 HEPMC_DEPRECATED ("Use particles().empty() instead") bool particles_empty() const
 
 HEPMC_DEPRECATED ("Use vertices().size() instead") int vertices_size() const
 
 HEPMC_DEPRECATED ("Use vertices().empty() instead") bool vertices_empty() const
 
bool valid_beam_particles () const
 Test to see if we have exactly two particles in event_pos() vertex. More...
 
std::pair< GenParticlePtr, GenParticlePtrbeam_particles () const
 Get first two particles of the event_pos() vertex. More...
 
void set_beam_particles (const GenParticlePtr &p1, const GenParticlePtr &p2)
 Set incoming beam particles. More...
 
void set_beam_particles (const std::pair< GenParticlePtr, GenParticlePtr > &p)
 Set incoming beam particles. More...
 

Fields

typedef std::map< string, std::map< int, shared_ptr< Attribute > > >::value_type att_key_t
 Attribute map key type. More...
 
typedef std::map< int, shared_ptr< Attribute > >::value_type att_val_t
 Attribute map value type. More...
 
typedef std::map< string, std::map< int, shared_ptr< Attribute > > >::value_type att_key_t
 Attribute map key type. More...
 
typedef std::map< int, shared_ptr< Attribute > >::value_type att_val_t
 Attribute map value type. More...
 
std::vector< GenParticlePtrm_particles
 List of particles. More...
 
std::vector< GenVertexPtrm_vertices
 List of vertices. More...
 
int m_event_number
 
std::vector< double > m_weights
 Event weights. More...
 
Units::MomentumUnit m_momentum_unit
 Momentum unit. More...
 
Units::LengthUnit m_length_unit
 Length unit. More...
 
GenVertexPtr m_rootvertex
 The root vertex is stored outside the normal vertices list to block user access to it. More...
 
shared_ptr< GenRunInfom_run_info
 Global run information. More...
 
std::map< string, std::map< int, shared_ptr< Attribute > > > m_attributes
 Map of event, particle and vertex attributes. More...
 

Member Typedef Documentation

◆ att_key_t [1/2]

typedef std::map< string, std::map<int, shared_ptr<Attribute> > >::value_type att_key_t
private

Attribute map key type.

Definition at line 422 of file build/outputs/include/HepMC/GenEvent.h.

◆ att_key_t [2/2]

typedef std::map< string, std::map<int, shared_ptr<Attribute> > >::value_type att_key_t
private

Attribute map key type.

Definition at line 422 of file include/HepMC/GenEvent.h.

◆ att_val_t [1/2]

typedef std::map<int, shared_ptr<Attribute> >::value_type att_val_t
private

Attribute map value type.

Definition at line 425 of file build/outputs/include/HepMC/GenEvent.h.

◆ att_val_t [2/2]

typedef std::map<int, shared_ptr<Attribute> >::value_type att_val_t
private

Attribute map value type.

Definition at line 425 of file include/HepMC/GenEvent.h.

◆ GenWeights [1/2]

typedef std::vector<double> GenWeights
Deprecated:
Backward compatibility typedefs

Definition at line 280 of file include/HepMC/GenEvent.h.

◆ GenWeights [2/2]

typedef std::vector<double> GenWeights
Deprecated:
Backward compatibility typedefs

Definition at line 280 of file build/outputs/include/HepMC/GenEvent.h.

◆ particle_const_iterator [1/2]

typedef std::vector<GenParticlePtr>::const_iterator particle_const_iterator
Deprecated:
Backward compatibility iterators

Definition at line 287 of file build/outputs/include/HepMC/GenEvent.h.

◆ particle_const_iterator [2/2]

typedef std::vector<GenParticlePtr>::const_iterator particle_const_iterator
Deprecated:
Backward compatibility iterators

Definition at line 287 of file include/HepMC/GenEvent.h.

◆ particle_iterator [1/2]

typedef std::vector<GenParticlePtr>::iterator particle_iterator
Deprecated:
Backward compatibility iterators

Definition at line 285 of file include/HepMC/GenEvent.h.

◆ particle_iterator [2/2]

typedef std::vector<GenParticlePtr>::iterator particle_iterator
Deprecated:
Backward compatibility iterators

Definition at line 285 of file build/outputs/include/HepMC/GenEvent.h.

◆ vertex_const_iterator [1/2]

typedef std::vector<GenVertexPtr>::const_iterator vertex_const_iterator
Deprecated:
Backward compatibility iterators

Definition at line 292 of file include/HepMC/GenEvent.h.

◆ vertex_const_iterator [2/2]

typedef std::vector<GenVertexPtr>::const_iterator vertex_const_iterator
Deprecated:
Backward compatibility iterators

Definition at line 292 of file build/outputs/include/HepMC/GenEvent.h.

◆ vertex_iterator [1/2]

typedef std::vector<GenVertexPtr>::iterator vertex_iterator
Deprecated:
Backward compatibility iterators

Definition at line 290 of file build/outputs/include/HepMC/GenEvent.h.

◆ vertex_iterator [2/2]

typedef std::vector<GenVertexPtr>::iterator vertex_iterator
Deprecated:
Backward compatibility iterators

Definition at line 290 of file include/HepMC/GenEvent.h.

◆ WeightContainer [1/2]

typedef std::vector<double> WeightContainer
Deprecated:
Backward compatibility typedefs

Definition at line 282 of file build/outputs/include/HepMC/GenEvent.h.

◆ WeightContainer [2/2]

typedef std::vector<double> WeightContainer
Deprecated:
Backward compatibility typedefs

Definition at line 282 of file include/HepMC/GenEvent.h.

Constructor & Destructor Documentation

◆ GenEvent() [1/4]

GenEvent ( Units::MomentumUnit  momentum_unit = Units::GEV,
Units::LengthUnit  length_unit = Units::MM 
)

Event constructor without a run.

Definition at line 25 of file GenEvent.cc.

◆ GenEvent() [2/4]

GenEvent ( shared_ptr< GenRunInfo run,
Units::MomentumUnit  momentum_unit = Units::GEV,
Units::LengthUnit  length_unit = Units::MM 
)

Constructor with associated run.

Definition at line 32 of file GenEvent.cc.

◆ GenEvent() [3/4]

GenEvent ( Units::MomentumUnit  momentum_unit = Units::GEV,
Units::LengthUnit  length_unit = Units::MM 
)

Event constructor without a run.

◆ GenEvent() [4/4]

GenEvent ( shared_ptr< GenRunInfo run,
Units::MomentumUnit  momentum_unit = Units::GEV,
Units::LengthUnit  length_unit = Units::MM 
)

Constructor with associated run.

Member Function Documentation

◆ add_attribute() [1/2]

void add_attribute ( const string &  name,
const shared_ptr< Attribute > &  att,
int  id = 0 
)
inline

Add event attribute to event.

This will overwrite existing attribute if an attribute with the same name is present

Examples:
basic_tree.cc, and LHEF_example_cat.cc.

Definition at line 176 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_attributes.

◆ add_attribute() [2/2]

void add_attribute ( const string &  name,
const shared_ptr< Attribute > &  att,
int  id = 0 
)
inline

Add event attribute to event.

This will overwrite existing attribute if an attribute with the same name is present

Definition at line 176 of file include/HepMC/GenEvent.h.

References GenEvent::m_attributes.

◆ add_particle() [1/4]

void add_particle ( GenParticlePtr  p)

Add particle.

Definition at line 42 of file GenEvent.cc.

References GenEvent::m_particles, GenEvent::m_rootvertex, and GenEvent::particles().

◆ add_particle() [2/4]

void add_particle ( GenParticlePtr  p)

Add particle.

◆ add_particle() [3/4]

void add_particle ( GenParticle p)

Add particle by raw pointer.

Deprecated:
Use GenEvent::add_particle( const GenParticlePtr& ) instead

Definition at line 388 of file GenEvent.cc.

◆ add_particle() [4/4]

void add_particle ( GenParticle p)

Add particle by raw pointer.

Deprecated:
Use GenEvent::add_particle( const GenParticlePtr& ) instead

◆ add_tree() [1/2]

void add_tree ( const std::vector< GenParticlePtr > &  particles)

Add whole tree in topological order.

This function will find the beam particles (particles that have no production vertices or their production vertices have no particles) and will add the whole decay tree starting from these particles.

Note
Any particles on this list that do not belong to the tree will be ignored.

Definition at line 262 of file GenEvent.cc.

◆ add_tree() [2/2]

void add_tree ( const std::vector< GenParticlePtr > &  particles)

Add whole tree in topological order.

This function will find the beam particles (particles that have no production vertices or their production vertices have no particles) and will add the whole decay tree starting from these particles.

Note
Any particles on this list that do not belong to the tree will be ignored.

◆ add_vertex() [1/4]

void add_vertex ( GenVertexPtr  v)

Add vertex.

Examples:
basic_tree.cc, and LHEF_example_cat.cc.

Definition at line 57 of file GenEvent.cc.

References GenEvent::add_particle(), GenEvent::m_vertices, and GenEvent::vertices().

◆ add_vertex() [2/4]

void add_vertex ( GenVertexPtr  v)

Add vertex.

◆ add_vertex() [3/4]

void add_vertex ( GenVertex v)

Add vertex by raw pointer.

Deprecated:
Use GenEvent::add_vertex( const GenVertexPtr& ) instead

Definition at line 393 of file GenEvent.cc.

◆ add_vertex() [4/4]

void add_vertex ( GenVertex v)

Add vertex by raw pointer.

Deprecated:
Use GenEvent::add_vertex( const GenVertexPtr& ) instead

◆ attribute() [1/2]

shared_ptr<T> attribute ( const string &  name,
int  id = 0 
) const

Get attribute of type T.

◆ attribute() [2/2]

shared_ptr< T > attribute ( const string &  name,
int  id = 0 
) const

Get attribute of type T.

Examples:
basic_tree.cc, HepMC3_fileIO_example.cc, and LHEF_example_cat.cc.

Definition at line 441 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_attributes, and GenEvent::run_info().

◆ attribute_as_string() [1/2]

string attribute_as_string ( const string &  name,
int  id = 0 
) const

Get attribute of any type as string.

◆ attribute_as_string() [2/2]

string attribute_as_string ( const string &  name,
int  id = 0 
) const

Get attribute of any type as string.

Definition at line 555 of file GenEvent.cc.

◆ attribute_names() [1/2]

vector< string > attribute_names ( int  id = 0) const

Get list of attribute names.

Definition at line 408 of file GenEvent.cc.

◆ attribute_names() [2/2]

std::vector<string> attribute_names ( int  id = 0) const

Get list of attribute names.

◆ attributes() [1/2]

const std::map< string, std::map<int, shared_ptr<Attribute> > >& attributes ( ) const
inline

Get list of attributes.

Definition at line 194 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_attributes.

◆ attributes() [2/2]

const std::map< string, std::map<int, shared_ptr<Attribute> > >& attributes ( ) const
inline

Get list of attributes.

Definition at line 194 of file include/HepMC/GenEvent.h.

References GenEvent::m_attributes.

◆ beam_particles() [1/2]

pair< GenParticlePtr, GenParticlePtr > beam_particles ( ) const

Get first two particles of the event_pos() vertex.

Deprecated:
Backward compatibility
Todo:
Change this definition to require status = 4... and in principle there don't have to be two of them

Definition at line 532 of file GenEvent.cc.

◆ beam_particles() [2/2]

std::pair<GenParticlePtr,GenParticlePtr> beam_particles ( ) const

Get first two particles of the event_pos() vertex.

Deprecated:
Backward compatibility

◆ beams() [1/2]

const std::vector<GenParticlePtr>& beams ( ) const

Vector of beam particles.

◆ beams() [2/2]

const vector< GenParticlePtr > & beams ( ) const

Vector of beam particles.

Examples:
basic_tree.cc.

Definition at line 359 of file GenEvent.cc.

◆ clear() [1/2]

void clear ( )

Remove contents of this event.

Definition at line 374 of file GenEvent.cc.

◆ clear() [2/2]

void clear ( )

Remove contents of this event.

◆ cross_section() [1/2]

const GenCrossSectionPtr cross_section ( ) const
inline

Get cross-section information.

Definition at line 142 of file include/HepMC/GenEvent.h.

◆ cross_section() [2/2]

const GenCrossSectionPtr cross_section ( ) const
inline

Get cross-section information.

Definition at line 142 of file build/outputs/include/HepMC/GenEvent.h.

◆ event_number() [1/2]

int event_number ( ) const
inline

Get event number.

Examples:
LHEF_example_cat.cc.

Definition at line 112 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_event_number.

◆ event_number() [2/2]

int event_number ( ) const
inline

Get event number.

Definition at line 112 of file include/HepMC/GenEvent.h.

References GenEvent::m_event_number.

◆ event_pos() [1/2]

const FourVector& event_pos ( ) const

Vertex representing the overall event position.

◆ event_pos() [2/2]

const FourVector & event_pos ( ) const

Vertex representing the overall event position.

Definition at line 355 of file GenEvent.cc.

◆ heavy_ion() [1/2]

const GenHeavyIonPtr heavy_ion ( ) const
inline

Get heavy ion generator additional information.

Definition at line 132 of file include/HepMC/GenEvent.h.

◆ heavy_ion() [2/2]

const GenHeavyIonPtr heavy_ion ( ) const
inline

Get heavy ion generator additional information.

Definition at line 132 of file build/outputs/include/HepMC/GenEvent.h.

◆ HEPMC_DEPRECATED() [1/8]

HEPMC_DEPRECATED ( "Use particles().size() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 327 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ HEPMC_DEPRECATED() [2/8]

HEPMC_DEPRECATED ( "Use particles().size() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 327 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ HEPMC_DEPRECATED() [3/8]

HEPMC_DEPRECATED ( "Use particles().empty() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 331 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ HEPMC_DEPRECATED() [4/8]

HEPMC_DEPRECATED ( "Use particles().empty() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 331 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ HEPMC_DEPRECATED() [5/8]

HEPMC_DEPRECATED ( "Use vertices().size() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 335 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ HEPMC_DEPRECATED() [6/8]

HEPMC_DEPRECATED ( "Use vertices().size() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 335 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ HEPMC_DEPRECATED() [7/8]

HEPMC_DEPRECATED ( "Use vertices().empty() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 339 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ HEPMC_DEPRECATED() [8/8]

HEPMC_DEPRECATED ( "Use vertices().empty() instead"  ) const
inline
Deprecated:
Backward compatibility

Definition at line 339 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ length_unit() [1/2]

const Units::LengthUnit& length_unit ( ) const
inline

Get length unit.

Definition at line 119 of file include/HepMC/GenEvent.h.

References GenEvent::m_length_unit.

◆ length_unit() [2/2]

const Units::LengthUnit& length_unit ( ) const
inline

Get length unit.

Definition at line 119 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_length_unit.

◆ momentum_unit() [1/2]

const Units::MomentumUnit& momentum_unit ( ) const
inline

Get momentum unit.

Definition at line 117 of file include/HepMC/GenEvent.h.

References GenEvent::m_momentum_unit.

◆ momentum_unit() [2/2]

const Units::MomentumUnit& momentum_unit ( ) const
inline

Get momentum unit.

Definition at line 117 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_momentum_unit.

◆ particles() [1/4]

const std::vector<GenParticlePtr>& particles ( ) const
inline

Get list of particles (const)

Definition at line 57 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles() [2/4]

const std::vector<GenParticlePtr>& particles ( ) const
inline

Get list of particles (const)

Definition at line 57 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles() [3/4]

std::vector<GenParticlePtr>& particles ( )
inline

Get/set list of particles (non-const)

Definition at line 63 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles() [4/4]

std::vector<GenParticlePtr>& particles ( )
inline

Get/set list of particles (non-const)

Definition at line 63 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_begin() [1/4]

particle_iterator particles_begin ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 296 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_begin() [2/4]

particle_iterator particles_begin ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 296 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_begin() [3/4]

particle_const_iterator particles_begin ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 304 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_begin() [4/4]

particle_const_iterator particles_begin ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 304 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_end() [1/4]

particle_iterator particles_end ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 300 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_end() [2/4]

particle_iterator particles_end ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 300 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_end() [3/4]

particle_const_iterator particles_end ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 308 of file include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ particles_end() [4/4]

particle_const_iterator particles_end ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 308 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_particles.

◆ pdf_info() [1/2]

const GenPdfInfoPtr pdf_info ( ) const
inline

Get PDF information.

Definition at line 137 of file include/HepMC/GenEvent.h.

◆ pdf_info() [2/2]

const GenPdfInfoPtr pdf_info ( ) const
inline

Get PDF information.

Definition at line 137 of file build/outputs/include/HepMC/GenEvent.h.

◆ read_data() [1/2]

void read_data ( const GenEventData data)

◆ read_data() [2/2]

void read_data ( const GenEventData data)

Fill GenEvent based on GenEventData.

◆ remove_attribute() [1/2]

void remove_attribute ( const string &  name,
int  id = 0 
)

Remove attribute.

◆ remove_attribute() [2/2]

void remove_attribute ( const string &  name,
int  id = 0 
)

Remove attribute.

Examples:
basic_tree.cc.

Definition at line 398 of file GenEvent.cc.

◆ remove_particle() [1/2]

void remove_particle ( GenParticlePtr  v)

Remove particle from the event.

This function will remove whole sub-tree starting from this particle if it is the only incoming particle of this vertex. It will also production vertex of this particle if this vertex has no more outgoing particles

Examples:
basic_tree.cc.

Definition at line 78 of file GenEvent.cc.

References GenEvent::m_attributes, GenEvent::m_particles, and GenEvent::remove_vertex().

◆ remove_particle() [2/2]

void remove_particle ( GenParticlePtr  v)

Remove particle from the event.

This function will remove whole sub-tree starting from this particle if it is the only incoming particle of this vertex. It will also production vertex of this particle if this vertex has no more outgoing particles

◆ remove_particles() [1/2]

void remove_particles ( std::vector< GenParticlePtr v)

Remove a set of particles.

This function follows rules of GenEvent::remove_particle to remove a list of particles from the event.

Todo:
Currently the only optimization is sort by id in ascending order. Needs better optimization!
Examples:
basic_tree.cc.

Definition at line 163 of file GenEvent.cc.

References GenEvent::remove_particle().

◆ remove_particles() [2/2]

void remove_particles ( std::vector< GenParticlePtr v)

Remove a set of particles.

This function follows rules of GenEvent::remove_particle to remove a list of particles from the event.

◆ remove_vertex() [1/2]

void remove_vertex ( GenVertexPtr  v)

Remove vertex from the event.

This will remove all sub-trees of all outgoing particles of this vertex

Todo:
Optimize. Currently each particle/vertex is erased separately

Definition at line 174 of file GenEvent.cc.

References GenEvent::m_attributes, GenEvent::m_vertices, and GenEvent::remove_particle().

◆ remove_vertex() [2/2]

void remove_vertex ( GenVertexPtr  v)

Remove vertex from the event.

This will remove all sub-trees of all outgoing particles of this vertex

Todo:
Optimize. Currently each particle/vertex is erased separately

◆ reserve() [1/2]

void reserve ( unsigned int  particles,
unsigned int  vertices = 0 
)

Reserve memory for particles and vertices.

Helps optimize event creation when size of the event is known beforehand

Definition at line 329 of file GenEvent.cc.

◆ reserve() [2/2]

void reserve ( unsigned int  particles,
unsigned int  vertices = 0 
)

Reserve memory for particles and vertices.

Helps optimize event creation when size of the event is known beforehand

◆ run_info() [1/2]

shared_ptr<GenRunInfo> run_info ( ) const
inline

Get a pointer to the the GenRunInfo object.

Examples:
class_example_write.cc.

Definition at line 103 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_run_info.

◆ run_info() [2/2]

shared_ptr<GenRunInfo> run_info ( ) const
inline

Get a pointer to the the GenRunInfo object.

Definition at line 103 of file include/HepMC/GenEvent.h.

References GenEvent::m_run_info.

◆ set_beam_particles() [1/4]

void set_beam_particles ( const GenParticlePtr p1,
const GenParticlePtr p2 
)

Set incoming beam particles.

Deprecated:
Backward compatibility
Todo:
Set/require status = 4 at the same time?

◆ set_beam_particles() [2/4]

void set_beam_particles ( const GenParticlePtr p1,
const GenParticlePtr p2 
)

Set incoming beam particles.

Deprecated:
Backward compatibility
Todo:
Set/require status = 4 at the same time?
Todo:
Require/set status = 4

Definition at line 541 of file GenEvent.cc.

◆ set_beam_particles() [3/4]

void set_beam_particles ( const std::pair< GenParticlePtr, GenParticlePtr > &  p)

Set incoming beam particles.

Deprecated:
Backward compatibility
Todo:
Set/require status = 4 at the same time?

◆ set_beam_particles() [4/4]

void set_beam_particles ( const std::pair< GenParticlePtr, GenParticlePtr > &  p)

Set incoming beam particles.

Deprecated:
Backward compatibility
Todo:
Set/require status = 4 at the same time?

◆ set_cross_section() [1/4]

void set_cross_section ( const GenCrossSectionPtr cs)
inline

Set cross-section information.

Definition at line 144 of file include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_cross_section() [2/4]

void set_cross_section ( const GenCrossSectionPtr cs)
inline

Set cross-section information.

Definition at line 144 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_cross_section() [3/4]

void set_cross_section ( GenCrossSection cs)

Set cross-section information by raw pointer.

Deprecated:
Use GenEvent::set_cross_section( GenCrossSectionPtr cs) instead

◆ set_cross_section() [4/4]

void set_cross_section ( GenCrossSection cs)

Set cross-section information by raw pointer.

Deprecated:
Use GenEvent::set_cross_section( GenCrossSectionPtr cs) instead

◆ set_event_number() [1/2]

void set_event_number ( int  num)
inline

Set event number.

Examples:
LHEF_example_cat.cc.

Definition at line 114 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_event_number.

◆ set_event_number() [2/2]

void set_event_number ( int  num)
inline

Set event number.

Definition at line 114 of file include/HepMC/GenEvent.h.

References GenEvent::m_event_number.

◆ set_heavy_ion() [1/4]

void set_heavy_ion ( const GenHeavyIonPtr hi)
inline

Set heavy ion generator additional information.

Definition at line 134 of file include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_heavy_ion() [2/4]

void set_heavy_ion ( const GenHeavyIonPtr hi)
inline

Set heavy ion generator additional information.

Definition at line 134 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_heavy_ion() [3/4]

void set_heavy_ion ( GenHeavyIon hi)

Set heavy ion generator additional information by raw pointer.

Deprecated:
Use GenEvent::set_heavy_ion( GenHeavyIonPtr hi) instead

◆ set_heavy_ion() [4/4]

void set_heavy_ion ( GenHeavyIon hi)

Set heavy ion generator additional information by raw pointer.

Deprecated:
Use GenEvent::set_heavy_ion( GenHeavyIonPtr hi) instead

◆ set_pdf_info() [1/4]

void set_pdf_info ( const GenPdfInfoPtr pi)
inline

Set PDF information.

Definition at line 139 of file include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_pdf_info() [2/4]

void set_pdf_info ( const GenPdfInfoPtr pi)
inline

Set PDF information.

Definition at line 139 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::add_attribute().

◆ set_pdf_info() [3/4]

void set_pdf_info ( GenPdfInfo pi)

Set PDF information by raw pointer.

Deprecated:
Use GenEvent::set_pdf_info( GenPdfInfoPtr pi) instead

◆ set_pdf_info() [4/4]

void set_pdf_info ( GenPdfInfo pi)

Set PDF information by raw pointer.

Deprecated:
Use GenEvent::set_pdf_info( GenPdfInfoPtr pi) instead

◆ set_run_info() [1/2]

void set_run_info ( shared_ptr< GenRunInfo run)
inline

Set the GenRunInfo object by smart pointer.

Definition at line 107 of file include/HepMC/GenEvent.h.

References GenEvent::m_run_info.

◆ set_run_info() [2/2]

void set_run_info ( shared_ptr< GenRunInfo run)
inline

Set the GenRunInfo object by smart pointer.

Examples:
class_example_read.cc.

Definition at line 107 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_run_info.

◆ set_units() [1/2]

void set_units ( Units::MomentumUnit  new_momentum_unit,
Units::LengthUnit  new_length_unit 
)

Change event units Converts event from current units to new ones.

◆ set_units() [2/2]

void set_units ( Units::MomentumUnit  new_momentum_unit,
Units::LengthUnit  new_length_unit 
)

Change event units Converts event from current units to new ones.

Definition at line 335 of file GenEvent.cc.

References FourVector::is_zero(), and SmartPointer< T >::m_data.

◆ shift_position_by() [1/2]

void shift_position_by ( const FourVector delta)

Shift position of all vertices in the event by delta.

Examples:
basic_tree.cc.

Definition at line 363 of file GenEvent.cc.

◆ shift_position_by() [2/2]

void shift_position_by ( const FourVector delta)

Shift position of all vertices in the event by delta.

◆ shift_position_to() [1/2]

void shift_position_to ( const FourVector newpos)
inline

Shift position of all vertices in the event to op.

Definition at line 162 of file include/HepMC/GenEvent.h.

References GenEvent::event_pos(), and GenEvent::shift_position_by().

◆ shift_position_to() [2/2]

void shift_position_to ( const FourVector newpos)
inline

Shift position of all vertices in the event to op.

Definition at line 162 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::event_pos(), and GenEvent::shift_position_by().

◆ use_units() [1/2]

void use_units ( Units::MomentumUnit  new_momentum_unit,
Units::LengthUnit  new_length_unit 
)
inline

Converts event from current units to new ones (compatibility name)

Definition at line 126 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::set_units().

◆ use_units() [2/2]

void use_units ( Units::MomentumUnit  new_momentum_unit,
Units::LengthUnit  new_length_unit 
)
inline

Converts event from current units to new ones (compatibility name)

Definition at line 126 of file include/HepMC/GenEvent.h.

References GenEvent::set_units().

◆ valid_beam_particles() [1/2]

bool valid_beam_particles ( ) const

Test to see if we have exactly two particles in event_pos() vertex.

Deprecated:
Backward compatibility

◆ valid_beam_particles() [2/2]

bool valid_beam_particles ( ) const

Test to see if we have exactly two particles in event_pos() vertex.

Deprecated:
Backward compatibility
Todo:
Change this definition to require status = 4... and in principle there don't have to be two of them

Definition at line 527 of file GenEvent.cc.

◆ vertices() [1/4]

const std::vector<GenVertexPtr>& vertices ( ) const
inline

Get list of vertices (const)

Definition at line 59 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices() [2/4]

const std::vector<GenVertexPtr>& vertices ( ) const
inline

Get list of vertices (const)

Definition at line 59 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices() [3/4]

std::vector<GenVertexPtr>& vertices ( )
inline

Get/set list of vertices (non-const)

Definition at line 65 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices() [4/4]

std::vector<GenVertexPtr>& vertices ( )
inline

Get/set list of vertices (non-const)

Definition at line 65 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_begin() [1/4]

vertex_iterator vertices_begin ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 312 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_begin() [2/4]

vertex_iterator vertices_begin ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 312 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_begin() [3/4]

vertex_const_iterator vertices_begin ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 320 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_begin() [4/4]

vertex_const_iterator vertices_begin ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 320 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_end() [1/4]

vertex_iterator vertices_end ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 316 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_end() [2/4]

vertex_iterator vertices_end ( )
inline
Deprecated:
Backward compatibility iterators

Definition at line 316 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_end() [3/4]

vertex_const_iterator vertices_end ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 324 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ vertices_end() [4/4]

vertex_const_iterator vertices_end ( ) const
inline
Deprecated:
Backward compatibility iterators

Definition at line 324 of file include/HepMC/GenEvent.h.

References GenEvent::m_vertices.

◆ weight() [1/4]

double weight ( size_t  index = 0) const
inline

Get event weight accessed by index (or the canonical/first one if there is no argument)

Note
It's the user's responsibility to ensure that the given index exists!

Definition at line 79 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::weights().

◆ weight() [2/4]

double weight ( size_t  index = 0) const
inline

Get event weight accessed by index (or the canonical/first one if there is no argument)

Note
It's the user's responsibility to ensure that the given index exists!

Definition at line 79 of file include/HepMC/GenEvent.h.

References GenEvent::weights().

◆ weight() [3/4]

double weight ( const std::string &  name) const
inline

Get event weight accessed by weight name

Note
Requires there to be an attached GenRunInfo, otherwise will throw an exception
It's the user's responsibility to ensure that the given name exists!

Definition at line 83 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::run_info(), and GenEvent::weight().

◆ weight() [4/4]

double weight ( const std::string &  name) const
inline

Get event weight accessed by weight name

Note
Requires there to be an attached GenRunInfo, otherwise will throw an exception
It's the user's responsibility to ensure that the given name exists!

Definition at line 83 of file include/HepMC/GenEvent.h.

References GenEvent::run_info(), and GenEvent::weight().

◆ weight_names() [1/2]

const std::vector<std::string>& weight_names ( const std::string &  ) const
inline

Get event weight names, if there are some

Note
Requires there to be an attached GenRunInfo with registered weight names, otherwise will throw an exception

Definition at line 89 of file include/HepMC/GenEvent.h.

References GenEvent::run_info().

◆ weight_names() [2/2]

const std::vector<std::string>& weight_names ( const std::string &  ) const
inline

Get event weight names, if there are some

Note
Requires there to be an attached GenRunInfo with registered weight names, otherwise will throw an exception

Definition at line 89 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::run_info().

◆ weights() [1/4]

const std::vector<double>& weights ( ) const
inline

Get event weight values as a vector.

Definition at line 74 of file include/HepMC/GenEvent.h.

References GenEvent::m_weights.

◆ weights() [2/4]

const std::vector<double>& weights ( ) const
inline

Get event weight values as a vector.

Examples:
LHEF_example_cat.cc.

Definition at line 74 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_weights.

◆ weights() [3/4]

std::vector<double>& weights ( )
inline

Get event weights as a vector (non-const)

Definition at line 76 of file build/outputs/include/HepMC/GenEvent.h.

References GenEvent::m_weights.

◆ weights() [4/4]

std::vector<double>& weights ( )
inline

Get event weights as a vector (non-const)

Definition at line 76 of file include/HepMC/GenEvent.h.

References GenEvent::m_weights.

◆ write_data() [1/2]

void write_data ( GenEventData data) const

◆ write_data() [2/2]

void write_data ( GenEventData data) const

Fill GenEventData object.

Field Documentation

◆ m_attributes

std::map< string, std::map< int, shared_ptr< Attribute > > > m_attributes
mutableprivate

Map of event, particle and vertex attributes.

Keys are name and ID (0 = event, <0 = vertex, >0 = particle)

Definition at line 419 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_event_number

int m_event_number
private

Event number

Todo:
Move to attributes?

Event number

Todo:
Move to attributes?

Definition at line 400 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_length_unit

Units::LengthUnit m_length_unit
private

Length unit.

Definition at line 408 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_momentum_unit

Units::MomentumUnit m_momentum_unit
private

Momentum unit.

Definition at line 406 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_particles

std::vector< GenParticlePtr > m_particles
private

List of particles.

Definition at line 394 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_rootvertex

GenVertexPtr m_rootvertex
private

The root vertex is stored outside the normal vertices list to block user access to it.

Definition at line 411 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_run_info

shared_ptr< GenRunInfo > m_run_info
private

Global run information.

Definition at line 414 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_vertices

std::vector< GenVertexPtr > m_vertices
private

List of vertices.

Definition at line 396 of file build/outputs/include/HepMC/GenEvent.h.

◆ m_weights

std::vector< double > m_weights
private

Event weights.

Definition at line 403 of file build/outputs/include/HepMC/GenEvent.h.


The documentation for this class was generated from the following files: