File: TauolaValidationTool.h

package info (click to toggle)
hepmc3 3.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 14,116 kB
  • sloc: fortran: 66,849; cpp: 13,604; ansic: 1,374; xml: 109; sh: 72; makefile: 33
file content (42 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -*- C++ -*-
//
// This file is part of HepMC
// Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
//
#ifndef TAUOLA_VALIDATION_TOOL_H
#define TAUOLA_VALIDATION_TOOL_H

#ifdef HEPMC2
#include "Tauola/TauolaHepMCEvent.h"
#include "HepMC/GenEvent.h"
#else
#include "Tauola/TauolaHepMC3Event.h"
#include "HepMC3/GenEvent.h"
#include "HepMC3/Selector.h"
#endif // ifdef HEPMC2

#include "ValidationTool.h"
#include "Timer.h"

#include "Tauola/Tauola.h"
#include "Tauola/Log.h"
/// @class TauolaValidationTool
/// @brief Interface for validatio to Tauola
class TauolaValidationTool : public ValidationTool {
public:
    TauolaValidationTool():m_timer("Tauola++ processing time") {}

public:
    const std::string name()     { return "Tauola++"; }
    bool   tool_modifies_event() { return true;       }
    Timer* timer()               { return &m_timer;   }

    void initialize();
    int  process(GenEvent &hepmc);
    void finalize();

private:
    Timer m_timer; ///< Timer
};

#endif