ATLAS Offline Software
FixHepMC.cxx File Reference
#include "EvgenProdTools/FixHepMC.h"
#include "TruthUtils/HepMCHelpers.h"
#include "AtlasHepMC/GenVertex.h"
#include "AtlasHepMC/GenEvent.h"
#include <vector>
Include dependency graph for FixHepMC.cxx:

Go to the source code of this file.

Functions

Event reduction functions
void reduce (HepMC::GenEvent *ge, std::vector< HepMC::GenParticlePtr > toremove)
 Remove unwanted particles from the event, collapsing the graph structure consistently. More...
 

Function Documentation

◆ reduce()

void reduce ( HepMC::GenEvent *  ge,
std::vector< HepMC::GenParticlePtr toremove 
)
inline

Remove unwanted particles from the event, collapsing the graph structure consistently.

Definition at line 82 of file FixHepMC.cxx.

82  {
83  while (toremove.size()) {
84  auto gp = toremove.back();
85  toremove.pop_back();
86  reduce(ge, gp);
87  }
88  }
reduce
void reduce(HepMC::GenEvent *ge, std::vector< HepMC::GenParticlePtr > toremove)
Remove unwanted particles from the event, collapsing the graph structure consistently.
Definition: FixHepMC.cxx:82