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();
52 int particleIndex = 0;
53 for (std::vector<LHEParticle*>::const_iterator it = particles.begin();
54 it != particles.end(); it++) {
60 particle->
setMother(0, particles[mother1 - 1]);
63 particle->
setMother(1, particles[mother2 - 1]);
Single particle record in an LHE event.
int getMOTHUP(int) const
Get a mother particle index (MOTHUP) by index.
void setMother(int i, LHEParticle *particle)
Set a mother particle by index.