HepMC3 event record library
test
SimpleEventTool.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 SIMPLE_EVENT_TOOL_H
7
#define SIMPLE_EVENT_TOOL_H
8
9
#ifdef HEPMC2
10
#include "HepMC/IO_GenEvent.h"
11
#else
12
#include "
HepMC3/GenVertex.h
"
13
#include "
HepMC3/GenParticle.h
"
14
#endif
// ifdef HEPMC2
15
16
#include "ValidationTool.h"
17
/// @class SimpleEventTool
18
/// @brief Simple validation
19
class
SimpleEventTool
:
public
ValidationTool
{
20
public
:
21
SimpleEventTool
() {}
22
23
const
std::string
name
() {
return
"SimpleEventTool"
; }
24
bool
tool_modifies_event
() {
return
true
; }
25
26
void
initialize
() {}
27
int
process
(
GenEvent
&hepmc);
28
void
finalize
() {}
29
30
};
31
32
#endif
GenParticle.h
Definition of class GenParticle.
GenVertex.h
Definition of class GenVertex.
HepMC3::GenEvent
Stores event-related information.
Definition:
GenEvent.h:41
SimpleEventTool
Simple validation.
Definition:
SimpleEventTool.h:19
SimpleEventTool::initialize
void initialize()
Initialize.
Definition:
SimpleEventTool.h:26
SimpleEventTool::finalize
void finalize()
Finalize.
Definition:
SimpleEventTool.h:28
SimpleEventTool::tool_modifies_event
bool tool_modifies_event()
Get information if this tool modifies the event.
Definition:
SimpleEventTool.h:24
SimpleEventTool::process
int process(GenEvent &hepmc)
Process event.
Definition:
SimpleEventTool.cc:8
SimpleEventTool::name
const std::string name()
Get name of the tool.
Definition:
SimpleEventTool.h:23
ValidationTool
Virtual Interface to validation tools.
Definition:
ValidationTool.h:26
Generated on Wed Jan 18 2023 00:00:00 for HepMC3 event record library by
1.9.6