ATLAS Offline Software
Generators
TruthIO
TruthIO
WriteHepMC.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRUTHIO_WRITEHEPMC_H
6
#define TRUTHIO_WRITEHEPMC_H
7
8
#include "
GeneratorModules/GenBase.h
"
9
#include "
AtlasHepMC/IO_GenEvent.h
"
10
#include <memory>
11
12
14
class
WriteHepMC
:
public
GenBase
{
15
public
:
16
17
WriteHepMC
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
18
StatusCode
initialize
();
19
StatusCode
execute
();
20
21
std::string
m_outfile
;
22
int
m_precision
;
23
24
#ifdef HEPMC3
25
std::unique_ptr<HepMC3::WriterAsciiHepMC2>
m_hepmcio
;
26
#else
27
std::unique_ptr<HepMC::IO_GenEvent>
m_hepmcio
;
28
29
#endif
30
};
31
32
#endif
WriteHepMC
Write the MC event record to file in IO_GenEvent text format.
Definition:
WriteHepMC.h:14
IO_GenEvent.h
WriteHepMC::m_outfile
std::string m_outfile
Definition:
WriteHepMC.h:21
WriteHepMC::m_hepmcio
std::unique_ptr< HepMC::IO_GenEvent > m_hepmcio
Definition:
WriteHepMC.h:27
WriteHepMC::m_precision
int m_precision
Definition:
WriteHepMC.h:22
GenBase
Base class for common behaviour of MC truth algorithms.
Definition:
GenBase.h:47
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GenBase.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
WriteHepMC::WriteHepMC
WriteHepMC(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
WriteHepMC.cxx:8
WriteHepMC::initialize
StatusCode initialize()
Definition:
WriteHepMC.cxx:16
WriteHepMC::execute
StatusCode execute()
Definition:
WriteHepMC.cxx:29
Generated on Sun Dec 22 2024 21:22:46 for ATLAS Offline Software by
1.8.18