ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
TruthIO
src
HepMcReaderTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// HepMcReaderTool.h
6
// Header file for class HepMcReaderTool
7
// Author: S.Binet<binet@cern.ch>
9
#ifndef MCPARTICLETOOLS_HEPMCREADERTOOL_H
10
#define MCPARTICLETOOLS_HEPMCREADERTOOL_H 1
11
12
// STL includes
13
#include <string>
14
15
// FrameWork includes
16
#include "GaudiKernel/ServiceHandle.h"
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
19
// McParticleKernel includes
20
#include "
TruthIO/IIOHepMcTool.h
"
21
22
// Forward declaration
23
#include "
AtlasHepMC/GenEvent_fwd.h
"
24
#include "
AtlasHepMC/IO_GenEvent.h
"
25
26
27
class
HepMcReaderTool
:
public
extends<AthAlgTool, IIOHepMcTool>
28
{
29
30
public
:
31
33
HepMcReaderTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent );
34
36
virtual
~HepMcReaderTool
();
37
38
// Athena algorithm's Hooks
39
StatusCode
initialize
();
40
StatusCode
execute
();
41
StatusCode
finalize
();
42
45
StatusCode
read
(
HepMC::GenEvent
* evt );
46
47
protected
:
48
51
HepMcReaderTool
();
52
56
void
setupFrontend
( Gaudi::Details::PropertyBase& ioFrontendURL );
57
58
protected
:
59
65
StringProperty
m_ioFrontendURL
;
66
69
StringProperty
m_mcEventsOutputName
;
70
73
std::shared_ptr<HepMC3::Reader>
m_ioFrontend
{
nullptr
};
74
75
};
76
#endif
//> MCPARTICLETOOLS_HEPMCREADERTOOL_H
AthAlgTool.h
GenEvent_fwd.h
IIOHepMcTool.h
IO_GenEvent.h
HepMcReaderTool::setupFrontend
void setupFrontend(Gaudi::Details::PropertyBase &ioFrontendURL)
Method to configure the front-end to read out the HepMC::GenEvent.
Definition
HepMcReaderTool.cxx:98
HepMcReaderTool::initialize
StatusCode initialize()
Athena Algorithm's Hooks.
Definition
HepMcReaderTool.cxx:50
HepMcReaderTool::m_mcEventsOutputName
StringProperty m_mcEventsOutputName
Location of the McEventCollection to be read out.
Definition
HepMcReaderTool.h:69
HepMcReaderTool::read
StatusCode read(HepMC::GenEvent *evt)
Process the HepMC::GenEvent through the I/O frontend.
Definition
HepMcReaderTool.cxx:92
HepMcReaderTool::m_ioFrontend
std::shared_ptr< HepMC3::Reader > m_ioFrontend
Abstract base class for the back-end.
Definition
HepMcReaderTool.h:73
HepMcReaderTool::m_ioFrontendURL
StringProperty m_ioFrontendURL
URL of the I/O front-end (only "ASCII" for now...) glued with the name of the input file name.
Definition
HepMcReaderTool.h:65
HepMcReaderTool::finalize
StatusCode finalize()
Definition
HepMcReaderTool.cxx:67
HepMcReaderTool::execute
StatusCode execute()
Definition
HepMcReaderTool.cxx:73
HepMcReaderTool::HepMcReaderTool
HepMcReaderTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
HepMcReaderTool.cxx:29
HepMcReaderTool::~HepMcReaderTool
virtual ~HepMcReaderTool()
Destructor:
Definition
HepMcReaderTool.cxx:43
HepMcReaderTool::HepMcReaderTool
HepMcReaderTool()
Default constructor:
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
type
Generated on
for ATLAS Offline Software by
1.17.0