HepMC3 event record library
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
include
HepMC3
ReaderLHEF.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
// -*- C++ -*-
3
//
4
// This file is part of HepMC
5
// Copyright (C) 2014-2019 The HepMC collaboration (see AUTHORS for details)
6
//
7
#ifndef HEPMC3_READERLHEF_H
8
#define HEPMC3_READERLHEF_H
9
/**
10
* @file ReaderLHEF.h
11
* @brief Definition of \b class ReaderLHEF
12
*
13
* @class HepMC3::ReaderLHEF
14
* @brief GenEvent I/O parsing and serialization for LHEF files
15
*
16
*
17
* @ingroup IO
18
*
19
*/
20
#include "
HepMC3/Reader.h
"
21
#include "
HepMC3/GenEvent.h
"
22
#include <string>
23
#include <fstream>
24
#include <istream>
25
#include "
HepMC3/LHEFAttributes.h
"
26
#include "
HepMC3/GenEvent.h
"
27
#include "
HepMC3/GenParticle.h
"
28
#include "
HepMC3/GenVertex.h
"
29
#include <iomanip>
30
31
32
namespace
HepMC3
33
{
34
class
ReaderLHEF
:
public
Reader
35
{
36
public
:
37
#ifndef HEPMC3_PYTHON_BINDINGS
38
/// The ctor to read from stream
39
ReaderLHEF
(std::istream &);
40
#endif
41
private
:
42
void
init
();
///< Init helper
43
public
:
44
/** @brief Constructor */
45
ReaderLHEF
(
const
std::string& filename);
46
/// @brief skip events
47
bool
skip
(
const
int
)
override
;
48
/** @brief Reading event */
49
bool
read_event
(
GenEvent
& ev)
override
;
50
/** @brief Close */
51
void
close
()
override
;
52
/** @brief State */
53
bool
failed
()
override
;
54
/** @brief Destructor */
55
~ReaderLHEF
() ;
56
private
:
57
LHEF::Reader
*
m_reader
;
///< The actual reader
58
shared_ptr<HEPRUPAttribute>
m_hepr
;
///< Holder of attributes
59
int
m_neve
;
///< Event counter
60
bool
m_failed
;
///< State of reader
61
};
62
}
63
#endif
LHEFAttributes.h
Definition of class HEPRUPAttribute and class HEPEUAttribute.
HepMC3::ReaderLHEF::init
void init()
Init helper.
Definition:
ReaderLHEF.cc:38
HepMC3::ReaderLHEF
GenEvent I/O parsing and serialization for LHEF files.
Definition:
ReaderLHEF.h:34
HepMC3::ReaderLHEF::close
void close() override
Close.
Definition:
ReaderLHEF.cc:138
Reader.h
Definition of interface Reader.
LHEF::Reader
Definition:
LHEF.h:2744
GenParticle.h
Definition of class GenParticle.
HepMC3::ReaderLHEF::read_event
bool read_event(GenEvent &ev) override
Reading event.
Definition:
ReaderLHEF.cc:84
HepMC3::ReaderLHEF::m_neve
int m_neve
Event counter.
Definition:
ReaderLHEF.h:59
HepMC3::ReaderLHEF::ReaderLHEF
ReaderLHEF(std::istream &)
The ctor to read from stream.
Definition:
ReaderLHEF.cc:20
HepMC3::ReaderLHEF::~ReaderLHEF
~ReaderLHEF()
Destructor.
Definition:
ReaderLHEF.cc:82
GenVertex.h
Definition of class GenVertex.
HepMC3::ReaderLHEF::skip
bool skip(const int) override
skip events
Definition:
ReaderLHEF.cc:26
HepMC3::ReaderLHEF::failed
bool failed() override
State.
Definition:
ReaderLHEF.cc:135
HepMC3::GenEvent
Stores event-related information.
Definition:
GenEvent.h:41
HepMC3::ReaderLHEF::m_hepr
shared_ptr< HEPRUPAttribute > m_hepr
Holder of attributes.
Definition:
ReaderLHEF.h:58
GenEvent.h
Definition of class GenEvent.
HepMC3::Reader
Base class for all I/O readers.
Definition:
Reader.h:25
HepMC3::ReaderLHEF::m_failed
bool m_failed
State of reader.
Definition:
ReaderLHEF.h:60
HepMC3::ReaderLHEF::m_reader
LHEF::Reader * m_reader
The actual reader.
Definition:
ReaderLHEF.h:57
Generated on Mon Dec 2 2019 12:14:07 for HepMC3 event record library by
1.8.5