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

Detailed Description

Interface for validatio to Pythia.

Definition at line 34 of file PythiaValidationTool.h.

#include <PythiaValidationTool.h>

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

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.
 
Timertimer ()
 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.
 

Constructor & Destructor Documentation

◆ PythiaValidationTool()

PythiaValidationTool ( const std::string &  filename)

Constructor.

Definition at line 8 of file PythiaValidationTool.cc.

References m_filename, and m_pythia.

Member Function Documentation

◆ finalize()

void finalize ( )
virtual

Finalize.

Implements ValidationTool.

Definition at line 26 of file PythiaValidationTool.cc.

References m_pythia.

◆ initialize()

void initialize ( )
virtual

Initialize.

Implements ValidationTool.

Definition at line 12 of file PythiaValidationTool.cc.

References m_pythia.

◆ long_name()

const std::string long_name ( )
inlinevirtual

Get long name of the tool.

Reimplemented from ValidationTool.

Definition at line 39 of file PythiaValidationTool.h.

References m_filename, and name().

◆ name()

const std::string name ( )
inlinevirtual

Get name of the tool.

Implements ValidationTool.

Definition at line 38 of file PythiaValidationTool.h.

◆ process()

int process ( GenEvent hepmc)
virtual

Process event.

Implements ValidationTool.

Definition at line 16 of file PythiaValidationTool.cc.

References m_pythia, m_timer, and Timer::start().

◆ 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 42 of file PythiaValidationTool.h.

References m_timer.

◆ 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 41 of file PythiaValidationTool.h.

Field Documentation

◆ m_filename

std::string m_filename
private

Used file.

Definition at line 50 of file PythiaValidationTool.h.

◆ m_pythia

Pythia8::Pythia m_pythia
private

Pythia8 instance.

Definition at line 49 of file PythiaValidationTool.h.

◆ m_timer

Timer m_timer
private

Timer.

Definition at line 51 of file PythiaValidationTool.h.


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