diff -urN Delphes_V_2.0.1/interface/PdgParticle.h Delphes_V_2.0.1-memleak/interface/PdgParticle.h
old
|
new
|
|
44 | 44 | PdgParticle(const long int pid, const std::string& name, const float m, const float q, const float gamma, const float ctau); |
45 | 45 | PdgParticle(const PdgParticle& p); |
46 | 46 | PdgParticle& operator=(const PdgParticle& p); |
47 | | ~PdgParticle() {}; |
| 47 | virtual ~PdgParticle() {}; |
48 | 48 | long int pid() const {return _pid;}; |
49 | 49 | float mass() const {return _mass;}; |
50 | 50 | float charge() const {return _charge;}; |
… |
… |
|
68 | 68 | PdgTable(){}; |
69 | 69 | PdgTable(const PdgTable& table); |
70 | 70 | PdgTable& operator=(const PdgTable& table); |
71 | | ~PdgTable(){}; |
| 71 | virtual ~PdgTable(){}; |
72 | 72 | void insert(const long int pid, const PdgParticle &p); |
73 | 73 | void print() const; |
74 | 74 | PdgParticle operator[](const int pid) const; |
diff -urN Delphes_V_2.0.1/src/HepMCConverter.cc Delphes_V_2.0.1-memleak/src/HepMCConverter.cc
old
|
new
|
|
58 | 58 | { |
59 | 59 | |
60 | 60 | unsigned int particle_counter=0; |
| 61 | index_to_particle.clear(); |
| 62 | particle_to_index.clear(); |
61 | 63 | index_to_particle.reserve(evt->particles_size()); |
62 | 64 | index_to_particle[0] = 0; |
63 | 65 | HepMC::GenEvent::vertex_const_iterator v; |