Migrate to the new HepMcParticleLink class
This commit collects the changes in `GeneratorObjects-01-04-00-19` and `GeneratorObjectsTPCnv-00-06-10-05`. Plus a number of additional changes: - added a method to directly set the `ExtendedBarCode` member variable of `HepMcParticleLink`, as this was needed by the `TRTUncompressedHitCollection` TP Converters. - added some missing braces to make contents of for loop clearer - added the possibility to write old `HepMcParticleLink` format using event position instead of event number (cherry picked from commit 31207b97f0453496aaa8794883505c562dee36d4) - added a unit test for `HepMcParticleLinkCnv_p2` and extended the unit test for `HepMcParticleLinkCnv_p1` - Changing the `ExtendedBarCode` should force the `HepMcParticleLink` to re-find the `HepMC::GenParticle`. Previously calling `HepMcParticleLink::setExtendedBarcode` did not force the `HepMcParticleLink` instance to refind the `HepMC::GenParticle` to which it should be linking. This could cause the pointer to be inconsistent with the information cached in the `HepMcParticleLink`. - Ensure that all member variables are properly initialized in the `HepMcParticleLink` default constructor. Previously `m_particle` and `m_have_particle` were not initialized properly. Former-commit-id: 8607d473dddbd5d9921b41f64be2ed52c72a4cdb
Showing
- Generators/GeneratorObjects/CMakeLists.txt 10 additions, 12 deletionsGenerators/GeneratorObjects/CMakeLists.txt
- Generators/GeneratorObjects/GeneratorObjects/HepMcParticleLink.h 139 additions, 73 deletions...ors/GeneratorObjects/GeneratorObjects/HepMcParticleLink.h
- Generators/GeneratorObjects/GeneratorObjects/McEventCollectionHelper.h 23 additions, 0 deletions...neratorObjects/GeneratorObjects/McEventCollectionHelper.h
- Generators/GeneratorObjects/share/HepMcParticleLink_test.ref 0 additions, 27 deletionsGenerators/GeneratorObjects/share/HepMcParticleLink_test.ref
- Generators/GeneratorObjects/share/HepMcParticleLink_test.txt 0 additions, 2 deletionsGenerators/GeneratorObjects/share/HepMcParticleLink_test.txt
- Generators/GeneratorObjects/src/HepMcParticleLink.cxx 247 additions, 64 deletionsGenerators/GeneratorObjects/src/HepMcParticleLink.cxx
- Generators/GeneratorObjects/src/McEventCollection.cxx 0 additions, 3 deletionsGenerators/GeneratorObjects/src/McEventCollection.cxx
- Generators/GeneratorObjects/src/McEventCollectionHelper.cxx 34 additions, 0 deletionsGenerators/GeneratorObjects/src/McEventCollectionHelper.cxx
- Generators/GeneratorObjects/test/GeneratorObjects.xml 3 additions, 3 deletionsGenerators/GeneratorObjects/test/GeneratorObjects.xml
- Generators/GeneratorObjects/test/HepMcParticleLink_test.cxx 313 additions, 95 deletionsGenerators/GeneratorObjects/test/HepMcParticleLink_test.cxx
- Generators/GeneratorObjectsTPCnv/CMakeLists.txt 6 additions, 0 deletionsGenerators/GeneratorObjectsTPCnv/CMakeLists.txt
- Generators/GeneratorObjectsTPCnv/share/HepMcParticleLinkCnv_p2.ref 2 additions, 0 deletions...s/GeneratorObjectsTPCnv/share/HepMcParticleLinkCnv_p2.ref
- Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx 24 additions, 31 deletions...ors/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx
- Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p2.cxx 12 additions, 11 deletions...ors/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p2.cxx
- Generators/GeneratorObjectsTPCnv/test/HepMcParticleLinkCnv_p1_test.cxx 1 addition, 0 deletions...neratorObjectsTPCnv/test/HepMcParticleLinkCnv_p1_test.cxx
- Generators/GeneratorObjectsTPCnv/test/HepMcParticleLinkCnv_p2_test.cxx 103 additions, 0 deletions...neratorObjectsTPCnv/test/HepMcParticleLinkCnv_p2_test.cxx
Loading
Please register or sign in to comment