HepMC3 event record library
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 #include "HepMC3/Selector.h"
15 #endif // ifdef HEPMC2
16 
17 #include "ValidationTool.h"
18 /// @class SimpleEventTool
19 /// @brief Simple validation
21 public:
22  SimpleEventTool() {}
23 
24  const std::string name() { return "SimpleEventTool"; }
25  bool tool_modifies_event() { return true; }
26 
27  void initialize() {}
28  int process(GenEvent &hepmc);
29  void finalize() {}
30 
31 };
32 
33 #endif
ValidationTool
Virtual Interface to validation tools.
Definition: ValidationTool.h:26
HepMC3::GenEvent
Stores event-related information.
Definition: GenEvent.h:42
GenVertex.h
Definition of class GenVertex.
GenParticle.h
Definition of class GenParticle.
SimpleEventTool::name
const std::string name()
Get name of the tool.
Definition: SimpleEventTool.h:24
SimpleEventTool::tool_modifies_event
bool tool_modifies_event()
Get information if this tool modifies the event.
Definition: SimpleEventTool.h:25
SimpleEventTool
Simple validation.
Definition: SimpleEventTool.h:20
SimpleEventTool::initialize
void initialize()
Initialize.
Definition: SimpleEventTool.h:27
SimpleEventTool::process
int process(GenEvent &hepmc)
Process event.
Definition: SimpleEventTool.cc:8
SimpleEventTool::finalize
void finalize()
Finalize.
Definition: SimpleEventTool.h:29
Selector.h
definition of /b Selector class