11 #ifndef GENERATOROBJECTSATHENAPOOL_HEPMCDATAPOOL_H
12 #define GENERATOROBJECTSATHENAPOOL_HEPMCDATAPOOL_H
17 # pragma clang diagnostic push
18 # pragma clang diagnostic ignored "-Wkeyword-macro"
20 # define private public
21 # define protected public
30 # pragma clang diagnostic pop
49 part->m_production_vertex = 0;
50 part->m_end_vertex = 0;
58 HepMC::GenVertex* vtx =
reinterpret_cast<HepMC::GenVertex*
>(
p);
60 vtx->m_particles_in.clear();
61 vtx->m_particles_out.clear();
69 HepMC::GenEvent*
evt =
reinterpret_cast<HepMC::GenEvent*
>(
p);
70 evt->m_particle_barcodes.clear();
71 evt->m_vertex_barcodes.clear();
72 delete evt->m_pdf_info;
evt->m_pdf_info = 0;
109 static void clear (HepMC::GenEvent*
evt) {
evt->clear(); }
114 return evt.nextElementPtr();
117 struct ClearGenVertex
119 static void clear (HepMC::GenVertex*
vtx) { *
vtx = HepMC::GenVertex(); }
128 struct ClearGenParticle
152 return evt.nextElementPtr();
157 return vtx.nextElementPtr();
162 return part.nextElementPtr();
170 #endif // GENERATOROBJECTSATHENAPOOL_HEPMCDATAPOOL_H