#include <LhcoParser.hpp>
Definition at line 24 of file LhcoParser.hpp.
◆ LhcoParser()
| LHPC::LhcoParser::LhcoParser |
( |
std::string const |
eventFileName = "", |
|
|
bool const |
isVerbose = true |
|
) |
| |
Definition at line 18 of file LhcoParser.cpp.
19 :
27 {
28 if( !(eventFileName.empty()) )
29 {
31 }
32 }
BOL::CommentedTextParser fileParser
bool openFile(std::string const &eventFileName)
bool fileIsOpenAndNotYetAtEndOfFile
LHCO::LhcoEvent currentEvent
◆ ~LhcoParser()
| LHPC::LhcoParser::~LhcoParser |
( |
| ) |
|
◆ getEvent()
◆ lookForFirstEvent()
| bool LHPC::LhcoParser::lookForFirstEvent |
( |
| ) |
|
|
inlineprotected |
Definition at line 90 of file LhcoParser.hpp.
95 {
97 {
98 bool notYetFoundFirstLineOfAnEvent( true );
100 &&
101 notYetFoundFirstLineOfAnEvent )
102 {
106 {
107 notYetFoundFirstLineOfAnEvent
109
110 }
111 }
112
113
114 }
116 }
static double stringToDouble(std::string const &stringToInterpret)
◆ openFile()
| bool LHPC::LhcoParser::openFile |
( |
std::string const & |
eventFileName | ) |
|
|
inline |
Definition at line 65 of file LhcoParser.hpp.
69 {
72 {
75 {
77 }
78 }
80 }
int recordLine(std::string const &lineAsString)
◆ readNextEvent()
| bool LHPC::LhcoParser::readNextEvent |
( |
| ) |
|
Definition at line 41 of file LhcoParser.cpp.
44 {
46 {
49
50
52 &&
54 {
58 {
61 &&
63 {
64 std::cout
65 << std::endl
66 << "LHPC::warning! LHCO parser ignoring invalid line \""
68 std::cout << std::endl;
69 }
70 }
71 }
72
73
74
76 {
78 }
79 return true;
80 }
81 else
82 {
83 return false;
84 }
85 }
void prepareForNextEvent()
◆ currentEvent
◆ currentLine
| std::string LHPC::LhcoParser::currentLine |
|
protected |
◆ fileIsOpenAndNotYetAtEndOfFile
| bool LHPC::LhcoParser::fileIsOpenAndNotYetAtEndOfFile |
|
protected |
◆ fileParser
◆ isVerbose
| bool LHPC::LhcoParser::isVerbose |
|
protected |
◆ lineNumber
| int LHPC::LhcoParser::lineNumber |
|
protected |
The documentation for this class was generated from the following files: