ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
TruthIO
TruthIO
WriteHepMC.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
#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
13
class
WriteHepMC
:
public
GenBase
{
14
public
:
15
16
WriteHepMC
(
const
std::string& name, ISvcLocator* pSvcLocator);
17
StatusCode
initialize
()
override
;
18
StatusCode
execute
(
const
EventContext& ctx)
override
;
19
20
std::string
m_outfile
;
21
int
m_precision
{8};
22
std::string
m_format
;
23
std::string
m_units
;
24
25
std::shared_ptr<HepMC3::Writer>
m_hepmcio
;
26
HepMC3::Units::MomentumUnit
m_momentumunit
{};
27
HepMC3::Units::LengthUnit
m_lengthunit
{};
28
};
29
30
#endif
GenBase.h
IO_GenEvent.h
GenBase::GenBase
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
GenBase.cxx:11
WriteHepMC::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
WriteHepMC.cxx:46
WriteHepMC::WriteHepMC
WriteHepMC(const std::string &name, ISvcLocator *pSvcLocator)
Definition
WriteHepMC.cxx:14
WriteHepMC::m_outfile
std::string m_outfile
Definition
WriteHepMC.h:20
WriteHepMC::m_precision
int m_precision
Definition
WriteHepMC.h:21
WriteHepMC::initialize
StatusCode initialize() override
Definition
WriteHepMC.cxx:24
WriteHepMC::m_units
std::string m_units
Definition
WriteHepMC.h:23
WriteHepMC::m_momentumunit
HepMC3::Units::MomentumUnit m_momentumunit
Definition
WriteHepMC.h:26
WriteHepMC::m_hepmcio
std::shared_ptr< HepMC3::Writer > m_hepmcio
Definition
WriteHepMC.h:25
WriteHepMC::m_format
std::string m_format
Definition
WriteHepMC.h:22
WriteHepMC::m_lengthunit
HepMC3::Units::LengthUnit m_lengthunit
Definition
WriteHepMC.h:27
Generated on
for ATLAS Offline Software by
1.17.0