ATLAS Offline Software
Loading...
Searching...
No Matches
HepMCReadFromFile.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRUTHIO_HEPMCREADFROMFILE_H
6#define TRUTHIO_HEPMCREADFROMFILE_H
7
10#include <memory>
11
12class StoreGateSvc;
13
14class HepMCReadFromFile : public GenBase {
15public:
16
17 HepMCReadFromFile(const std::string& name, ISvcLocator* pSvcLocator);
18 virtual StatusCode initialize() override;
19 virtual StatusCode execute(const EventContext& ctx) override;
20 virtual StatusCode finalize() override;
21
22private:
23
24 std::string m_input_file;
26 double m_sum_xs;
27
28 std::shared_ptr<HepMC3::Reader> m_hepmcio;
29};
30
31#endif
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
virtual StatusCode finalize() override
HepMCReadFromFile(const std::string &name, ISvcLocator *pSvcLocator)
std::shared_ptr< HepMC3::Reader > m_hepmcio
virtual StatusCode initialize() override
The Athena Transient Store API.