HepMC3 event record library
|
The following is a list of the new features available in HepMC3
###########################################################################
###########################################################################
See modules section for descriptions of new modules, such as ROOT I/O, Search Engine and Attributes.
###########################################################################
###########################################################################
A new class has been provided to store run-level information, such as weight names, names and description of tools used to generate the event, global attributes such as LHE run information or any other run information provided by user. See HepMC::GenRunInfo class description for details.
###########################################################################
###########################################################################
See examples section for examples of their use.
###########################################################################
########################################################################### ###########################################################################
###########################################################################
To determine if field HepMC3::GenParticle::generated_mass() is set use:
Note that if HepMC3::GenParticle::generated_mass() is not set, call to this function will return mass calculated from 4-momentum using HepMC3::FourVector.m()
###########################################################################
###########################################################################
GenEvent and GenVertex containers are now of std::vector type. This greatly simplifies iteration over them
e.g. (c++11):
###########################################################################
###########################################################################
The relations between vertices and particles in GenEventData are encoded via members links1 and links2, wich are std::vector<int> containing object ids. Direct manipulations with links1 and links2 can be useful. For instance, when the events are saved in ROOT format, one can extract the information from links1 and links2 without reading whole event. In case links1[i] is particle, links2[i] is end vertex. In case links1[i] is vertex, links2[i] is outgoing particle. An example of usage is given below.
Last update 27 Oct 2020