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() override;
20 virtual StatusCode finalize() override;
21
22private:
23
24 std::string m_input_file;
26 double m_sum_xs;
27
28#ifdef HEPMC3
29 std::shared_ptr<HepMC3::Reader> m_hepmcio;
30#else
31 std::unique_ptr<HepMC::IO_GenEvent> m_hepmcio;
32#endif
33};
34
35#endif
GenBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition GenBase.cxx:11
virtual StatusCode finalize() override
HepMCReadFromFile(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute() override
std::unique_ptr< HepMC::IO_GenEvent > m_hepmcio
virtual StatusCode initialize() override
The Athena Transient Store API.