CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hepmc_rootio.cc
Go to the documentation of this file.
1 #include <HepMC/GenParticle.h>
2 #include <HepMC/GenVertex.h>
3 #include <iostream>
4 
5 //HACK We need to change the internals of GenVertex when reading
6 // back via ROOT. We use the private access of GenEvent to
7 // accomplish it.
8 namespace HepMC {
9  class GenEvent {
10  public:
11  static void clear_particles_in(HepMC::GenVertex* iVertex) {
12  iVertex->m_particles_in.clear();
13  }
14  static void add_to_particles_in(HepMC::GenVertex* iVertex, HepMC::GenParticle* iPart) {
15  iVertex->m_particles_in.push_back(iPart);
16  }
17  };
18 }
19 
20 
21 namespace hepmc_rootio {
22  void add_to_particles_in(HepMC::GenVertex* iVertex, HepMC::GenParticle* iPart) {
24  }
25 }
static void clear_particles_in(HepMC::GenVertex *iVertex)
Definition: hepmc_rootio.cc:11
void add_to_particles_in(HepMC::GenVertex *, HepMC::GenParticle *)
Definition: hepmc_rootio.cc:22
static void add_to_particles_in(HepMC::GenVertex *iVertex, HepMC::GenParticle *iPart)
Definition: hepmc_rootio.cc:14