ATLAS Offline Software
Loading...
Searching...
No Matches
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
10#include <memory>
11
13class WriteHepMC : public GenBase {
14public:
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;
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(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
StatusCode execute(const EventContext &ctx) override
Execute method.
WriteHepMC(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_outfile
Definition WriteHepMC.h:20
int m_precision
Definition WriteHepMC.h:21
StatusCode initialize() override
std::string m_units
Definition WriteHepMC.h:23
HepMC3::Units::MomentumUnit m_momentumunit
Definition WriteHepMC.h:26
std::shared_ptr< HepMC3::Writer > m_hepmcio
Definition WriteHepMC.h:25
std::string m_format
Definition WriteHepMC.h:22
HepMC3::Units::LengthUnit m_lengthunit
Definition WriteHepMC.h:27