ATLAS Offline Software
Loading...
Searching...
No Matches
Generators
TruthIO
src
HepMcFloatWriterTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// HepMcFloatWriterTool.h
6
// Header file for class HepMcFloatWriterTool
7
// Author: S.Binet<binet@cern.ch>
9
#ifndef MCPARTICLETOOLS_HEPMCFLOATWRITERTOOL_H
10
#define MCPARTICLETOOLS_HEPMCFLOATWRITERTOOL_H
11
12
// STL includes
13
#include <string>
14
#include <iosfwd>
15
16
// FrameWork includes
17
#include "GaudiKernel/ServiceHandle.h"
18
#include "
AthenaBaseComps/AthAlgTool.h
"
19
20
// McParticleKernel includes
21
#include "
TruthIO/IIOHepMcTool.h
"
22
23
// Forward declaration
24
#include "
AtlasHepMC/GenEvent_fwd.h
"
25
26
class
HepMcFloatWriterTool
:
public
extends<AthAlgTool, IIOHepMcTool>
27
{
28
29
public
:
30
32
HepMcFloatWriterTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent );
33
35
virtual
~HepMcFloatWriterTool
();
36
37
// Athena algorithm's Hooks
38
StatusCode
initialize
();
39
StatusCode
execute
();
40
StatusCode
finalize
();
41
44
StatusCode
write
(
const
HepMC::GenEvent
* evt );
45
46
protected
:
47
50
HepMcFloatWriterTool
();
51
55
void
setupBackend
( Gaudi::Details::PropertyBase& ioBackendURL );
56
57
protected
:
58
64
StringProperty
m_ioBackendURL
;
65
70
StringProperty
m_mcEventsName
;
71
74
std::ostream*
m_ioBackend
;
75
};
76
77
#endif
//> MCPARTICLETOOLS_HEPMCFLOATWRITERTOOL_H
AthAlgTool.h
GenEvent_fwd.h
IIOHepMcTool.h
HepMcFloatWriterTool::execute
StatusCode execute()
Definition
HepMcFloatWriterTool.cxx:92
HepMcFloatWriterTool::m_ioBackendURL
StringProperty m_ioBackendURL
URL of the I/O back-end (only "ASCII" for now...) glued with the name of the output file name.
Definition
HepMcFloatWriterTool.h:64
HepMcFloatWriterTool::initialize
StatusCode initialize()
Athena Algorithm's Hooks.
Definition
HepMcFloatWriterTool.cxx:64
HepMcFloatWriterTool::HepMcFloatWriterTool
HepMcFloatWriterTool()
Default constructor:
HepMcFloatWriterTool::m_mcEventsName
StringProperty m_mcEventsName
Location of the McEventCollection to be written out If there is more than 1 HepMC::GenEvent in the Mc...
Definition
HepMcFloatWriterTool.h:70
HepMcFloatWriterTool::~HepMcFloatWriterTool
virtual ~HepMcFloatWriterTool()
Destructor:
Definition
HepMcFloatWriterTool.cxx:52
HepMcFloatWriterTool::setupBackend
void setupBackend(Gaudi::Details::PropertyBase &ioBackendURL)
Method to configure the back-end to write out the HepMC::GenEvent.
Definition
HepMcFloatWriterTool.cxx:214
HepMcFloatWriterTool::HepMcFloatWriterTool
HepMcFloatWriterTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
HepMcFloatWriterTool.cxx:29
HepMcFloatWriterTool::write
StatusCode write(const HepMC::GenEvent *evt)
Process the HepMC::GenEvent through the I/O backend.
Definition
HepMcFloatWriterTool.cxx:115
HepMcFloatWriterTool::finalize
StatusCode finalize()
Definition
HepMcFloatWriterTool.cxx:86
HepMcFloatWriterTool::m_ioBackend
std::ostream * m_ioBackend
Abstract base class for the back-end.
Definition
HepMcFloatWriterTool.h:74
HepMC::GenEvent
HepMC3::GenEvent GenEvent
Definition
GenEvent.h:39
type
Generated on
for ATLAS Offline Software by
1.16.1