LDMX Software
LHEReader.h
Go to the documentation of this file.
1
8#ifndef SIMCORE_LHEREADER_H_
9#define SIMCORE_LHEREADER_H_
10
11// LDMX
12#include "Framework/Logger.h"
14
15// STL
16#include <fstream>
17
18namespace simcore::lhe {
19
24class LHEReader {
25 public:
30 LHEReader(std::string& fileName);
31
35 virtual ~LHEReader() = default;
36
41 std::unique_ptr<LHEEvent> readNextEvent();
42
43 private:
47 std::ifstream ifs_;
48
49 // enable logging
50 enableLogging("LHEReader")
51};
52
53} // namespace simcore::lhe
54
55#endif
Class defining an LHE event with a list of particles and information from the header block.
Reads LHE event data into an LHEEvent object.
Definition LHEReader.h:24
std::ifstream ifs_
The input file stream.
Definition LHEReader.h:47
virtual ~LHEReader()=default
Class destructor.
std::unique_ptr< LHEEvent > readNextEvent()
Read the next event.
Definition LHEReader.cxx:17
LHEReader(std::string &fileName)
Class constructor.
Definition LHEReader.cxx:8