17 bool foundEventElement =
false;
18 while (getline(
ifs_, line)) {
19 if (line ==
"<event>") {
20 foundEventElement =
true;
25 if (!foundEventElement) {
26 std::cerr <<
"WARNING: No next <event> element was found by the LHE reader."
35 while (getline(
ifs_, line)) {
36 if (line ==
"</event>" || line ==
"<mgrwt>") {
41 if (line.find(
"#") == std::string::npos) {
45 if (line.find(
"#vertex") != std::string::npos) {
51 const std::vector<LHEParticle*>& particles = nextEvent->
getParticles();
53 if (particle->getMOTHUP(0) != 0) {
54 int mother1 = particle->getMOTHUP(0);
55 int mother2 = particle->getMOTHUP(1);
57 particle->setMother(0, particles[mother1 - 1]);
60 particle->setMother(1, particles[mother2 - 1]);
Single particle record in an LHE event.