HepMC3 event record library
Public Member Functions | Private Attributes
PythiaValidationTool Class Reference

Detailed Description

Definition at line 28 of file PythiaValidationTool.h.

+ Inheritance diagram for PythiaValidationTool:
+ Collaboration diagram for PythiaValidationTool:

Public Member Functions

 PythiaValidationTool (const std::string &filename)
 
const std::string name ()
 Get name of the tool. More...
 
const std::string long_name ()
 Get long name of the tool. More...
 
bool tool_modifies_event ()
 Get information if this tool modifies the event. More...
 
Timertimer ()
 Get timer for this tool (if this tool is being timed) More...
 
void initialize ()
 Initialize. More...
 
int process (GenEvent &hepmc)
 Process event. More...
 
void finalize ()
 Finalize. More...
 

Private Attributes

Pythia8::Pythia m_pythia
 
std::string m_filename
 
Timer m_timer
 

Member Function Documentation

◆ finalize()

void finalize ( )
virtual

Finalize.

Implements ValidationTool.

Definition at line 27 of file PythiaValidationTool.cc.

◆ initialize()

void initialize ( )
virtual

Initialize.

Implements ValidationTool.

Definition at line 12 of file PythiaValidationTool.cc.

◆ long_name()

const std::string long_name ( )
inlinevirtual

Get long name of the tool.

Reimplemented from ValidationTool.

Definition at line 33 of file PythiaValidationTool.h.

References name().

◆ name()

const std::string name ( )
inlinevirtual

Get name of the tool.

Implements ValidationTool.

Definition at line 32 of file PythiaValidationTool.h.

◆ process()

int process ( GenEvent hepmc)
virtual

Process event.

Implements ValidationTool.

Definition at line 16 of file PythiaValidationTool.cc.

◆ timer()

Timer* timer ( )
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 36 of file PythiaValidationTool.h.

◆ tool_modifies_event()

bool tool_modifies_event ( )
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 35 of file PythiaValidationTool.h.


The documentation for this class was generated from the following files: