ATLAS Offline Software
Generators
TruthIO
TruthIO
HepMCReadFromFile.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_HEPMCREADFROMFILE_H
6
#define TRUTHIO_HEPMCREADFROMFILE_H
7
8
#include "
GeneratorModules/GenBase.h
"
9
#include "
AtlasHepMC/IO_GenEvent.h
"
10
#include <memory>
11
12
class
StoreGateSvc
;
13
14
class
HepMCReadFromFile
:
public
GenBase
{
15
public
:
16
17
HepMCReadFromFile
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
18
StatusCode
initialize
();
19
StatusCode
execute
();
20
StatusCode
finalize
();
21
22
private
:
23
24
std::string
m_input_file
;
25
int
m_event_number
;
26
double
m_sum_xs
;
27
28
StoreGateSvc
*
m_sgSvc
;
29
30
#ifdef HEPMC3
31
std::shared_ptr<HepMC3::Reader>
m_hepmcio
;
32
#else
33
std::unique_ptr<HepMC::IO_GenEvent>
m_hepmcio
;
34
#endif
35
};
36
37
#endif
HepMCReadFromFile::m_input_file
std::string m_input_file
Definition:
HepMCReadFromFile.h:24
HepMCReadFromFile::finalize
StatusCode finalize()
Definition:
HepMCReadFromFile.cxx:102
HepMCReadFromFile::HepMCReadFromFile
HepMCReadFromFile(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
HepMCReadFromFile.cxx:17
IO_GenEvent.h
HepMCReadFromFile::initialize
StatusCode initialize()
Definition:
HepMCReadFromFile.cxx:27
HepMCReadFromFile::m_hepmcio
std::unique_ptr< HepMC::IO_GenEvent > m_hepmcio
Definition:
HepMCReadFromFile.h:33
HepMCReadFromFile
Definition:
HepMCReadFromFile.h:14
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:128
GenBase
Base class for common behaviour of MC truth algorithms.
Definition:
GenBase.h:47
HepMCReadFromFile::m_event_number
int m_event_number
Definition:
HepMCReadFromFile.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HepMCReadFromFile::m_sum_xs
double m_sum_xs
Definition:
HepMCReadFromFile.h:26
GenBase.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:195
HepMCReadFromFile::execute
StatusCode execute()
Definition:
HepMCReadFromFile.cxx:47
HepMCReadFromFile::m_sgSvc
StoreGateSvc * m_sgSvc
Definition:
HepMCReadFromFile.h:28
Generated on Tue Jul 2 2024 21:16:35 for ATLAS Offline Software by
1.8.18