![]() |
Belle II Software
light-2303-iriomote
|
Class to stores ExtraInfo of the whole event. More...
#include <EventExtraInfo.h>


Public Member Functions | |
| float | getExtraInfo (const std::string &name) const |
| Return given value if set. More... | |
| bool | hasExtraInfo (const std::string &name) const |
| Return whether the extra info with the given name is set. | |
| void | removeExtraInfo () |
| Removes extra info from event. | |
| void | addExtraInfo (const std::string &name, float value) |
| Sets the user-defined data of given name to the given value. More... | |
| void | setExtraInfo (const std::string &name, float value) |
| Sets the user-defined data of given name to the given value. More... | |
| std::string | getInfoHTML () const |
| Return a short summary of this object's contents in HTML format. | |
| std::vector< std::string > | getNames () const |
| Grab the names in this event extra info (for printing etc) | |
Private Member Functions | |
| ClassDef (EventExtraInfo, 2) | |
| Class to store event extra info. | |
Private Attributes | |
| std::map< std::string, float > | eventExtraInfo |
| map variable names to values. | |
Class to stores ExtraInfo of the whole event.
Used by TMVAExpert to save expert output for a event-level training
Definition at line 25 of file EventExtraInfo.h.
| void addExtraInfo | ( | const std::string & | name, |
| float | value | ||
| ) |
Sets the user-defined data of given name to the given value.
throws std::out_of_range if variable is already set.
Definition at line 34 of file EventExtraInfo.cc.
| float getExtraInfo | ( | const std::string & | name | ) | const |
Return given value if set.
throws std::out_of_range if variable is not set.
Definition at line 16 of file EventExtraInfo.cc.
| void setExtraInfo | ( | const std::string & | name, |
| float | value | ||
| ) |
Sets the user-defined data of given name to the given value.
Does not throw anything if the value is already set. Overrides existing values
Definition at line 42 of file EventExtraInfo.cc.