HepMC3 event record library
Public Member Functions
ValidationTool Class Referenceabstract

Detailed Description

Virtual Interface to validation tools.

Definition at line 26 of file ValidationTool.h.

#include <ValidationTool.h>

+ Inheritance diagram for ValidationTool:

Public Member Functions

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

Constructor & Destructor Documentation

◆ ~ValidationTool()

virtual ~ValidationTool ( )
inlinevirtual

Virtual destructor

Definition at line 32 of file ValidationTool.h.

Member Function Documentation

◆ finalize()

virtual void finalize ( )
pure virtual

◆ initialize()

virtual void initialize ( )
pure virtual

◆ long_name()

virtual const std::string long_name ( )
inlinevirtual

Get long name of the tool.

Reimplemented in OutputValidationTool, and PythiaValidationTool.

Definition at line 57 of file ValidationTool.h.

◆ name()

virtual const std::string name ( )
pure virtual

◆ process()

virtual int process ( GenEvent hepmc)
pure virtual

◆ timer()

virtual class 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 in OutputValidationTool, PhotosValidationTool, PythiaValidationTool, and TauolaValidationTool.

Definition at line 65 of file ValidationTool.h.

◆ tool_modifies_event()

virtual bool tool_modifies_event ( )
pure virtual

Get information if this tool modifies the event.

Tools that do not modify event will be ignored during event printing and momentum conservation checks

Implemented in McTesterValidationTool, OutputValidationTool, PhotosValidationTool, PythiaValidationTool, SimpleEventTool, and TauolaValidationTool.


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