HepMC3 event record library
|
Simple validation.
Definition at line 19 of file SimpleEventTool.h.
#include <SimpleEventTool.h>
Public Member Functions | |
const std::string | name () |
Get name of the tool. | |
bool | tool_modifies_event () |
Get information if this tool modifies the event. | |
void | initialize () |
Initialize. | |
int | process (GenEvent &hepmc) |
Process event. | |
void | finalize () |
Finalize. | |
virtual const std::string | long_name () |
Get long name of the tool. | |
virtual class Timer * | timer () |
Get timer for this tool (if this tool is being timed) | |
|
inline |
Definition at line 21 of file SimpleEventTool.h.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
Get long name of the tool.
Reimplemented in OutputValidationTool, and PythiaValidationTool.
Definition at line 57 of file ValidationTool.h.
|
inlinevirtual |
|
virtual |
Process event.
Implements ValidationTool.
Definition at line 8 of file SimpleEventTool.cc.
References GenVertex::add_particle_in(), GenVertex::add_particle_out(), GenEvent::add_vertex(), FourVector::pz(), GenParticle::set_generated_mass(), FourVector::setE(), and FourVector::setPz().
|
inlinevirtualinherited |
Get timer for this tool (if this tool is being timed)
Note that normally the tool itself should not use the timer it provides However, if one want to exclude some part of initialization timer()->start() can be used to restart the timer per each event
Reimplemented in OutputValidationTool, PhotosValidationTool, PythiaValidationTool, and TauolaValidationTool.
Definition at line 65 of file ValidationTool.h.
|
inlinevirtual |
Get information if this tool modifies the event.
Tools that do not modify event will be ignored during event printing and momentum conservation checks
Implements ValidationTool.
Definition at line 24 of file SimpleEventTool.h.