HepMC3 event record library
|
Interface for validatio to Pythia.
Definition at line 34 of file PythiaValidationTool.h.
#include <PythiaValidationTool.h>
Public Member Functions | |
PythiaValidationTool (const std::string &filename) | |
Constructor. | |
const std::string | name () |
Get name of the tool. | |
const std::string | long_name () |
Get long name of the tool. | |
bool | tool_modifies_event () |
Get information if this tool modifies the event. | |
Timer * | timer () |
Get timer for this tool (if this tool is being timed) | |
void | initialize () |
Initialize. | |
int | process (GenEvent &hepmc) |
Process event. | |
void | finalize () |
Finalize. | |
Private Attributes | |
Pythia8::Pythia | m_pythia |
Pythia8 instance. | |
std::string | m_filename |
Used file. | |
Timer | m_timer |
Timer. | |
PythiaValidationTool | ( | const std::string & | filename | ) |
Constructor.
Definition at line 8 of file PythiaValidationTool.cc.
References m_filename, and m_pythia.
|
virtual |
Finalize.
Implements ValidationTool.
Definition at line 26 of file PythiaValidationTool.cc.
References m_pythia.
|
virtual |
Initialize.
Implements ValidationTool.
Definition at line 12 of file PythiaValidationTool.cc.
References m_pythia.
|
inlinevirtual |
Get long name of the tool.
Reimplemented from ValidationTool.
Definition at line 39 of file PythiaValidationTool.h.
References m_filename, and name().
|
inlinevirtual |
Get name of the tool.
Implements ValidationTool.
Definition at line 38 of file PythiaValidationTool.h.
|
virtual |
Process event.
Implements ValidationTool.
Definition at line 16 of file PythiaValidationTool.cc.
References m_pythia, m_timer, and Timer::start().
|
inlinevirtual |
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 from ValidationTool.
Definition at line 42 of file PythiaValidationTool.h.
References m_timer.
|
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 41 of file PythiaValidationTool.h.
|
private |
Used file.
Definition at line 50 of file PythiaValidationTool.h.
|
private |
Pythia8 instance.
Definition at line 49 of file PythiaValidationTool.h.
|
private |
Definition at line 51 of file PythiaValidationTool.h.