HepMC3 event record library
TauolaValidationTool.h
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
5//
6#ifndef TAUOLA_VALIDATION_TOOL_H
7#define TAUOLA_VALIDATION_TOOL_H
8
9#ifdef HEPMC2
10#include "Tauola/TauolaHepMCEvent.h"
11#include "HepMC/GenEvent.h"
12#else
13#include "Tauola/TauolaHepMC3Event.h"
14#include "HepMC3/GenEvent.h"
15#include "HepMC3/Selector.h"
16#endif // ifdef HEPMC2
17
18#include "ValidationTool.h"
19#include "Timer.h"
20
21#include "Tauola/Tauola.h"
22#include "Tauola/Log.h"
23/// @class TauolaValidationTool
24/// @brief Interface for validatio to Tauola
26public:
27 TauolaValidationTool():m_timer("Tauola++ processing time") {}
28
29public:
30 const std::string name() { return "Tauola++"; }
31 bool tool_modifies_event() { return true; }
32 Timer* timer() { return &m_timer; }
33
34 void initialize();
35 int process(GenEvent &hepmc);
36 void finalize();
37
38private:
39 Timer m_timer; ///< Timer
40};
41
42#endif
Definition of class GenEvent.
definition of /b Selector class
Stores event-related information.
Definition GenEvent.h:42
Interface for validatio to Tauola.
void initialize()
Initialize.
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)
int process(GenEvent &hepmc)
Process event.
const std::string name()
Get name of the tool.
Used to benchmark MC generators.
Definition Timer.h:38
Virtual Interface to validation tools.