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#include <iostream>
18
19namespace simcore::lhe {
20
25class LHEReader {
26 public:
31 LHEReader(std::string& fileName);
32
36 virtual ~LHEReader() = default;
37
42 std::unique_ptr<LHEEvent> readNextEvent();
43
44 private:
48 std::ifstream ifs_;
49
50 // enable logging
51 enableLogging("LHEReader")
52};
53
54} // namespace simcore::lhe
55
56#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:25
std::ifstream ifs_
The input file stream.
Definition LHEReader.h:48
virtual ~LHEReader()=default
Class destructor.
std::unique_ptr< LHEEvent > readNextEvent()
Read the next event.
Definition LHEReader.cxx:15
LHEReader(std::string &fileName)
Class constructor.
Definition LHEReader.cxx:6