|
HepMC3 event record library
|
Files | |
| file | LHEFAttributes.h |
| Definition of class HEPRUPAttribute and class HEPEUAttribute. | |
Data Structures | |
| class | AssociatedParticle |
| Attribute class allowing eg. a GenParticle to refer to another GenParticle. More... | |
| class | IntAttribute |
| Attribute that holds an Integer implemented as an int. More... | |
| class | Attribute |
| Base attribute class. More... | |
| class | LongAttribute |
| Attribute that holds an Integer implemented as a long int. More... | |
| class | DoubleAttribute |
| Attribute that holds a real number as a double. More... | |
| class | FloatAttribute |
| Attribute that holds a real number as a float. More... | |
| class | StringAttribute |
| Attribute that holds a string. More... | |
| class | CharAttribute |
| Attribute that holds an Character implemented as an int. More... | |
| class | LongLongAttribute |
| Attribute that holds an Integer implemented as a long long int. More... | |
| class | LongDoubleAttribute |
| Attribute that holds a real number as a long double. More... | |
| class | UIntAttribute |
| Attribute that holds an unsigned int. More... | |
| class | ULongAttribute |
| Attribute that holds an unsigned long. More... | |
| class | ULongLongAttribute |
| Attribute that holds an unsigned long long. More... | |
| class | BoolAttribute |
| Attribute that holds an Booleger implemented as an int. More... | |
| class | VectorCharAttribute |
| Attribute that holds a vector of characters of type char. More... | |
| class | VectorFloatAttribute |
| Attribute that holds a vector of real numbers of type float. More... | |
| class | VectorLongDoubleAttribute |
| Attribute that holds a vector of real numbers of type long double. More... | |
| class | VectorLongLongAttribute |
| Attribute that holds a vector of integers of type long long. More... | |
| class | VectorUIntAttribute |
| Attribute that holds a vector of unsigned integers of type unsigned int. More... | |
| class | VectorULongAttribute |
| Attribute that holds a vector of unsigned integers of type unsigned long. More... | |
| class | VectorULongLongAttribute |
| Attribute that holds a vector of integers of type unsigned long long. More... | |
| class | VectorIntAttribute |
| Attribute that holds a vector of integers of type int. More... | |
| class | VectorLongIntAttribute |
| Attribute that holds a vector of integers of type long int. More... | |
| class | VectorDoubleAttribute |
| Attribute that holds a vector of real numbers of type double. More... | |
| class | VectorStringAttribute |
| Attribute that holds a vector of type string. More... | |
| class | GenCrossSection |
| Stores additional information about cross-section. More... | |
| class | GenHeavyIon |
| Stores additional information about Heavy Ion generator. More... | |
| class | GenPdfInfo |
| Stores additional information about PDFs. More... | |
Attributes can be attached to GenEvent, GenParticle or GenVertex and they can have any format defined by the user (see Writing custom attributes). An attribute is accessed through a shared pointer and identified by its name.
Example of reading an attribute from the event:
Example of adding an attribute to the event:
Adding and getting attributes of a vertex or particle uses the same principles.
Any class that derives from HepMC::Attribute class can be used as an attribute that can be attached to the event, vertex or particle.
User has to provide two abstract methods from HepMC::Attribute used to parse the class content from/to string.
Example:
For other examples see attributes provided in the HepMC3 package.
Last update 27 Oct 2020